Next Article in Journal
Periodic Solution of a Non-Smooth Double Pendulum with Unilateral Rigid Constrain
Next Article in Special Issue
Algebraic Numbers as Product of Powers of Transcendental Numbers
Previous Article in Journal
Symmetries and Reductions of Integrable Nonlocal Partial Differential Equations
Previous Article in Special Issue
Asymptotic Semicircular Laws Induced by p-Adic Number Fields p and C*-Algebras over Primes p
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

On Some Formulas for Kaprekar Constants

Department of Information Systems Science, Soka University, Tokyo 192-8577, Japan
*
Author to whom correspondence should be addressed.
Symmetry 2019, 11(7), 885; https://doi.org/10.3390/sym11070885
Submission received: 3 June 2019 / Revised: 1 July 2019 / Accepted: 2 July 2019 / Published: 5 July 2019
(This article belongs to the Special Issue Number Theory and Symmetry)

Abstract

:
Let b 2 and n 2 be integers. For a b-adic n-digit integer x, let A (resp. B) be the b-adic n-digit integer obtained by rearranging the numbers of all digits of x in descending (resp. ascending) order. Then, we define the Kaprekar transformation T ( b , n ) ( x ) : = A B . If T ( b , n ) ( x ) = x , then x is called a b-adic n-digit Kaprekar constant. Moreover, we say that a b-adic n-digit Kaprekar constant x is regular when the numbers of all digits of x are distinct. In this article, we obtain some formulas for regular and non-regular Kaprekar constants, respectively. As an application of these formulas, we then see that for any integer b 2 , the number of b-adic odd-digit regular Kaprekar constants is greater than or equal to the number of all non-trivial divisors of b. Kaprekar constants have the symmetric property that they are fixed points for recursive number theoretical functions T ( b , n ) .

  • 1 Introduction                                                 1
  • 2 Proofs of Theorems and Corollaries in the Introduction                                 9
    • 2.1 A Proof of Theorem 1 . . . . . . . . . . . .  . . . . . . . . . . . . . . . . . . . . . .  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
    • 2.2 A Proof of Corollary 1 . . . . . . . . . . . . .  . . . . . . . . . . . . . . . . . . . . . .  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
    • 2.3 A Proof of Theorem 2  . . . . . . . . . . .  . . . . . . . . . . . . . . . . . . . . . .  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
    • 2.4 A Proof of Corollary 2   . . . . . . . . . . . .  . . . . . . . . . . . . . . . . . . . . . .  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
  • 3 On n-Digit Regular Kaprekar Constants with Specified n                             15
  • References                                                 31

1. Introduction

