Infinite Sets of Solutions and Almost Solutions of the Equation NM= reversal(NM)

Abstract

Motivated by their intrinsic interest and by applications to the study of numeric palindromes and other sequences of integers, we discover infinite sets of solutions and almost solutions of the equation N ⋅ M=reversal (N  M). Most of our results are valid in a general numeration base.

Share and Cite:

Niţică, V. and Junius, P. (2019) Infinite Sets of Solutions and Almost Solutions of the Equation NM= reversal(NM). Open Journal of Discrete Mathematics, 9, 63-67. doi: 10.4236/ojdm.2019.93007.

1. Introduction

In this paper, motivated by their intrinsic interest and by applications to the study of numeric palindromes and other sequences of integers, we discover infinite sets of solutions and almost solutions of the equation

N M = reversal ( N M ) . (1)

An almost solution of (1) is a pair of integers ( M , N ) for which the equality (1) holds up to a string of digits for which we understand the position and all entries. Most of our results are valid in a general numeration base. Recently one of us showed in Nitica [1] that, in any numeration base b, for any integer N not divisible by b, the equation (1) has an infinity of solutions ( N , M ) . Nevertheless, as one can see from [3] , finding explicit values for M can be difficult from a computational point of view, even for small values of N, e.g. N = 81 . We show here explicit infinite families of solutions of (1) that are valid in all numeration bases.

Another application of our results may appear in the study of the classes of multiplicative and additive Ramanujan-Hardy numbers, recently introduced in Nitica [2] . The first class consists of all integers N for which there exists an integer M such that s b ( N ) , the sum of base b-digits of N, times M, multiplied by the reversal of the product, is equal to N. The second class consists of all integers N for which there exists an integer M such that s b ( N ) , times M, added to the reversal of the product, is equal to N. As showed in Nitica [1] [2] , the solutions of Equation (1) for which we can compute the sum of digits of s b ( N ) M + reversal ( s b ( N ) M ) or of s b ( N ) M × reversal ( s b ( N ) M ) , can be used to find infinite sets of above numbers.

2. Statements of the Main Results

Let b 2 be a numeration base. If x is a string of digits, let ( x ) k denote the base 10 integer obtained by repeating x k-times. Let [ x ] b denote the value of the string x in base b.

Theorem 1. a) Let b 3 a numeration base. Let k n 1 , k , n be integers. Then the product

( b 2 n 1 + b n 1 ) ( b k 1 ) (2)

is a palindrome.

b) Let b = 2 . Then the product (2) is a palindrome if k 2 n 1 and almost a palindrome if k < 2 n 1 .

The proof of Theorem 1 is done in Section 3.

The computations from Table 1 illutrate the result from Theorem 1 if b = 10 , n = 5 and k { 5,6,7,8,9,10,11,12 } .

Theorem 2. a) Let b 3 a numeration base. Let k n 4 , k , n be integers. Then the product

( b n + b n 1 1 ) ( b k 1 ) (3)

is almost a palindrome.

The proof of Theorem 2 is done in Section 4.

The computations from Table 2 illustrate the result from Theorem 2 if b = 10 , n = 5 and k { 5,6,7,8,9,10,11,12 } .

Table 1. The product (2) if b = 10 , n = 5 and k { 5,6,7,8,9,10,11,12 } .

Table 2. The product (3) if b = 10 , n = 5 and k { 5,6,7,8,9,10,11,12 } .

3. Proof of Theorem 1

Proof. We first assume that b 3 and distinguish three cases:

Case 1: k > 2 n 1 We show that the product (2) is equal to the palindrom

[ 1 ( 0 ) n 1 ( b 1 ) n 1 ( b 2 ) ( b 1 ) k 2 n ( b 2 ) ( b 1 ) n 1 ( 0 ) n 1 1 ] b .

[ 1 ( 0 ) n 1 ( b 1 ) n 1 ( b 2 ) ( b 1 ) k 2 n ( b 2 ) ( b 1 ) n 1 ( 0 ) n 1 1 ] b = b 2 n + k 1 + ( i = k + 1 n + k 1 ( b 1 ) b i ) + ( b 2 ) b k + ( i = 2 n k 1 ( b 1 ) b i ) + ( b 2 ) b 2 n 1 + ( i = n 2 n 2 ( b 1 ) b i ) + 1

= b 2 n + k 1 + ( b n + k b k + 1 ) + ( b 2 ) b k + ( b k b 2 n ) + ( b 2 ) b 2 n 1 + ( b 2 n 1 b n ) + 1 = b 2 n + k 1 + b n + k b k b 2 n 1 b n + 1 = ( b 2 n 1 + b n 1 ) ( b k 1 ) .

Case 2: k = 2 n 1 We will use repeatedly that k n = n 1 . We show that the product (2) is equal to the palindrome

[ 1 ( 0 ) n 1 ( b 1 ) n 1 ( b 3 ) ( b 1 ) n 1 ( 0 ) n 1 1 ] b .

[ 1 ( 0 ) n 1 ( b 1 ) n 1 ( b 3 ) ( b 1 ) n 1 ( 0 ) n 1 1 ] b = b 4 n 2 + ( i = 2 n 3 n 2 ( b 1 ) b i ) + ( b 3 ) b 2 n 1 + ( i = n 2 n 2 ( b 1 ) b i ) + 1 = b 4 n 2 + ( b k + n b 2 n ) + ( b 3 ) b 2 n 1 + ( b 2 n 1 b n ) + 1 = b 2 k + b n + k b k b 2 n 1 b n + 1 = ( b 2 n 1 + b n 1 ) ( b k 1 ) .

Case 3: k < 2 n 1 We show that the product (2) is equal to the palindrom

