Maths Olympiad Prep

Library / Brazil competition problems /3 of 6

Brazil competition problems

Number theory Difficulty 5.6 AIME, harder Prove it Brazil

A natural number is a palindrome when one obtains the same number when writing its digits in reverse order. For example, 481184481184, 131131 and 22 are palindromes.
Determine all pairs (m,n)(m, n) of positive integers such that 111…1⏞m ones×111…1⏞n ones\overbrace{111\ldots1}^{m \text{ ones}} \times \overbrace{111\ldots1}^{n \text{ ones}} is a palindrome.

Solution

Note that N=111…1⏞m ones×111…1⏞n onesN = \overbrace{111\ldots1}^{m \text{ ones}} \times \overbrace{111\ldots1}^{n \text{ ones}} has exactly m+n−1m+n-1 digits, since 111…1⏞m ones×111…1⏞n ones<2⋅10m−1×2⋅10n−1=4⋅10m+n−2\overbrace{111\ldots1}^{m \text{ ones}} \times \overbrace{111\ldots1}^{n \text{ ones}} < 2 \cdot 10^{m-1} \times 2 \cdot 10^{n-1} = 4 \cdot 10^{m+n-2}. If m,n>9m, n > 9, then considering the tenth leftmost digit, there would be a carry, thus the number consisting of the first nine digits of NN is bigger than the number formed by the last nine digits of NN, in reversed order. Then if mm and nn are bigger than 99 the number NN is not a palindrome.

If one of the numbers mm, nn does not exceed 99 then there won't be a carry and thus the number NN is palindrome.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.