Let Z be the set of all rational integers. In this article, the symbol [ α ] with any rational number α stands for the greatest integer that is less than or equal to α .
For integers b 2 and n 2 , we denote by Z ( b , n ) the set of all b-adic n-digit integers, i.e.,
Z ( b , n ) = { x Z | 0 x b n 1 } = { a n 1 b n 1 + + a 1 b + a 0 | 0 a 0 , a 1 , , a n 1 b 1 } .
For any:
x = a n 1 b n 1 + + a 1 b + a 0 Z ( b , n )
with 0 a 0 , a 1 , , a n 1 b 1 , we denote the b-adic expression of x by:
x = ( a n 1 a 1 a 0 ) b .
In the case where b = 10 , we omit the subscript as:
x = a n 1 a 1 a 0
as usual if any confusion occurs with the product of a 0 , a 1 , , a n 1 .
Definition 1.
Let c n 1 c 1 c 0 be the rearrangement of the numbers a 0 , a 1 , , a n 1 of all digits of x Z ( b , n ) in descending order. We define the Kaprekar transformation as:
T ( b , n ) : Z ( b , n ) Z ( b , n ) ; x ( c n 1 c 1 c 0 ) b ( c 0 c 1 c n 1 ) b .
Definition 2.
( 1 ) For any x Z ( b , n ) , we say that x is a b-adic n-digit Kaprekar constant if T ( b , n ) ( x ) = x .
( 2 ) We see immediately that zero is a b-adic n-digit Kaprekar constant for any b 2 and n 2 , which we call the trivial Kaprekar constant. Then, we denote by ν ( b , n ) the number of all b-adic n-digit non-trivial Kaprekar constants. By Ref. [1] (Proposition 1.3), we see that:
ν ( b , n ) b 1 + n 2 C n 2 1 ,
where we put:
r C s : = r ! s ! ( r s ) ! = r ( r 1 ) ( r s + 1 ) s 1
for any integers r > s > 0 .
( 3 ) We say that a b-adic n-digit non-trivial Kaprekar constant x = ( a n 1 a 1 a 0 ) b is regular when a i a j for any i j . We denote by ν reg ( b , n ) (resp. ν non reg ( b , n ) ) the number of all b-adic n-digit regular (resp. non-regular) Kaprekar constants. By the definition, we see immediately that:
ν ( b , n ) = ν reg ( b , n ) + ν non reg ( b , n )
and if b < n , then ν reg ( b , n ) = 0 and ν ( b , n ) = ν non reg ( b , n ) .
Example 1.
Kaprekar [2,3], who was the initiator of this research, discovered that ν ( 10 , 4 ) = 1 , and the only non-trivial 10-adic four-digit Kaprekar constant is: 6174.
Example 2.
Here is the list of all b-adic n-digit non-trivial Kaprekar constants for 2 b 15 and 2 n 7 . Note that, in the list below, we omit the subscript b. Further, the symbol − means that ν ( b , n ) = 0 , and non-trivial Kaprekar constants with the symbol are regular.
n234567
b = 2 01 0110111011110111110111111
1001101011011011011101
1100011101001
3202112202101
4 132 3021 2133123203211
310221
330201
5 13 3032
6 253 41532 325523
420432
530421
7
8 25 374 437734 6417532
640632
9 62853
10 495 6174 549945
631764
11 37
12 5 ( 11 ) 6 83 ( 11 ) 74 65 ( 11 ) ( 11 ) 56 962 ( 11 ) 853
13 951 ( 10 ) 74
14 49 6 ( 13 ) 7 76 ( 13 ) ( 13 ) 67
15 92 ( 11 ) 6 ( 10 ) 4 ( 14 ) 95
Then, we obtain the following list of the numbers ν = ν ( b , n ) , ν r = ν reg ( b , n ) and ν nr = ν non reg ( b , n ) :
n = 2 n = 3 n = 4 n = 5 n = 6 n = 7
b ν ν r ν nr ν ν r ν nr ν ν r ν nr ν ν r ν nr ν ν r ν nr ν ν r ν nr
2110101202202303303
3000000000101000101
4000110110000303101
5110000101000000000
6000110000110312000
7000000000000000000
8110110000000202110
9000000000110000000
10000110110000202000
11110000000000000000
12000111000110101110
13000000000000110000
14110110000000101000
15000000110110000000
Now, we have the following:
Questions: ( 1 ) Are there any formulas for ν ( b , n ) , ν reg ( b , n ) and ν non reg ( b , n ) in terms of b and n?
( 2 ) Are there any formulas for b-adic n-digit regular or non-regular Kaprekar constants in terms of b and n?
Known results: There are some known results that answer some parts of the questions above as follows:
( 1 ) In the case where n = 2 , by the results on the two-digit Kaprekar transformation given by Young [4] (cf. [1], Theorem 3 . 1 ), we see that for any integer b 2 , there exists a b-adic two-digit non-trivial Kaprekar constant if and only if b + 1 is divisible by three.
Since there is no two-digit non-regular Kaprekar constant by definition, we see immediately that for any integer b 2 ,
ν non reg ( b , 2 ) = 0 and ν ( b , 2 ) = ν reg ( b , 2 ) .
In this article, we shall prove in Theorem 4 ( 1 ) and Corollary 3 ( 1 ) that any two-digit regular Kaprekar constant is of the form:
( m ( 2 m + 1 ) ) 3 m + 2
with any integers m 0 and:
ν reg ( b , 2 ) = 1 if 3 ( b + 1 ) , 0 otherwise .
( 2 ) In the case where n = 3 , Eldridge and Sagong [5] proved that any three-digit non-trivial Kaprekar constant is of the form:
( m ( 2 m + 1 ) ( m + 1 ) ) 2 m + 2
with any integers m 0 and that for any integer b 2 ,
ν ( b , 3 ) = 1 if b is even , 0 if b is odd .
In particular, we see immediately that:
ν reg ( b , 3 ) = 1 if b 4 is even , 0 if b = 2 or b 3 is odd ,
and:
ν non reg ( b , 3 ) = 1 if b = 2 , 0 if b 3 .
( 3 ) In the case where n = 4 , Hasse and Prichett [6] obtained a formula:
( ( 3 m + 3 ) m ( 4 m + 3 ) ( 2 m + 2 ) ) 5 m + 5
for ( 5 m + 5 ) -adic four-digit non-trivial Kaprekar constants with any integer m 0 . This implies that if b 5 and 5 b , then ν reg ( b , 4 ) 1 .
In this article, we shall prove in Theorem 4 ( 2 ) and Corollary 3 ( 2 ) that any four-digit regular Kaprekar constant is equal to ( 3021 ) 4 or given by the above formula obtained by Hasse and Prichett with m 1 and that for any integer b 2 ,
ν reg ( b , 4 ) = 1 if b = 4 or , b 10 and 5 b , 0 otherwise .
( 4 ) In the case where n = 5 , Prichett [7] obtained a formula:
( ( 2 m + 2 ) m ( 3 m + 2 ) ( 2 m + 1 ) ( m + 1 ) ) 3 m + 3
for ( 3 m + 3 ) -adic five-digit non-trivial Kaprekar constants with any integers m 0 . This implies that if b 6 and 3 b , then ν reg ( b , 5 ) 1 .
In this article, we shall prove in Theorem 3 ( 1 ) and Corollary 3 ( 3 ) that any five-digit regular Kaprekar constant is given by the above formula obtained by Prichett with m 1 and that for any integer b 2 ,
ν reg ( b , 5 ) = 1 if b 6 and 3 b , 0 otherwise .
( 5 ) In the case where b = 2 , the first author [1] showed that for any n 2 , all two-adic n-digit non-trivial Kaprekar constants are of the form:
( 1 1 k 1 0 1 1 n 2 k 0 0 k 1 1 ) 2
with all integers 1 k n 2 and ν ( 2 , n ) = n 2 . In particular, we see immediately that:
ν reg ( 2 , n ) = 1 if n = 2 , 0 if n 3
and:
ν non reg ( 2 , n ) = 0 if n = 2 , n 2 if n 3 .
( 6 ) In the case where b = 3 , the authors [8] showed that for any n 2 , all three-adic n-digit non-trivial Kaprekar constants are of the form:
( 2 2 k 1 1 k 1 0 2 2 k 1 1 k 0 0 k 1 1 ) 3 .
with all pairs ( k , ) of integers satisfying 0 < k < and n = 3 k , and:
ν ( 3 , n ) = 1 6 n 1 + 3 ( 1 ) n 2 .
In particular, we see immediately that:
ν reg ( 3 , n ) = 0 , ν non reg ( 3 , n ) = ν ( 3 , n ) .
We have the impression that the behavior of the values of ν ( b , n ) , ν reg ( b , n ) and ν non reg ( b , n ) in the list in Example 2 is not only complicated, but also suggestive of some general rules. It seems that it is very hard to obtain general results without observing any case-by-case results. The aim of this article is to see formulas for b-adic n-digit regular and non-regular Kaprekar constants and to study the properties of ν reg ( b , n ) and ν non reg ( b , n ) towards answers to the questions above.
Firstly, we see formulas for Kaprekar constants in the following:
Theorem 1.
Let m 0 and n 2 be any integers. We put:
b ( m , n ) = 3 m + 2 if n = 2 , 2 n 4 2 ( 4 m + 3 ) + m + 2 if n is even and n 4 , n + 1 2 ( m + 1 ) if n is odd .
( 1 ) We assume that n is even and define the b ( m , n ) -adic n-digit integer:
K ( m , n ) = ( m ( 2 m + 1 ) ) b ( m , 2 ) if n = 2 , ( ( 3 m + 3 ) m ( 4 m + 3 ) ( 2 m + 2 ) ) b ( m , 4 ) if n = 4 , ( a n 1 a n 2 a i a n 2 + 1 a n 2 a n 2 1 a j a 1 a 0 ) b ( m , n ) if n 6 ,
where we put:
a n 1 = 2 n 4 2 ( 4 m + 3 ) m , a i = ( 2 n 4 2 2 n i 2 ) ( 4 m + 3 ) + m + 1 for n 2 i n 2 + 1 , a n 2 = m , a j = 2 j 1 ( 4 m + 3 ) for n 2 1 j 1 , a 0 = 2 m + 2 .
Then, K ( m , n ) is a non-trivial Kaprekar constant, which is regular if and only if n = 2 or m 1 .
( 2 ) We assume that n is odd and define the b ( m , n ) -adic n-digit integer:
L ( m , n ) = ( m ( 2 m + 1 ) ( m + 1 ) ) b ( m , 3 ) if n = 3 , ( b n 1 b i b n + 3 2 b n + 1 2 b n 1 2 b n 3 2 b j b 1 b 0 ) b ( m , n ) if n 5 ,
where we put:
b i = i n 1 2 ( m + 1 ) for n 1 i n + 3 2 , b n + 1 2 = m , b n 1 2 = n + 1 2 ( m + 1 ) 1 , b j = j + 1 ( m + 1 ) 1 = b n + 1 2 + j 1 for n 3 2 j 1 , b 0 = m + 1 .
Then, L ( m , n ) is a non-trivial Kaprekar constant, which is regular if and only if m 1 .
Remark 1.
( 1 ) We can see that for any integer n 2 , the sequence:
b ( n ) : = { b ( m , n ) | m = 0 , 1 , 2 , }
consisting of bases defined in Theorem 1 is the arithmetic progression with the common difference:
3 if n = 2 , 2 n 2 + 1 if n is even and n 4 , n + 1 2 if n is odd
and the first term:
2 if n = 2 , 3 × 2 n 4 2 + 2 if n is even and n 4 , n + 1 2 if n is odd .
( 2 ) As we have seen in the known results above, the regular Kaprekar constants K ( m , 4 ) , L ( m , 3 ) , and L ( m , 5 ) have already been obtained by Hasse and Prichett [6], Eldridge and Sagong [5], and Prichett [7], respectively.
Definition 3.
( 1 ) We call the double series:
K : = { K ( m , n ) | m = 1 , 2 , 3 , , n = 2 , 4 , 6 , } , L : = { L ( m , n ) | m = 1 , 2 , 3 , , n = 3 , 5 , 7 , }
the systems of regular Kaprekar constants.
( 2 ) Let n 2 be any integer. We call the sequence:
K ( n ) : = { K ( m , n ) | m = 1 , 2 , 3 , } with even n , or L ( n ) : = { L ( m , n ) | m = 1 , 2 , 3 , } with odd n
the progression of n-digit regular Kaprekar constants with arithmetic progression b ( n ) \ { b ( 0 , n ) } of bases.
By Theorem 1, we see that the formulas for the numbers a n 1 , , a 0 (resp. b n 1 , , b 0 ) of digits of members in K ( n ) (resp. L ( n ) ) are given by polynomials in m of degree one. This implies that they can be regarded as arithmetic progressions indexed by m = 1 , 2 , 3 , , as well as the arithmetic progression b ( n ) { b ( 0 , n ) } of bases.
( 3 ) Let m 1 be any integer. We call the sequences:
K [ m ] : = { K ( m , n ) | n = 2 , 4 , 6 , } ( resp . L [ m ] : = { L ( m , n ) | n = 3 , 5 , 7 , } )
the m-th chain of regular Kaprekar constants in the system K (resp. L) with ascending even (resp. odd) digits.
Example 3.
( 1 ) Here are examples of some members K ( m , n ) in the progressions K ( n ) and the chains K [ m ] of regular Kaprekar constants with 1 m 5 and n = 2 , 4 , 6 .
K ( 2 ) K ( 4 ) K ( 6 )
K [ 1 ] ( 13 ) 5 ( 6174 ) 10 ( ( 13 ) 91 ( 14 ) 74 ) 17
K [ 2 ] ( 25 ) 8 ( 92 ( 11 ) 6 ) 15 ( ( 20 ) ( 14 ) 2 ( 22 ) ( 11 ) 6 ) 26
K [ 3 ] ( 37 ) 11 ( ( 12 ) 3 ( 15 ) 8 ) 20 ( ( 27 ) ( 19 ) 3 ( 30 ) ( 15 ) 8 ) 35
K [ 4 ] ( 49 ) 14 ( ( 15 ) 4 ( 19 ) ( 10 ) ) 25 ( ( 34 ) ( 24 ) 4 ( 38 ) ( 19 ) ( 10 ) ) 44
K [ 5 ] ( 5 ( 11 ) ) 17 ( ( 18 ) 5 ( 23 ) ( 12 ) ) 30 ( ( 41 ) ( 29 ) 5 ( 46 ) ( 23 ) ( 12 ) ) 53
( 2 ) Here are examples of some members L ( m , n ) in the progressions L ( n ) and the chains L [ m ] of regular Kaprekar constants with 1 m 5 and n = 3 , 5 , 7 .
L ( 3 ) L ( 5 ) L ( 7 )
L [ 1 ] ( 132 ) 4 ( 41532 ) 6 ( 6417532 ) 8
L [ 2 ] ( 253 ) 6 ( 62853 ) 9 ( 962 ( 11 ) 853 ) 12
L [ 3 ] ( 374 ) 8 ( 83 ( 11 ) 74 ) 12 ( ( 12 ) 83 ( 15 ) ( 11 ) 74 ) 16
L [ 4 ] ( 495 ) 10 ( ( 10 ) 4 ( 14 ) 95 ) 15 ( ( 15 ) ( 10 ) 4 ( 19 ) ( 14 ) 95 ) 20
L [ 5 ] ( 5 ( 11 ) 6 ) 12 ( ( 12 ) 5 ( 17 ) ( 11 ) 6 ) 18 ( ( 18 ) ( 12 ) 5 ( 23 ) ( 17 ) ( 11 ) 6 ) 24
Remark 2.
By the cases where n = 4 and n = 6 in the lists in Examples 2 and 3, we see that the progressions K ( n ) and L ( n ) of n-digit regular Kaprekar constants may not consist of all n-digit regular Kaprekar constants in general. Actually, for any n 2 , it seems that it is very hard to obtain formulas for all n-digit regular Kaprekar constants. In Section 2, we obtain some partial results on them with specified n.
As a corollary of Theorem 1, we immediately obtain some results on the positivity of the numbers ν reg ( b , n ) of all b-adic n-digit regular Kaprekar constants as in the following:
Corollary 1.
( 1 ) Let n 2 and b 2 be any integers. If n and b satisfy one of the following conditions:
( i )
n = 2 and b = 3 m + 2 with m 1 ,
( ii )
n is even , n 4 and b = 2 n 4 2 ( 4 m + 3 ) + m + 2 with m 1 ,
( iii )
n is odd and b = n + 1 2 ( m + 1 ) with m 1 ,
then:
ν reg ( b , n ) 1 .
( 2 ) If an integer b 4 is not a prime number, then for any non-trivial divisor d of b,
ν reg ( b , 2 d 1 ) 1 .
Therefore, the number of all b-adic odd-digit regular Kaprekar constants is greater than or equal to the number of all non-trivial divisors of b.
Secondly, we obtain formulas for non-regular Kaprekar constants by means of double series of regular Kaprekar constants obtained in Theorem 1 in the following:
Theorem 2.
Let the notation be as in Theorem 1.
( 1 ) We assume that m 1 ( mod 3 ) and n 0 ( mod 4 ) , and put:
β m , n = b ( m , n ) 1 3 .
For any integer r 2 , we denote by K ( m , n , r ) the b ( m , n ) -adic ( n + 2 r ) -digit integer:
( 3 m + 3 ) β m , 4 β m , 4 r m ( 4 m + 3 ) ( 2 β m , 4 ) ( 2 β m , 4 ) r ( 2 m + 2 ) b ( m , 4 )
in the case where n = 4 , and:
a n 1 a n 2 + 1 β m , n β m , n r a n 2 a n 2 1 ( 2 β m , n ) ( 2 β m , n ) r a n 2 2 a 0 b ( m , n )
in the case where n 8 . Then, K ( m , n , r ) is a non-regular Kaprekar constant.
( 2 ) We assume that m = 1 , n 3 ( mod 6 ) and n 9 . For any integer r 2 , we denote by L ( 1 , n , r ) the b ( 1 , n ) ( = n + 1 ) -adic ( n + 2 r ) -digit integer:
b n 1 b 2 n 3 n 3 n 3 r b 2 n 3 1 b n 3 2 n 3 2 n 3 r b n 3 1 b 0 b ( 1 , n ) = T ( b ( 1 , n ) , n ) n 2 n + 3 3 2 n 3 2 n 3 r 2 n 3 n + 3 3 n 3 n 3 r n 3 1 .
Then, L ( 1 , n , r ) is a non-regular Kaprekar constant.
Example 4.
( 1 ) Here is an example of the non-regular constant K ( m , n , r ) obtained in Theorem 2 ( 1 ) in the case where m = 4 , n = 8 , and r = 2 .
( m , n ) ( 4 , 8 )
b ( m , n ) 82
K ( m , n ) ( ( 72 ) ( 62 ) ( 43 ) 4 ( 76 ) ( 38 ) ( 19 ) ( 10 ) ) 82
β m , n , 2 β m , n 27 , 54
K ( m , n , r ) ( ( 72 ) ( 62 ) ( 43 ) ( 27 ) ( 27 ) 4 ( 76 ) ( 54 ) ( 54 ) ( 38 ) ( 19 ) ( 10 ) ) 82
( 2 ) Here is an example of the non-regular constant L ( 1 , n , r ) obtained in Theorem 2 ( 2 ) in the case where n = 9 and r = 4 .
( 1 , n ) ( 1 , 9 )
b ( 1 , n ) 10
L ( 1 , n ) ( 864197532 ) 10
n 3 , 2 n 3 3 , 6
L ( 1 , n , r ) ( 86433331976666532 ) 10
As a corollary of Theorem 2, we immediately obtain the following result on the positivity of the numbers ν reg ( b , n ) of all b-adic n-digit non-regular Kaprekar constants:
Corollary 2.
For any integers m 1 and n 4 satisfying:
m 1 ( mod 3 ) and n 0 ( mod 4 )
or:
m = 1 , n 3 ( mod 6 ) and n 9 ,
and for any integer r 2 , we see that:
ν non reg ( b ( m , n ) , n + 2 r ) 1 .
In Section 1, we shall prove Theorems 1 and 2 and Corollaries 1 and 2. In Section 2.1, we shall obtain some formulas for all n-digit regular Kaprekar constants in Theorem 3 for n = 5 , 7 , 9 , 11 and Theorem 4 for n = 2 , 4 , 6 , 8 . Moreover, we shall see some conditional results on formulas for n-digit regular Kaprekar constants in Proposition 1 for n = 13 , 15 , 17 . Then, we shall see in Section 2.2 some observations on the values of ν reg ( b , n ) . We think that this article is fit for the Special Issue “Number Theory and Symmetry,” since Kaprekar constants have the symmetric property that they are fixed points for recursive number theoretical functions T ( b , n ) .