[ 1 ( 0 ) n 1 ( b 1 ) k n ( b 2 ) ( b 1 ) 2 n k 2 ( b 2 ) ( b 1 ) k n ( 0 ) n 1 1 ] b .

[ 1 ( 0 ) n 1 ( b 1 ) k n ( b 2 ) ( b 1 ) 2 n k 2 ( b 2 ) ( b 1 ) k n ( 0 ) n 1 1 ] b = b 2 n + k 1 + ( i = 2 n n + k 1 ( b 1 ) b i ) + ( b 2 ) b 2 n 1 + ( i = k + 1 2 n 2 ( b 1 ) b i ) + ( b 2 ) b k + ( i = n k 1 ( b 1 ) b i ) + 1

= b 2 n + k 1 + ( b k + n b 2 n ) + ( b 2 ) b 2 n 1 + ( b 2 n 1 b k + 1 ) + ( b 2 ) b k + ( b n b k ) + 1 = b 2 n + k 1 + b n + k b 2 n 1 b k b n + 1 = ( b 2 n 1 + b n 1 ) ( b k 1 ) .

Assume now that b = 2 the Cases 1 and 3 follow verbatim. In Case 2 the product 2 becomes the almost palindrome

[ 1 ( 0 ) n 1 ( 1 ) n 2 ( 01 ) ( 1 ) n 1 ( 0 ) n 1 1 ] 2 .

4. Proof of Theorem 2

Proof. We first assume that b 3 and distinguish three cases:

Case 1: k > n + 1 We show that the product (3) is equal to the almost palindrome

[ 10 ( ( b 1 ) n 3 ) ( b 1 ) ( b 2 ) ( b 1 ) k n 1 ( b 2 ) ( b 1 ) ( 0 ) n 3 01 ] b . (4)

[ 10 ( ( b 1 ) n 3 ) ( b 1 ) ( b 2 ) ( b 1 ) k n 1 ( b 2 ) ( b 1 ) ( 0 ) n 3 01 ] b = b n + k + ( i = k + 2 k + n 2 ( b 1 ) b i ) + ( b 1 ) b k + 1 + ( b 2 ) b k + ( i = n + 1 k 1 ( b 1 ) b i ) + ( b 2 ) b n + ( b 1 ) b n 1 + 1

= b n + k + ( b n + k 1 b k + 2 ) + b k + 2 b k + 1 + b k + 1 2 b k + ( b k b n + 1 ) + b n + 1 2 b n + b n b n 1 + 1 = b n + k + b n + k 1 b k b n 1 b n + 1 = ( b n + b n 1 1 ) ( b k 1 ) . (5)

Case 2: k = n + 1 We show that the product (3) is equal to the almost palindrome:

10 ( b 1 ) n 3 ( b 1 ) ( b 2 ) ( b 2 ) ( b 1 ) ( 0 ) n 2 1.

10 ( b 1 ) n 3 ( b 1 ) ( b 2 ) ( b 2 ) ( b 1 ) ( 0 ) n 2 1 = b 2 n + 1 + ( i = n + 3 2 n 1 ( b 1 ) b i ) + ( b 1 ) b n + 2 + ( b 2 ) b n + 1 + ( b 2 ) b n + ( b 1 ) b n 1 + 1 = b 2 n + 1 + ( ( b n 3 1 ) b n + 3 ) + ( b 1 ) b n + 2 + ( b 2 ) b n + 1 + ( b 2 ) b n + ( b 1 ) b n 1 + 1 = b 2 n + 1 b n + b 2 n b n 1 b n + 1 + 1 = ( b n + b n 1 1 ) ( b n + 1 1 ) .

Case 3: k = n We show that the product (3) is equal to the almost palindrome:

10 ( b 1 ) n 3 ( b 1 ) ( b 3 ) ( b 1 ) ( 0 ) n 2 1.

10 ( b 1 ) n 3 ( b 1 ) ( b 3 ) ( b 1 ) ( 0 ) n 2 1 = b 2 n + ( i = n + 2 2 n 2 ( b 1 ) b i ) + ( b 1 ) b n + 1 + ( b 3 ) b n + ( b 1 ) b n 1 + 1 = b 2 n + ( b n + 2 ( b n 3 1 ) ) + ( b 1 ) b n + 1 + ( b 3 ) b n + ( b 1 ) b n 1 + 1 = b 2 n + b 2 n 1 2 b n b n 1 + 1 = ( b n + b n 1 1 ) ( b n 1 ) .

Assume now that b = 3 . The Cases 1, 2 and 3 follow verbatim. If b = 2 the Cases 1 and 2 follow verbatim. In Case 3 the product 3 becomes the almost palindrome

10 ( 1 ) n 3 0110 n 3 01.

5. Conclusion

Motivated by possible applications to the study of palindromes and other sequences of integers we find integer solutions and almost solutions of the equation N M = reversal ( N M ) . The results are valid in a genral numeration base. Our results support the following conjecture: for integers l , k , n , such that 1 n k ,1 l n 1 , the product ( 10 2 n l + 10 n 1 ) ( 10 k 1 ) is a palindrome or almost a palindrome. Theorem 1 covers the case l = 1 and Theorem 2 covers the case l = n 1 .

Conflicts of Interest

The authors declare no conflicts of interest regarding the publication of this paper

References

[1] Niţică, V. (2019) Infinite Sets of B-Additive and B-Multiplicative Ramanujan-Hardy Numbers. Journal of Integer Sequences, 22, Article 9.4.3.
[2] Niţică, V. (2018) About Some Relatives of the Taxicab Number. Journal of Integer Sequences, 21, Article 18.9.4.
[3] World of Numbers.
http://www.worldofnumbers.com/em36.htm

Copyright © 2024 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.