2. Proofs of Theorems and Corollaries in the Introduction

In this section, we prove Theorem 1 and Corollary 1 on regular Kaprekar constants and Theorem 2 and Corollary 2 on non-regular Kaprekar constants, respectively.

2.1. A Proof of Theorem 1

( 1 ) Let the notation be as in Part ( 1 ) of Theorem 1. Here, we omit proving the Parts (i)–(iii), since they can be checked by direct calculations.
(iv) In the case where n 8 is even, let:
K ( m , n ) = ( a n 1 a n 2 a i a n 2 + 1 a n 2 a n 2 1 a j a 1 a 0 ) b ( m , n )
be the b ( m , n ) -adic n-digit integer defined in the assertion of Theorem 1 ( 1 ) . Let c n 1 c 1 c 0 be the rearrangement of the numbers a 0 , , a n 1 of all digits of K ( m , n ) in descending order. Then, the relation between a 0 , , a n 1 and c 0 , , c n 1 is given as in the following:
Lemma 1.
In the situation above, we see that:
c n 1 = a n 2 1 , c n 2 = a n 1 , c i = a i + 1 , c n i 1 = a n i 2 for n 3 i n 2 , c 1 = a 0 , c 0 = a n 2 .
Proof. 
Since for any n 3 i n 2 ,
a i + 1 = ( 2 n 4 2 2 n i 3 ) ( 4 m + 3 ) + m + 1 , a n i 2 = 2 n i 3 ( 4 m + 3 ) ,
we see easily that:
a n 2 > a n 3 > > a n 2 + 1
and:
a n 2 2 > a n 2 3 > > a 1 .
Moreover,
a n 2 1 = 2 n 4 2 ( 4 m + 3 ) 2 n 4 2 ( 4 m + 3 ) m = a n 1 > 2 n 4 2 ( 4 m + 3 ) ( 3 m + 2 ) = a n 2 , a n 2 + 1 a n 2 2 = ( 2 n 4 2 2 n 2 3 ) ( 4 m + 3 ) + ( m + 1 ) 2 n 2 3 ( 4 m + 3 ) = m + 1 > 0
and:
a 1 = 4 m + 3 > a 0 = 2 m + 2 > a n 2 = m .
Therefore, the lemma is proven. □
We put:
T ( b ( m , n ) , n ) ( K ( m , n ) ) = ( a n 1 a 1 a 0 ) b ( m , n )
with integers 0 a 0 , a 1 , , a n 1 b ( m , n ) 1 . By Ref. [1] (Theorem 1.1 (6)) and Lemma 1, we then see that:
a n 1 = c n 1 c 0 = a n 2 1 a n 2 = 2 n 4 2 ( 4 m + 3 ) m = a n 1 , a n 2 = c n 2 c 1 = a n 1 a 0 = 2 n 4 2 ( 4 m + 3 ) m ( 2 m + 2 ) = ( 2 n 4 2 1 ) ( 4 m + 3 ) + m + 1 = a n 2 , a n 2 = c n 2 c n 2 1 1 = a n 2 + 1 a n 2 2 1 = ( 2 n 4 2 2 n 2 3 ) ( 4 m + 3 ) + ( m + 1 ) 2 n 2 3 ( 4 m + 3 ) 1 = m = a n 2 , a n 2 1 = b ( m , n ) 1 ( c n 2 c n 2 1 ) = 2 n 4 2 ( 4 m + 3 ) + m + 2 1 ( m + 1 ) = 2 n 4 2 ( 4 m + 3 ) = a n 2 1 , a 1 = b ( m , n ) 1 ( c n 2 c 1 ) = 2 n 4 2 ( 4 m + 3 ) + m + 2 1 ( ( 2 n 4 2 1 ) ( 4 m + 3 ) + m + 1 ) = 4 m + 3 = a 1 , a 0 = b ( m , n ) ( c n 1 c 0 ) = 2 n 4 2 ( 4 m + 3 ) + m + 2 ( 2 n 4 2 ( 4 m + 3 ) m ) = 2 m + 2 = a 0 .
Moreover, we see that for any n 3 i n 2 + 1 ,
a i = c i c n i 1 = a i + 1 a n i 2 = ( 2 n 4 2 2 n i 3 ) ( 4 m + 3 ) + m + 1 2 n i 3 ( 4 m + 3 ) = ( 2 n 4 2 2 n i 2 ) ( 4 m + 3 ) + m + 1 = a i , a n i 1 = b ( m , n ) 1 a i = 2 n 4 2 ( 4 m + 3 ) + m + 2 1 ( ( 2 n 4 2 2 n i 2 ) ( 4 m + 3 ) + m + 1 ) = 2 n i 2 ( 4 m + 3 ) = a n i 1 .
Therefore, we see that:
T ( b ( m , n ) , n ) ( K ( m , n ) ) = ( a n 1 a 1 a 0 ) b ( m , n ) = ( a n 1 a 1 a 0 ) b ( m , n ) = K ( m , n ) ,
i.e., K ( m , n ) is a non-trivial Kaprekar constant, which is regular if and only if m 1 , which implies that a n 2 1 a n 1 .
( 2 ) Let the notation be as in Part ( 2 ) of Theorem 1.
As we have seen in the known results ( 2 ) and ( 4 ) in the Introduction, the cases where n = 3 and n = 5 have already been proven by Eldridge and Sagong [5] and Prichett [7], respectively. Therefore, it suffices to prove Part ( 2 ) in the case where n 7 .
For any odd integer n 7 , let:
L ( m , n ) = ( b n 1 b i b n + 3 2 b n + 1 2 b n 1 2 b n 3 2 b j b 1 b 0 ) b ( m , n )
be the b ( m , n ) -adic n-digit integer defined in the assertion of Theorem 1 ( 2 ) . Let c n 1 c 1 c 0 be the rearrangement of the numbers b 0 , , b n 1 of all digits of L ( m , n ) in descending order. Then, the relation between b 0 , b 1 , , b n 1 and c 0 , c 1 , , c n 1 is given as in the following:
Lemma 2.
In the situation above, we see that:
c n 1 = b n 1 2 , c 2 i 1 = b n 1 2 + i , c 2 i 2 = b i 1 for n 1 2 i 2 , c 1 = b 0 , c 0 = b n + 1 2 .
Proof. 
By the definition of the numbers of all digits of L ( m , n ) in Theorem 1 ( 2 ) , we see immediately that:
c n 1 = n + 1 2 ( m + 1 ) 1 = b n 1 2 , c 2 i 1 = i ( m + 1 ) = b n 1 2 + i , c 2 i 2 = i ( m + 1 ) 1 = b i 1 for n 1 2 i 2 , c 1 = m + 1 = b 0 , c 0 = m = b n + 1 2 .
Therefore, the lemma is proven. □
Then, we can prove Part ( 2 ) in the case where n 7 by the same argument as in the proof of Theorem 1 ( 1 ) (iv). Therefore, we omit the details of the calculations here.

2.2. A Proof of Corollary 1

( 1 ) In Cases (i) and (ii), we have the b ( m , n ) -adic n-digit regular Kaprekar constant K ( m , n ) by Theorem 1 ( 1 ) . On the other hand, in Case (iii), we have the b ( m , n ) -adic n-digit regular Kaprekar constant L ( m , n ) by Theorem 1 ( 2 ) . Therefore, we see that for any integers b 2 and n 2 satisfying Condition (i), (ii), or (iii),
ν reg ( b , n ) 1 ,
and Part ( 1 ) is proven.
( 2 ) For any integer b 4 that is not a prime number, let d be any non-trivial divisor of b, i.e., d is a divisor of b satisfying 1 < d < b . We put:
m d = b d 1 , n d = 2 d 1 .
Since m d 1 is an integer and n d 3 is an odd integer satisfying b ( m d , n d ) = b , by Theorem 1 ( 2 ) , we have the b-adic n d -digit regular Kaprekar constant L ( m d , n d ) . Therefore, we see that:
ν reg ( b , n d ) 1 .
Moreover, since n d n d for any non-trivial divisors d d of b, we see that L ( m d , n d ) L ( m d , n d ) . Therefore, the number of all b-adic odd-digit regular Kaprekar constants is greater than or equal to the number of all non-trivial divisors of b, and Part ( 2 ) is proven.

2.3. A Proof of Theorem 2

( 1 ) We assume that:
m 1 ( mod 3 ) and n 0 ( mod 4 ) .
(a) In the case where n = 4 , b ( m , 4 ) = 5 m + 5 , and:
β m , 4 = b ( m , 4 ) 1 3 = 5 m + 4 3
which is an integer, since the assumption m 1 ( mod 3 ) implies that:
b ( m , 4 ) 2 m 1 1 ( mod 3 ) .
Then, for any r 2 , the b ( m , 4 ) -adic ( 2 r + 4 ) -digit integer obtained by rearranging of the numbers of all digits of K ( m , 4 , r ) in descending order is:
( 4 m + 3 ) ( 2 β m , 4 ) ( 2 β m , 4 ) r ( 3 m + 3 ) ( 2 m + 2 ) β m , 4 β m , 4 r m b ( m , 4 ) .
By Ref. [1] (Theorem 1.1 (6)) and the case where n = 4 in Theorem 1 ( 1 ) , we then see that:
T ( b ( m , 4 ) , 2 r + 4 ) ( K ( m , 4 , r ) ) = K ( m , 4 , r ) ,
since b ( m , 4 ) 1 β m , 4 = 2 β m , 4 . Therefore, K ( m , 4 , r ) is a non-regular Kaprekar constant.
(b) In the case where n 8 , b ( m , n ) = 2 n 4 2 ( 4 m + 3 ) + m + 2 , and
β m , m = b ( m , n ) 1 3 = 1 3 2 n 4 2 ( 4 m + 3 ) + m + 1
which is an integer, since n 0 ( mod 4 ) implies that n 4 2 is even and m 1 ( mod 3 ) implies that:
b ( m , n ) ( 1 ) n 4 2 m + m 1 1 ( mod 3 ) .
Let the notation be as in Theorem 1 ( 1 ) . Since, n 8 , we see that:
a n 2 2 β m , n = 2 n 2 3 ( 4 m + 3 ) 1 3 2 n 4 2 ( 4 m + 3 ) + m + 1 = 2 n 2 6 1 3 m + 2 n 2 8 1 3 > 0 , β m , n a n 2 3 = 1 3 2 n 4 2 ( 4 m + 3 ) + m + 1 2 n 2 4 ( 4 m + 3 ) = 2 n 2 12 + 1 3 m + 2 n 2 16 + 1 3 > 0 , a n 2 + 2 2 β m , n = 2 n 2 2 2 n 2 4 ( 4 m + 3 ) + m + 1 2 3 2 n 4 2 ( 4 m + 3 ) + m + 1
= 2 n 2 12 + 1 3 m + 2 n 2 16 + 1 3 > 0 , 2 β m , n a n 2 + 1 = 2 3 2 n 4 2 ( 4 m + 3 ) + m + 1 2 n 2 2 2 n 2 3 ( 4 m + 3 ) + m + 1 = 2 n 2 6 1 3 m + 2 n 2 8 1 3 > 0 .
By Ref. [1] (Theorem 1.1 (6)) and Lemma 1, we then see that:
T ( b ( m , n ) , n + 2 r ) ( K ( m , n , r ) ) = K ( m , n , r ) ,
since b ( m , n ) 1 β m , n = 2 β m , n . Therefore, K ( m , n , r ) is a b ( m , n ) -adic ( n + 2 r ) -digit non-regular Kaprekar constant for any r 2 .
By (a) and (b) above, Part ( 1 ) of Theorem 2 is proven.
( 2 ) We assume that:
m = 1 , n 3 ( mod 6 ) and n 9 .
Let the notation be as in Theorem 1 ( 2 ) . By the definition in loc. cit., the b ( 1 , n ) ( = n + 1 ) -adic n-digit integer obtained by rearranging of the numbers of all digits b 0 , b 1 , , b n 1 of L ( 1 , n ) in descending order is:
( n ( n 1 ) 3 2 1 ) b ( 1 , n )
given by all integers from 1–n. By Ref. [1] (Theorem 1.1 (8)) and Theorem 1 ( 2 ) , we then see that:
T ( b ( 1 , n ) , n + 2 r ) ( L ( 1 , n , r ) ) = T ( b ( 1 , n ) , n ) n 2 n + 3 3 2 n 3 2 n 3 r 2 n 3 n + 3 3 n 3 n 3 r n 3 1 = L ( 1 , n , r ) ,
since n 9 and b ( 1 , n ) 1 2 n 3 n 3 = 2 n 3 . Therefore, L ( 1 , n , r ) is a b ( 1 , n ) -adic ( n + 2 r ) -digit non-regular Kaprekar constant for any r 2 , and Part ( 2 ) of Theorem 2 is proven.
Remark 3.
Although we omit the proof here, we can see that for any integer m 2 and odd integer n 3 , it is impossible to construct any b ( m , n ) -adic ( n + 2 r ) -digit non-regular Kaprekar constant by adding β m , n ’s and ( 2 β m , n ) ’s to the b ( m , n ) -adic expression of the b ( m , n ) -adic n-digit regular Kaprekar constant L ( m , n ) , as well as in Part ( 1 ) of Theorem 2.

2.4. A Proof of Corollary 2

We assume that:
m 1 ( mod 3 ) and n 0 ( mod 4 )
(resp.
m = 1 , n 3 ( mod 6 ) and n 9 ) .
By Theorem 2, for any integer r 2 , we then have the b ( m , n ) -adic ( n + 2 r ) -digit non-regular Kaprekar constant K ( m , n , r ) (resp. L ( 1 , n , r ) ). Therefore, we see that:
ν non reg ( b , n + 2 r ) 1 ,
and Corollary 2 is proven.

3. On n-Digit Regular Kaprekar Constants with Specified n

3.1. Some Formulas for All n-Digit Regular Kaprekar Constants with Specified n

Let K ( n ) and L ( n ) be the progressions of n-digit regular Kaprekar constants defined in Definition 3 ( 2 ) for even and odd positive integers n, respectively. On the other hand, it seems that it is very hard to obtain formulas for all n-digit regular Kaprekar constants. In this subsection, we shall obtain partial results on such formulas by case-by-case arguments.
Firstly, we shall see formulas for all n-digit regular Kaprekar constants in the cases where n = 5 , 7 , 9 , 11 in Theorem 3. Note that, in the case where n = 3 , Eldridge and Sagong [5] already proved that a three-digit integer x is a regular Kaprekar constant if and only if x L ( 3 ) , i.e., x is of the form:
( m ( 2 m + 1 ) ( m + 1 ) ) 2 m + 2
with m 1 .
Although one can obtain a similar result for each odd integer n 13 , the authors would not like to do tedious calculations for solving simultaneous equations obtained by the uniqueness of b-adic expressions of any positive integer for any integer b 2 .
Theorem 3.
( 1 ) A five-digit integer x is a regular Kaprekar constant if and only if x L ( 5 ) , i.e., x is of the form:
( ( 2 m + 2 ) m ( 3 m + 2 ) ( 2 m + 1 ) ( m + 1 ) ) 3 m + 3
with m 1 .
( 2 ) A seven-digit integer x is a regular Kaprekar constant if and only if x L ( 7 ) , i.e., x is of the form:
( ( 3 m + 3 ) ( 2 m + 2 ) m ( 4 m + 3 ) ( 3 m + 2 ) ( 2 m + 1 ) ( m + 1 ) ) 4 m + 4
with m 1 .
( 3 ) For any integer b 2 , a b-adic nine-digit integer x is a regular Kaprekar constant if and only if x is of the form:
( ( b m 1 ) ( b 2 m 2 ) ( b 3 m 3 ) m ( b 1 ) ( b m 2 ) ( 3 m + 2 ) ( 2 m + 1 ) ( m + 1 ) ) b ,
where the base b is in the range 5 m + 4 < b < 6 m + 5 with m 1 .
In particular, when b = 5 m + 5 , x is a member of L ( 9 ) .
( 4 ) An 11-digit integer x is a regular Kaprekar constant if and only if x L ( 11 ) , i.e., x is of the form:
( ( 5 m + 5 ) ( 4 m + 4 ) ( 3 m + 3 ) ( 2 m + 2 ) m ( 6 m + 5 ) ( 5 m + 4 ) ( 4 m + 3 ) ( 3 m + 2 ) ( 2 m + 1 ) ( m + 1 ) ) 6 m + 6
with m 1 .
Proof. 
By Theorem 1, it suffices to show that any regular Kaprekar constant in each case is of the form stated in the assertion. In the following, let b 2 be any integer.
( 1 ) For any b-adic five-digit regular Kaprekar constant x, we denote by ( c 4 c 3 c 2 c 1 c 0 ) b with:
b 1 c 4 > c 3 > c 2 > c 1 > c 0 0
the rearrangement in descending order of the numbers of all digits of x. By Ref. [1] (Theorem 1.1 (7)),
x = T ( b , 5 ) ( ( c 4 c 3 c 2 c 1 c 0 ) b ) = ( ( c 4 c 0 ) ( c 3 c 1 1 ) ( b 1 ) ( b 1 ( c 3 c 1 ) ) ( b ( c 4 c 0 ) ) ) b .
We see the following magnitude relations among the numbers of all digits of x:
b 1 c 4 c 0 > c 3 c 1 1 , b 1 > b 1 ( c 3 c 1 ) > b ( c 4 c 0 ) .
Then, we obtain the following:
Lemma 3.
b 1 = c 4 , c 4 c 0 = c 3 , b 1 ( c 3 c 1 ) = c 2 , b ( c 4 c 0 ) = c 1 and c 3 c 1 1 = c 0 .
Proof. 
Since c 4 is the maximum number among all digits of x,
b 1 = c 4 .
This implies that:
c 4 c 0 = b 1 c 0 and b ( c 4 c 0 ) = c 0 + 1 .
Since c 1 is the second smallest number among all digits of x, we then see that:
b ( c 4 c 0 ) = c 1 .
This implies that:
c 3 c 1 1 = c 0
by the two inequalities above. Moreover, we see that:
b 1 ( c 3 c 1 ) = b 2 c 0 < b 1 c 0 = c 4 c 0 ,
which implies that:
c 4 c 0 = c 3 and b 1 ( c 3 c 1 ) = c 2
as desired. □
We then see that the following equality holds:
( ( c 4 c 0 ) ( c 3 c 1 1 ) ( b 1 ) ( b 1 ( c 3 c 1 ) ) ( b ( c 4 c 0 ) ) ) b = ( c 3 c 0 c 4 c 2 c 1 ) b .
This implies that b = 3 c 0 + 3 and:
c 4 = 3 c 0 + 2 , c 3 = 2 c 0 + 2 , c 2 = 2 c 0 + 1 , c 1 = c 0 + 1 .
Putting m = c 0 0 , we then see that:
x = ( ( 2 m + 2 ) m ( 3 m + 2 ) ( 2 m + 1 ) ( m + 1 ) ) 3 m + 3 .
If m = 0 , then we see a contradiction that x = ( 20211 ) 3 is not regular. Therefore, m 1 , and Part ( 1 ) is proven.
( 2 ) For any b-adic seven-digit regular Kaprekar constant x, we denote by ( c 6 c 5 c 4 c 3 c 2 c 1 c 0 ) b with:
b 1 c 6 > c 5 > c 4 > c 3 > c 2 > c 1 > c 0 0
the rearrangement in descending order of the numbers of all digits of x. By the same argument as in the proof of Part ( 1 ) , we then see that one of the following two equalities holds:
( ( c 6 c 0 ) ( c 5 c 1 ) ( c 4 c 2 1 ) ( b 1 ) ( b 1 ( c 4 c 2 ) ) ( b 1 ( c 5 c 1 ) ) ( b ( c 6 c 0 ) ) ) b = ( c 5 c 2 c 0 c 6 c 4 c 3 c 1 ) b ( i ) ( c 5 c 3 c 0 c 6 c 4 c 2 c 1 ) b ( ii )
The equality (i) implies a contradiction that c 2 = 1 2 .
The equality (ii) implies that b = 4 c 0 + 4 and:
c 6 = 4 c 0 + 3 , c 5 = 3 c 0 + 3 , c 4 = 3 c 0 + 2 , c 3 = 2 c 0 + 2 , c 2 = 2 c 0 + 1 , c 1 = c 0 + 1 .
Putting m = c 0 0 , we then see that:
x = ( ( 3 m + 3 ) ( 2 m + 2 ) m ( 4 m + 3 ) ( 3 m + 2 ) ( 2 m + 1 ) ( m + 1 ) ) 4 m + 4 .
If m = 0 , then we see a contradiction that x = ( 3203211 ) 4 is not regular. Therefore, m 1 , and Part ( 2 ) is proven.
( 3 ) For any b-adic nine-digit regular Kaprekar constant x, we denote by ( c 8 c 7 c 6 c 5 c 4 c 3 c 2 c 1 c 0 ) b with:
b 1 c 8 > c 7 > c 6 > c 5 > c 4 > c 3 > c 2 > c 1 > c 0 0
the rearrangement in descending order of the numbers of all digits of x. By the same argument as in the proof of Part ( 1 ) , we then see that one of the following six equalities holds:
( ( c 8 c 0 ) ( c 7 c 1 ) ( c 6 c 2 ) ( c 5 c 3 1 ) ( b 1 ) ( b 1 ( c 5 c 3 ) ) ( b 1 ( c 6 c 2 ) ) ( b 1 ( c 7 c 1 ) ) ( b ( c 8 c 0 ) ) ) b = ( c 7 c 5 c 4 c 0 c 8 c 6 c 3 c 2 c 1 ) b ( i ) ( c 7 c 5 c 3 c 0 c 8 c 6 c 4 c 2 c 1 ) b ( ii ) ( c 7 c 5 c 2 c 0 c 8 c 6 c 4 c 3 c 1 ) b ( iii ) ( c 7 c 4 c 3 c 0 c 8 c 6 c 5 c 2 c 1 ) b ( iv ) ( c 7 c 4 c 2 c 0 c 8 c 6 c 5 c 3 c 1 ) b ( v ) ( c 7 c 3 c 2 c 0 c 8 c 6 c 5 c 4 c 1 ) b ( vi )
The equalities (i) and (v) imply a contradiction that c 4 = c 3 .
The equalities (iii), (iv), and (vi) imply a contradiction that c 5 = c 4 .
The equality (ii) implies that b = c 3 + 3 c 0 + 3 and:
c 8 = c 3 + 3 c 0 + 2 , c 7 = c 3 + 2 c 0 + 2 , c 6 = c 3 + 2 c 0 + 1 , c 5 = c 3 + c 0 + 1 , c 4 = 3 c 0 + 2 , c 2 = 2 c 0 + 1 , c 1 = c 0 + 1 .
Putting m = c 0 0 , we then see that x is equal to:
( ( b m 1 ) ( b 2 m 2 ) ( b 3 m 3 ) m ( b 1 ) ( b m 2 ) ( 3 m + 2 ) ( 2 m + 1 ) ( m + 1 ) ) b ,
where the base b is in the range 5 m + 4 < b < 6 m + 5 , since:
c 4 = 3 m + 2 > c 3 = b 3 m 3 > c 2 = 2 m + 1 .
If m = 0 , then we see a contradiction that b is in the range 4 < b < 5 . Therefore, m 1 , and Part ( 3 ) is proven.
( 4 ) For any b-adic 11-digit regular Kaprekar constant x, we denote by ( c 10 c 9 c 8 c 7 c 6 c 5 c 4 c 3 c 2 c 1 c 0 ) b with:
b 1 c 10 > c 9 > c 8 > c 7 > c 6 > c 5 > c 4 > c 3 > c 2 > c 1 > c 0 0
the rearrangement in descending order of the numbers of all digits of x. By the same argument as in the proof of Part ( 1 ) , we then see that one of the following twenty equalities holds:
( ( c 10 c 0 ) ( c 9 c 1 ) ( c 8 c 2 ) ( c 7 c 3 ) ( c 6 c 4 1 ) ( b 1 ) ( b 1 ( c 6 c 4 ) ) ( b 1 ( c 7 c 3 ) ) ( b 1 ( c 8 c 2 ) ) ( b 1 ( c 9 c 1 ) ) ( b ( c 10 c 0 ) ) ) b = ( c 9 c 7 c 6 c 5 c 0 c 10 c 8 c 4 c 3 c 2 c 1 ) b ( i ) ( c 9 c 7 c 6 c 4 c 0 c 10 c 8 c 5 c 3 c 2 c 1 ) b ( ii ) ( c 9 c 7 c 6 c 3 c 0 c 10 c 8 c 5 c 4 c 2 c 1 ) b ( iii ) ( c 9 c 7 c 6 c 2 c 0 c 10 c 8 c 5 c 4 c 3 c 1 ) b ( iv ) ( c 9 c 7 c 5 c 4 c 0 c 10 c 8 c 6 c 3 c 2 c 1 ) b ( v ) ( c 9 c 7 c 5 c 3 c 0 c 10 c 8 c 6 c 4 c 2 c 1 ) b ( vi ) ( c 9 c 7 c 5 c 2 c 0 c 10 c 8 c 6 c 4 c 3 c 1 ) b ( vii ) ( c 9 c 7 c 4 c 3 c 0 c 10 c 8 c 6 c 5 c 2 c 1 ) b ( viii ) ( c 9 c 7 c 4 c 2 c 0 c 10 c 8 c 6 c 5 c 3 c 1 ) b ( ix ) ( c 9 c 7 c 3 c 2 c 0 c 10 c 8 c 6 c 5 c 4 c 1 ) b ( x ) ( c 9 c 4 c 3 c 2 c 0 c 10 c 8 c 7 c 6 c 5 c 1 ) b ( xi ) ( c 9 c 5 c 3 c 2 c 0 c 10 c 8 c 7 c 6 c 4 c 1 ) b ( xii ) ( c 9 c 5 c 4 c 2 c 0 c 10 c 8 c 7 c 6 c 3 c 1 ) b ( xiii ) ( c 9 c 5 c 4 c 3 c 0 c 10 c 8 c 7 c 6 c 2 c 1 ) b ( xiv ) ( c 9 c 6 c 3 c 2 c 0 c 10 c 8 c 7 c 5 c 4 c 1 ) b ( xv ) ( c 9 c 6 c 4 c 2 c 0 c 10 c 8 c 7 c 5 c 3 c 1 ) b ( xvi ) ( c 9 c 6 c 4 c 3 c 0 c 10 c 8 c 7 c 5 c 2 c 1 ) b ( xvii ) ( c 9 c 6 c 5 c 2 c 0 c 10 c 8 c 7 c 4 c 3 c 1 ) b ( xviii ) ( c 9 c 6 c 5 c 3 c 0 c 10 c 8 c 7 c 4 c 2 c 1 ) b ( xix ) ( c 9 c 6 c 5 c 4 c 0 c 10 c 8 c 7 c 3 c 2 c 1 ) b ( xx )
The equality (i) implies a contradiction that c 5 c 4 .
The equalities (ii), (x), (xii), and (xiii) imply a contradiction that c 10 = c 9 .
The equalities (iii), (iv), (vii), (xi), and (xviii) imply a contradiction that c 7 < c 6 .
The equality (v) implies a contradiction that c 6 < c 5 .
The equalities (viii) and (xvi) imply a contradiction that c 7 = c 6 .
The equality (ix) implies that:
c 7 = c 2 + 2 c 0 + 1 , c 6 = 4 c 0 + 2 , c 3 = 2 c 0 + 1 ,
which yields a contradiction that c 2 > 2 c 0 + 1 > c 2 .
The equality (xiv) implies a contradiction that c 6 = c 5 .
The equality (xv) implies a contradiction that c 8 = c 7 .
The equality (xvii) implies that:
c 7 = 2 c 3 , c 6 = 3 c 3 2 c 0 1 , c 2 = 2 c 0 + 1 ,
which implies a contradiction that c 3 > 2 c 0 + 1 > c 3 .
The equality (xix) implies a contradiction that c 7 = 4 c 0 + 8 3 .
The equality (xx) implies a contradiction that c 8 < c 7 .
The equality (vi) implies that b = 6 c 0 + 6 and:
c 10 = 6 c 0 + 5 , c 9 = 5 c 0 + 5 , c 8 = 5 c 0 + 4 , c 7 = 4 c 0 + 4 , c 6 = 4 c 0 + 3 , c 5 = 3 c 0 + 3 , c 4 = 3 c 0 + 2 , c 3 = 2 c 0 + 2 , c 2 = 2 c 0 + 1 , c 1 = c + 1 .
Putting m = c 0 0 , we then see that:
x = ( ( 5 m + 5 ) ( 4 m + 4 ) ( 3 m + 3 ) ( 3 m + 2 ) m ( 6 m + 5 ) ( 5 m + 4 ) ( 4 m + 3 ) ( 3 m + 2 ) ( 2 m + 1 ) ( m + 1 ) ) 6 m + 6 .
If m = 0 , then we see a contradiction that x = ( 54320543211 ) 6 is not regular. Therefore, m 1 , and Part ( 4 ) is proven. □
Secondly, we see formulas for all n-digit regular Kaprekar constants in the cases where n = 2 , 4 , 6 , 8 in Theorem 4. Although one can obtain a similar result for each even integer n 10 , the authors would not like to do tedious calculations for solving simultaneous equations obtained by the uniqueness of b-adic expressions of any positive integer for any integer b 2 .
Note that we shall need more calculations of solving simultaneous equations in the proof for even cases in Theorem 4 than odd cases in Theorem 3, because, in the case where n 2 is even, the Kaprekar transformation T ( b , n ) may not necessarily give us the maximum number b 1 among the numbers of all digits.
Theorem 4.
( 1 ) A two-digit integer x is a regular Kaprekar constant if and only if x K ( 2 ) { ( 01 ) 2 } , i.e, x is of the form:
( m ( 2 m + 1 ) ) 3 m + 2
with m 0 .
( 2 ) A four-digit integer x is a regular Kaprekar constant if and only if x = ( 3021 ) 4 or x K ( 4 ) , i.e., x is of the form:
( ( 3 m + 3 ) m ( 4 m + 3 ) ( 2 m + 2 ) ) 5 m + 5
with m 1 .
( 3 ) A six-digit integer x is a regular Kaprekar constant if and only if x is equal to:
( 530421 ) 6 , ( ( 9 m + 6 ) ( 5 m + 3 ) ( 3 m + 1 ) ( 2 m + 7 ) ( 10 m + 6 ) ( 6 m + 4 ) ) 15 m + 10 , ( ( 5 m + 4 ) ( 3 m + 2 ) m ( 6 m + 4 ) ( 4 m + 3 ) ( 2 m + 2 ) ) 7 m + 6 or ( ( 7 m + 6 ) ( 5 m + 4 ) m ( 8 m + 6 ) ( 4 m + 1 ) ( 2 m + 2 ) ) 9 m + 8 ( K ( 6 ) )
with m 1 .
( 4 ) An eight-digit integer x is a regular Kaprekar constant if and only if x is equal to:
( 97508421 ) 10 , ( 75306421 ) 8 , ( ( 11 m + 7 ) ( 7 m + 4 ) ( 5 m + 3 ) ( 3 m + 1 ) ( 14 m + 8 ) ( 12 m + 7 ) ( 10 m + 6 ) ( 6 m + 4 ) ) 17 m + 11 , ( ( 15 m + 9 ) ( 9 m + 5 ) ( 7 m + 4 ) ( 3 m + 1 ) ( 18 m + 10 ) ( 14 m + 8 ) ( 12 m + 7 ) ( 6 m + 4 ) ) 21 m + 13 , ( ( 13 m + 10 ) ( 11 m + 8 ) ( 7 m + 5 ) m ( 14 m + 10 ) ( 8 m + 6 ) ( 4 m + 3 ) ( 2 m + 2 ) ) 15 m + 12 or ( ( 15 m + 12 ) ( 13 m + 10 ) ( 9 m + 7 ) m ( 16 m + 12 ) ( 8 m + 6 ) ( 4 m + 3 ) ( 2 m + 2 ) ) 17 m + 14 ( K ( 8 ) )
with m 1 .
Proof. 
( 1 ) For any b-adic two-digit regular Kaprekar constant x, we denote by x = ( c 1 c 0 ) b with b 1 c 1 > c 0 0 the rearrangement in descending order of numbers of all digits of x. By Ref. [1] (Theorem 1.1 (2)),
x = T ( b , 2 ) ( ( c 1 c 0 ) b ) = ( ( c 1 c 0 1 ) ( b ( c 1 c 0 ) ) ) b .
We then see that one of the following two equalities holds:
( ( c 1 c 0 1 ) ( b ( c 1 c 0 ) ) ) b = ( c 1 c 0 ) b ( i ) ( c 0 c 1 ) b ( ii )
The equality (i) implies a contradiction that c 0 = 1 .
The equality (ii) implies that:
c 1 = 2 b 1 3 and c 0 = b 2 3 .
Putting m = c 0 0 , we then see that:
b = 3 m + 2 and c 1 = 2 m + 1
as desired.
( 2 ) For any b-adic four-digit regular Kaprekar constant x, we denote by ( c 3 c 2 c 1 c 0 ) b with b 1 c 3 > c 2 > c 1 > c 0 0 the rearrangement in descending order of the numbers of all digits of x. By Ref. [1] (Theorem 1.1 (6)),
x = T ( b , 4 ) ( ( c 3 c 2 c 1 c 0 ) b ) = ( ( c 3 c 0 ) ( c 2 c 1 1 ) ( b 1 ( c 2 c 1 ) ) ) ( b ( c 3 c 0 ) ) ) b .
Since:
c 3 c 0 > c 2 c 1 1 and b 1 ( c 2 c 1 ) > b ( c 3 c 0 ) ,
we see that one of the following six equalities holds:
( ( c 3 c 0 ) ( c 2 c 1 1 ) ( b 1 ( c 2 c 1 ) ) ( b ( c 3 c 0 ) ) ) b = ( c 3 c 2 c 1 c 0 ) b ( i ) ( c 3 c 1 c 2 c 0 ) b ( ii ) ( c 3 c 0 c 2 c 1 ) b ( iii ) ( c 1 c 0 c 3 c 2 ) b ( iv ) ( c 2 c 0 c 3 c 1 ) b ( v ) ( c 2 c 1 c 3 c 0 ) b ( vi )
The equalities (i), (ii), and (vi) imply a contradiction that c 3 = b .
The equality (iii) implies that x = ( 3021 ) 4 .
The equality (iv) implies a contradiction that c 3 < c 2 .
The equality (v) implies that b = 5 c 0 + 5 and:
c 3 = 4 c 0 + 3 , c 2 = 3 c 0 + 3 , c 1 = 2 c 0 + 2 .
Putting m = c 0 0 , we then see that:
x = ( ( 3 m + 3 ) m ( 4 m + 3 ) ( 2 m + 2 ) ) 5 m + 5 .
If m = 0 , then we see a contradiction that x = ( 3032 ) 5 is not regular. Therefore, m 1 , and Part ( 2 ) is proven.
( 3 ) For any b-adic six-digit regular Kaprekar constant x, we denote by ( c 5 c 4 c 3 c 2 c 1 c 0 ) b with:
b 1 c 5 > c 4 > c 3 > c 2 > c 1 > c 0 0
the rearrangement in descending order of the numbers of all digits of x. By Ref. [1] (Theorem 1.1 (6)),
x = T ( b , 6 ) ( ( c 5 c 4 c 3 c 2 c 1 c 0 ) b ) = ( ( c 5 c 0 ) ( c 4 c 1 ) ( c 3 c 2 1 ) ( b 1 ( c 3 c 2 ) ) ( b 1 ( c 4 c 1 ) ) ( b ( c 5 c 0 ) ) ) b .
Since c 5 c 0 > c 4 c 1 > c 3 c 2 1 and:
b 1 ( c 3 c 2 ) > b 1 ( c 4 c 1 ) > b ( c 5 c 0 ) ,
we see that c 3 c 2 1 = c 0 or b ( c 5 c 0 ) = c 0 . The equality b ( c 5 c 0 ) = c 0 implies a contradiction that b = c 5 , and the equality c 4 c 1 = c 4 implies a contradiction that c 1 = 0 > c 0 . Therefore, we see that one of the following nine equalities holds:
( ( c 5 c 0 ) ( c 4 c 1 ) ( c 3 c 2 1 ) ( b 1 ( c 3 c 2 ) ) ( b 1 ( c 4 c 1 ) ) ( b ( c 5 c 0 ) ) ) b = ( c 5 c 3 c 0 c 4 c 2 c 1 ) b ( i ) ( c 5 c 2 c 0 c 4 c 3 c 1 ) b ( ii ) ( c 5 c 1 c 0 c 4 c 3 c 2 ) b ( iii ) ( c 2 c 1 c 0 c 5 c 4 c 3 ) b ( iv ) ( c 3 c 1 c 0 c 5 c 4 c 2 ) b ( v ) ( c 3 c 2 c 0 c 5 c 4 c 1 ) b ( vi ) ( c 4 c 1 c 0 c 5 c 3 c 2 ) b ( vii ) ( c 4 c 2 c 0 c 5 c 3 c 1 ) b ( viii ) ( c 4 c 3 c 0 c 5 c 2 c 1 ) b ( ix )
The equality (i) implies that x = ( 530421 ) 6 .
The equality (ii) and (iii) imply a contradiction that c 2 = c 1 .
The equality (iv) implies that c 2 = c 0 + 1 , which contradicts the condition that c 2 > c 1 > c 0 .
The equality (vi) implies a contradiction that c 2 = c 0 .
The equality (vii) implies a contradiction that x = ( 420432 ) 6 is not regular.
The equality (v) implies that b = 5 c 0 + 5 and:
c 5 = 4 c 0 + 3 , c 4 = 10 c 0 + 8 3 , c 3 = 3 c 0 + 3 , c 2 = 2 c 0 + 2 , c 1 = 5 c 0 + 4 3 .
Putting c 0 = 3 m + 1 with m 0 , we then see that:
x = ( ( 9 m + 6 ) ( 5 m + 3 ) ( 3 m + 1 ) ( 12 m + 7 ) ( 10 m + 6 ) ( 6 m + 4 ) ) 15 m + 10 .
If m = 0 , then we see a contradiction that x = ( 631764 ) 10 is not regular. Therefore, m 1 .
The equality (viii) implies that b = 7 c 0 + 6 and:
c 5 = 6 c 0 + 4 , c 4 = 5 c 0 + 4 , c 3 = 4 c 0 + 3 , c 2 = 3 c 0 + 2 , c 1 = 2 c 0 + 2 .
Putting m = c 0 0 , we then see that:
x = ( ( 5 m + 4 ) ( 3 m + 2 ) m ( 6 m + 4 ) ( 4 m + 3 ) ( 2 m + 2 ) ) 7 m + 6 .
If m = 0 , then we see a contradiction that x = ( 420432 ) 6 is not regular. Therefore, m 1 .
The equality (ix) implies that b = 9 c 0 + 8 and:
c 5 = 8 c 0 + 6 , c 4 = 7 c 0 + 6 , c 3 = 5 c 0 + 4 , c 2 = 4 c 0 + 3 , c 1 = 2 c 0 + 2 .
Putting m = c 0 0 , we then see that:
x = ( ( 7 m + 6 ) ( 5 m + 4 ) m ( 8 m + 6 ) ( 4 m + 3 ) ( 2 m + 2 ) ) 9 m + 8 .
If m = 0 , then we see a contradiction that x = ( 640632 ) 8 is not regular. Therefore, m 1 , and Part ( 3 ) is proven.
( 4 ) For any b-adic eight-digit regular Kaprekar constant x, we denote by ( c 7 c 6 c 5 c 4 c 3 c 2 c 1 c 0 ) b with:
b 1 c 7 > c 6 > c 5 > c 4 > c 3 > c 2 > c 1 > c 0 0
the rearrangement in descending order of the numbers of all digits of x. By Ref. [1] (Theorem 1.1 (6)),
x = T ( b , 8 ) ( ( c 7 c 6 c 5 c 4 c 3 c 2 c 1 c 0 ) b ) = ( ( c 7 c 0 ) ( c 6 c 1 ) ( c 5 c 2 ) ( c 4 c 3 1 ) ( b 1 ( c 4 c 3 ) ) ( b 1 ( c 5 c 2 ) ) ( b 1 ( c 6 c 1 ) ) ( b ( c 7 c 0 ) ) ) b .
Since c 7 c 0 > c 6 c 1 > c 5 c 2 > c 4 c 3 1 and:
b 1 ( c 4 c 3 ) > b 1 ( c 5 c 2 ) > b 1 ( c 6 c 1 ) > b ( c 7 c 0 ) ,
we see that c 4 c 3 1 = c 0 or b ( c 7 c 0 ) = c 0 . The equality b ( c 7 c 0 ) = c 0 implies a contradiction that b = c 7 , and the equality c 6 c 1 = c 6 implies a contradiction that c 1 = 0 > c 0 . Therefore, we see that one of the following thirty equalities holds:
( ( c 7 c 0 ) ( c 6 c 1 ) ( c 5 c 2 ) ( c 4 c 3 1 ) ( b 1 ( c 4 c 3 ) ) ( b 1 ( c 5 c 2 ) ) ( b 1 ( c 6 c 1 ) ) ( b ( c 7 c 0 ) ) ) b = ( c 7 c 5 c 4 c 0 c 6 c 3 c 2 c 1 ) b ( i ) ( c 7 c 5 c 3 c 0 c 6 c 4 c 2 c 1 ) b ( ii ) ( c 7 c 5 c 2 c 0 c 6 c 4 c 3 c 1 ) b ( iii ) ( c 7 c 5 c 1 c 0 c 6 c 4 c 3 c 2 ) b ( iv ) ( c 7 c 4 c 3 c 0 c 6 c 5 c 2 c 1 ) b ( v ) ( c 7 c 4 c 2 c 0 c 6 c 5 c 3 c 1 ) b ( vi ) ( c 7 c 4 c 1 c 0 c 6 c 5 c 3 c 2 ) b ( vii ) ( c 7 c 3 c 2 c 0 c 6 c 5 c 4 c 1 ) b ( viii ) ( c 7 c 3 c 1 c 0 c 6 c 5 c 4 c 2 ) b ( ix ) ( c 7 c 2 c 1 c 0 c 6 c 5 c 4 c 3 ) b ( x ) ( c 3 c 2 c 1 c 0 c 7 c 6 c 5 c 4 ) b ( xi ) ( c 4 c 2 c 1 c 0 c 7 c 6 c 5 c 3 ) b ( xii ) ( c 4 c 3 c 1 c 0 c 7 c 6 c 5 c 2 ) b ( xiii ) ( c 4 c 3 c 2 c 0 c 7 c 6 c 5 c 1 ) b ( xiv ) ( c 5 c 2 c 1 c 0 c 7 c 6 c 4 c 3 ) b ( xv ) ( c 5 c 3 c 1 c 0 c 7 c 6 c 4 c 2 ) b ( xvi ) ( c 5 c 3 c 2 c 0 c 7 c 6 c 4 c 1 ) b ( xvii ) ( c 5 c 4 c 1 c 0 c 7 c 6 c 3 c 2 ) b ( xviii ) ( c 5 c 4 c 2 c 0 c 7 c 6 c 3 c 1 ) b ( xix ) ( c 5 c 4 c 3 c 0 c 7 c 6 c 2 c 1 ) b ( xx ) ( c 6 c 2 c 1 c 0 c 7 c 5 c 4 c 3 ) b ( xxi ) ( c 6 c 3 c 1 c 0 c 7 c 5 c 4 c 2 ) b ( xxii ) ( c 6 c 3 c 2 c 0 c 7 c 5 c 4 c 1 ) b ( xxiii ) ( c 6 c 4 c 1 c 0 c 7 c 5 c 3 c 2 ) b ( xxiv ) ( c 6 c 4 c 2 c 0 c 7 c 5 c 3 c 1 ) b ( xxv ) ( c 6 c 4 c 3 c 0 c 7 c 5 c 2 c 1 ) b ( xxvi ) ( c 6 c 5 c 1 c 0 c 7 c 4 c 3 c 2 ) b ( xxvii ) ( c 6 c 5 c 2 c 0 c 7 c 4 c 3 c 1 ) b ( xxviii ) ( c 6 c 5 c 3 c 0 c 7 c 4 c 2 c 1 ) b ( xxix ) ( c 6 c 5 c 4 c 0 c 7 c 3 c 2 c 1 ) b ( xxx )
The equality (i) implies that x = ( 97508421 ) 10 .
The equality (ii) implies that x = ( 75306421 ) 8 .
The equality (iii) implies a contradiction that c 6 = c 4 .
The equality (iv) implies a contradiction that c 5 = c 3 .
The equalities (v), (x), (xv), and (xxi) imply a contradiction that c 6 = c 5 .
The equality (vi) implies a contradiction that c 2 = 5 3 .
The equality (vii) implies a contradiction that c 7 < c 6 .
The equalities (viii) and (ix) imply a contradiction that c 3 = c 1 .
The equalities (xi), (xii), (xiii), and (xiv) imply a contradiction that c 2 = c 1 .
The equality (xvii) implies a contradiction that c 1 = c 0 = 2 .
The equality (xviii) implies a contradiction that b = 5 c 0 + 14 3 .
The equality (xix) implies a contradiction that b = 2 c 2 2 3 .
The equality (xx) implies a contradiction that c 7 = c 5 .
The equality (xxii) implies a contradiction that 4 > c 1 > 3 .
The equality (xxiv) implies a contradiction that b = 2 c 1 + 7 3 .
The equality (xxv) implies a contradiction that c 5 = 6 c 1 + 14 3 .
The equality (xxvi) implies a contradiction that c 4 = c 1 .
The equality (xxvii) implies a contradiction that c 0 = 1 .
The equality (xxviii) implies a contradiction that c 7 = c 4 .
The equality (xvi) implies that b = 17 c 0 + 16 3 and:
c 7 = 14 c 0 + 10 3 , c 6 = 4 c 0 + 3 , c 5 = 11 c 0 + 10 3 , c 4 = 10 c 0 + 8 3 , c 3 = 7 c 0 + 5 3 , c 2 = 2 c 0 + 2 , c 1 = 5 c 0 + 4 3 .
Putting c 0 = 3 m + 1 with m 0 , we then see that:
x = ( ( 11 m + 7 ) ( 7 m + 4 ) ( 5 m + 3 ) ( 3 m + 1 ) ( 4 m + 8 ) ( 12 m + 7 ) ( 10 m + 6 ) ( 6 m + 4 ) ) 17 m + 11 .
If m = 0 , then we see a contradiction that x = ( 74318764 ) 11 is not regular. Therefore, m 1 .
The equality (xxiii) implies that b = 7 c 0 + 6 and:
c 7 = 6 c 0 + 4 , c 6 = 5 c 0 + 4 , c 5 = 14 c 0 + 10 3 , c 4 = 4 c 0 + 3 , c 3 = 3 c 0 + 2 , c 2 = 7 c 0 + 5 3 , c 1 = 2 c 0 + 2 .
Putting c 0 = 3 m + 1 with m 0 , we then see that:
x = ( ( 15 m + 9 ) ( 9 m + 5 ) ( 7 m + 4 ) ( 3 m + 1 ) ( 18 m + 10 ) ( 14 m + 8 ) ( 12 m + 7 ) ( 6 m + 4 ) ) 21 m + 13 .
If m = 0 , then we see a contradiction that x = ( 9541 ( 10 ) 874 ) 13 is not regular. Therefore, m 1 .
The equality (xxix) implies that b = 15 c 0 + 12 and:
c 7 = 14 c 0 + 10 , c 6 = 13 c 0 + 10 , c 5 = 11 c 0 + 8 , c 4 = 8 c 0 + 6 , c 3 = 7 c 0 + 5 , c 2 = 4 c 0 + 3 , c 1 = 2 c 0 + 2 .
Putting m = c 0 0 , we then see that:
x = ( ( 13 m + 10 ) ( 11 m + 8 ) ( 7 m + 5 ) m ( 14 m + 10 ) ( 8 m + 6 ) ( 4 m + 3 ) ( 2 m + 2 ) ) 15 m + 12 .
If m = 0 , then we see a contradiction that x = ( ( 10 ) 850 ( 10 ) 632 ) 12 is not regular. Therefore, m 1 .
The equality (xxx) implies that b = 17 c 0 + 14 and:
c 7 = 16 c 0 + 12 , c 6 = 15 c 0 + 12 , c 5 = 13 c 0 + 10 , c 4 = 9 c 0 + 7 , c 3 = 8 c 0 + 6 , c 2 = 4 c 0 + 3 , c 1 = 2 c 0 + 2 .
Putting m = c 0 0 , we then see that:
x = ( ( 15 m + 12 ) ( 13 m + 10 ) ( 9 m + 7 ) m ( 16 m + 12 ) ( 8 m + 6 ) ( 4 m + 3 ) ( 2 m + 2 ) ) 17 m + 14 .
If m = 0 , then we see a contradiction that x = ( ( 12 ) ( 10 ) 70 ( 12 ) 632 ) 14 is not regular. Therefore, m 1 , and Part ( 4 ) is proven. □
We shall also obtain some conditional results on formulas for n-digit regular Kaprekar constants in the following proposition for which we omit the proof because one can prove them by the same arguments as in the proof of Theorem 3:
Proposition 1.
Let the notation be as in Theorem 3. For any integer b 2 , we see the following:
( 1 ) A b-adic 13-digit integer x = ( a 12 a 0 ) b with 0 a 0 , , a 12 b 1 satisfying the condition:
a 11 > a 4 > a 10 > a 3 > a 9 > a 2 > a 8 > a 1
is a regular Kaprekar constant if and only if x L ( 13 ) with b b ( 13 ) , i.e., x is of the form:
( ( 6 m + 6 ) ( 5 m + 5 ) ( 4 m + 4 ) ( 3 m + 3 ) ( 2 m + 2 ) m ( 7 m + 6 ) ( 6 m + 5 ) ( 5 m + 4 ) ( 4 m + 3 ) ( 3 m + 2 ) ( 2 m + 1 ) ( m + 1 ) ) 7 m + 7
with m 1 .
( 2 ) A b-adic 15-digit integer x = ( a 14 a 0 ) b with 0 a 0 , , a 14 b 1 satisfying the condition:
a 13 > a 5 > a 12 > a 4 > a 11 > a 3 > a 10 > a 2 > a 9 > a 1
is a regular Kaprekar constant if and only if x is of the form:
( ( b m 1 1 ) ( b 2 m 1 2 ) ( b 3 m 1 3 ) ( b 2 m 1 m 2 2 ) ( b 3 m 1 m 2 3 ) m 2 m 1 ( b 1 ) ( b m 1 2 ) ( b m 2 1 ) ( 3 m 1 + m 2 + 2 ) ( 2 m 1 + m 2 + 1 ) ( 3 m 1 + 2 ) ( 2 m 1 + 1 ) ( m 1 + 1 ) ) b ,
where m 1 1 , m 2 is in the range:
2 m 1 + 1 < m 2 < 3 m 1 + 2
and b is in the range:
6 m 1 + m 2 + 5 < b < 5 m 1 + 2 m 2 + 4 .
( 3 ) A b-adic 17-digit integer x = ( a 16 a 0 ) b with 0 a 0 , , a 16 b 1 satisfying the condition:
a 15 > a 6 > a 14 > a 5 > a 13 > a 4 > a 12 > a 3 > a 11 > a 2 > a 10 > a 1
is a regular Kaprekar constant if and only if x is of the form:
( ( b m 1 ) ( b 2 m 2 ) ( b 3 m 3 ) 3 b 7 m 7 4 3 b 11 m 11 4 b 3 m 2 2 b m 1 4 m ( b 1 ) ( b m 2 ) 3 b + m 3 4 b + 3 m + 1 2 b + 11 m + 7 4 b + 7 m + 3 4 ( 3 m + 2 ) ( 2 m + 1 ) ( m + 1 ) ) b ,
where b satisfies the conditions:
9 m + 7 < b < 11 m + 9 and b m + 1 ( mod 4 )
with m 1 .

3.2. Some Observations on ν reg ( b , n ) with Specified n

As a corollary to Theorems 3 and 4, we can make some observations on the numbers ν reg ( b , n ) of all b-adic n-digit regular Kaprekar constants for n = 2 , 4 , 5 , 6 , 7 , 8 , 9 , 11 as in the following:
Corollary 3.
Let b 2 be any integer. Then, we see the following:
( 1 )
ν reg ( b , 2 ) = 1 if 3 ( b + 1 ) , 0 otherwise .
( 2 )
ν reg ( b , 4 ) = 1 if b = 4 or , b 10 and 5 b , 0 otherwise .
( 3 )
ν reg ( b , 5 ) = 1 if b 6 and 3 b , 0 otherwise .
( 4 )
ν reg ( b , 6 ) = 2 if b ( A 1 A 2 ) ( A 2 A 3 ) , 1 otherwise , 0 if b 6 and b A 1 A 2 A 3 , where the sets A 1 , A 2 , and A 3 are defined as:
A 1 = { b Z | b 25 and b 10 ( mod 15 ) } , A 2 = { b Z | b 13 and b 6 ( mod 7 ) } , A 3 = { b Z | b 17 and b 8 ( mod 9 ) } .
( 5 )
ν reg ( b , 7 ) = 1 if b 8 and 4 b , 0 otherwise .
( 6 )
ν reg ( b , 8 ) = 2 if b ( B 1 B 2 ) ( B 1 B 3 ) ( B 2 B 3 ) ( B 3 B 4 ) , 1 otherwise , 0 if b 8 , 10 and b B 1 B 2 B 3 B 4 . where the sets B 1 , B 2 , B 3 , and B 4 are defined as:
B 1 = { b Z | b 28 and b 11 ( mod 17 ) } , B 2 = { b Z | b 34 and b 13 ( mod 21 ) } , B 3 = { b Z | b 27 and b 12 ( mod 15 ) } , B 4 = { b Z | b 31 and b 14 ( mod 17 ) } .
( 7 )
ν reg ( b , 9 ) = b 30 + 1 if b 10 , 15 , 16 , 20 , 21 , 22 , 25 , 26 , 27 , 28 ( mod 30 ) , b 30 otherwise .
( 8 )
ν reg ( b , 11 ) = 1 if b 12 and 6 b , 0 otherwise .
Remark 4.
( 1 ) The intersections of the sets A 1 , A 2 , and A 3 in Corollary 3 ( 4 ) are the following:
A 1 A 2 = { b Z | b 55 and b 55 ( mod 105 ) } , A 2 A 3 = { b Z | b 62 and b 62 ( mod 63 ) } , A 1 A 3 = .
( 2 ) The intersections of the sets B 1 , B 2 , B 3 , and B 4 in Corollary 3 ( 6 ) are the following:
B 1 B 2 = { b Z | b 181 and b 181 ( mod 357 ) } , B 1 B 3 = { b Z | b 147 and b 147 ( mod 255 ) } , B 2 B 4 = { b Z | b 286 and b 286 ( mod 357 ) } , B 3 B 4 = { b Z | b 255 and b 255 ( mod 255 ) } , B 1 B 4 = B 2 B 3 = .
Remark 5.
We can see that Corollary 3 ( 1 ) ( 5 ) matches the values of ν r in the list in Example 2.
Proof. 
We see immediately that Parts ( 1 ) ( 6 ) and ( 8 ) are implied by the respective formulas obtained in Theorem 3 ( 1 ) , ( 2 ) , ( 4 ) and Theorem 4 for the respective digits n, since these formulas give distinct n-digit regular Kaprekar constants for distinct positive integers m, and we see that:
A 1 A 3 = B 1 B 4 = B 2 B 3 =
as mentioned in Remark 4.
Now, we prove Part ( 7 ) for the case where n = 9 . Since the formula obtained in Theorem 3 ( 3 ) gives distinct b-adic nine-digit regular Kaprekar constants for distinct pairs ( b , m ) of suitable integers b and m, we see that:
ν reg ( b , 9 ) = m Z m 1 , b 5 6 < m < b 4 5 ,
where the symbol ♯ stands for the number of all elements in the set.
For any integer b 0 , we then see that:
ν reg ( b , 9 ) = b if 30 b + 2 b 30 b + 9 , b + 1 if b = 30 b + 10 , b if 30 b + 11 b 30 b + 14 , b + 1 if 30 b + 15 b 30 b + 16 , b if 30 b + 17 b 30 b + 19 , b + 1 if 30 b + 20 b 30 b + 22 , b if 30 b + 23 b 30 b + 24 , b + 1 if 30 b + 25 b 30 b + 28 , b if b = 30 b + 29 , b + 1 if 30 b + 30 b 30 b + 31 .
Therefore, Part ( 7 ) is proven. □
Moreover, as a corollary to Proposition 1, we can obtain lower bounds for ν reg ( b , n ) with n = 13 , 15 , 17 as in the following:
Corollary 4.
Let b 2 be any integer. Then, we have the following estimations:
( 1 )
ν reg ( b , 13 ) 1 if b 14 and 7 b .
( 2 )
ν reg ( b , 15 ) b 7 9 m b 8 8 ( b 8 m 7 ) + b 5 11 m b 8 9 m b 9 m 2 + 3 , where the symbol m in the sums stands for positive integers.
( 3 )
ν reg ( b , 17 ) k Z k 2 , b k ( mod 4 ) , 0 b 9 k 4 k 2 1 .
Proof. 
( 1 ) We see immediately that Part ( 1 ) is implied by the conditional formula obtained in Proposition 1 ( 1 ) , since the formula gives distinct ( 7 m + 7 ) -adic 13-digit regular Kaprekar constants for distinct positive integers m.
( 2 ) Since the conditional formula obtained in Proposition 1 ( 2 ) gives distinct b-adic 15-digit regular Kaprekar constants for distinct triples ( b , m 1 , m 2 ) of suitable integers b, m 1 , and m 2 , we see that:
ν reg ( b , 15 ) { ( m 1 , m 2 ) Z × Z | m 1 1 , 2 m 1 + 1 < m 2 < 3 m 1 + 2 , 6 m 1 + m 2 + 5 < b < 5 m 1 + 2 m 2 + 4 } .
For any integer m 1 1 , the list of m 2 and b satisfying the conditions:
2 m 1 + 1 < m 2 < 3 m 1 + 2 , 6 m 1 + m 2 + 5 < b < 5 m 1 + 2 m 2 + 4
is the following:
m 2       b
2 m 1 + 2 8 m 1 + 8 , , 9 m 1 + 7
2 m 1 + 3 8 m 1 + 9 , , 9 m 1 + 8 , 9 m 1 + 9
3 m 1 + 1 9 m 1 + 7 , , 10 m 1 + 6 , 10 m 1 + 7 , , 11 m 1 + 5
Since the number of b’s appearing in the list above is equal to:
( b + 1 ) ( 8 m 1 + 8 ) if 8 m 1 + 8 b 9 m 1 + 7 , ( m 1 1 ) b ( 9 m 1 + 8 ) 2 if 9 m 1 + 8 b 11 m 1 + 5 ,
the right-hand side in the inequality above is equal to:
b 7 9 m b 8 8 ( b 8 m 7 ) + b 5 11 m b 8 9 m b 9 m 2 + 3 ,
where the symbol m in the sums stands for positive integers. Therefore, Part ( 2 ) is proven.
( 3 ) Since the conditional formula obtained in Proposition 1 ( 3 ) gives distinct b-adic 17-digit regular Kaprekar constants for distinct pairs ( b , m ) of suitable integers b and m, we see that:
ν reg ( b , 17 ) { m Z | m 1 , 9 m + 7 < b < 11 m + 9 , b m + 1 ( mod 4 ) } .
For any integer m 1 , the first term and the final term in the range 9 m + 7 < b < 11 m + 9 of the arithmetic progression with the common difference of four, which are congruent to m + 1 modulo four, are 9 m + 9 and ( 9 m + 9 ) + 4 m + 1 2 1 , respectively. Putting k = m + 1 , we then see that:
{ m Z | m 1 , 9 m + 7 < b < 11 m + 9 , b m + 1 ( mod 4 ) } = k Z k 2 , b k ( mod 4 ) , 0 b 9 k 4 k 2 1 ,
and Part ( 3 ) is proven. □

Author Contributions

Conceptualization, A.Y.; investigation, A.Y. and Y.M.; writing, original draft, A.Y.

Funding

This research did not receive any specific grant from funding agencies in the public, commercial, or not-for-profit sectors.

Acknowledgments

The A.Y. is very grateful to the Y.M., who was one of his students at Soka University, for giving some interesting talks about formulas for Kaprekar constants in seminars held in 2017 at Soka University.

Conflicts of Interest

The authors declare no conflict of interest.

Errata of [1]

Since the reference [1] is very important to readers of this article, we would like to describe the errata of [1] here:
  • p. 263, . 32, N ( b , 2 ) and ( b , 2 ) N ( b , 5 ) and ( b , 5 )
  • p. 266, .7, 14, 16, 18, 19, 20, 21, 23, 24: ( c 0 ) 2 ( c 0 ) b
  • p. 266, .16: ( ( c 1 ) ( b c ) ) 2 ( ( c 1 ) ( b c ) ) b
  • p. 266, .14, 19: ( ( δ 1 ( c ) 1 ) ( b δ 1 ( c ) ) ) 2 ( ( δ 1 ( c ) 1 ) ( b δ 1 ( c ) ) ) b
  • p. 266, .21: ( c 1 ) ( b c ) ) 2 ( ( c 1 ) ( b c ) ) b
  • p. 266, .24: ( ( δ v 2 ( b + 1 ) v 2 + 1 ( c ) 1 ) ( b δ v 2 ( b + 1 ) v 2 + 1 ( c ) ) ) 2
  •        ( ( δ v 2 ( b + 1 ) v 2 ( c ) + 1 ( c ) 1 ) ( b δ v 2 ( b + 1 ) v 2 ( c ) + 1 ( c ) ) ) b
  • p. 267, .2, 3: ( c 0 ) 2 ( c 0 ) b
  • p. 269, .11: n 7 and → n 7 ; n is odd and
  • p. 269, .12: c n 2 2 c n 1 2 2
  • p.280, .16: Delete the sentence “A.L. Ludington, A bound on Kaprekar
  •       constants, J. Reine Angew. Math. 310 ( 1979 ) 196–203.”

References

  1. Yamagami, A. On 2-adic Kaprekar constants and 2-digit Kaprekar distances. J. Number Theory 2018, 185, 257–280. [Google Scholar] [CrossRef]
  2. Kaprekar, D.R. Another solitaire game. Scr. Math. 1949, 15, 244–245. [Google Scholar]
  3. Kaprekar, D.R. An interesting property of the number 6174. Scr. Math. 1955, 21, 304. [Google Scholar]
  4. Young, A.L. A variation on the two-digit Kaprekar routine. Fibonacci Q. 1993, 31, 138–145. [Google Scholar]
  5. Eldridge, K.E.; Sagong, S. The determination of Kaprekar convergence and loop convergence of all three-digit numbers. Am. Math. Mon. 1988, 95, 105–112. [Google Scholar] [CrossRef]
  6. Hasse, H.; Prichett, G.D. The determination of all four-digit Kaprekar constants. J. Reine Angew. Math. 1978, 299/300, 113–124. [Google Scholar]
  7. Prichett, G.D. Terminating cycles for iterated difference values of five digit integers. J. Reine Angew. Math. 1978, 303/304, 379–388. [Google Scholar]
  8. Yamagami, A.; Matsui, Y. On 3-adic Kaprekar loops. JP J. Algebra Number Theory Appl. 2018, 40, 957–1028. [Google Scholar] [CrossRef]

Share and Cite

MDPI and ACS Style

Yamagami, A.; Matsui, Y. On Some Formulas for Kaprekar Constants. Symmetry 2019, 11, 885. https://doi.org/10.3390/sym11070885

AMA Style

Yamagami A, Matsui Y. On Some Formulas for Kaprekar Constants. Symmetry. 2019; 11(7):885. https://doi.org/10.3390/sym11070885

Chicago/Turabian Style

Yamagami, Atsushi, and Yūki Matsui. 2019. "On Some Formulas for Kaprekar Constants" Symmetry 11, no. 7: 885. https://doi.org/10.3390/sym11070885

APA Style

Yamagami, A., & Matsui, Y. (2019). On Some Formulas for Kaprekar Constants. Symmetry, 11(7), 885. https://doi.org/10.3390/sym11070885

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop