Maths Olympiad Prep

Library / /2 of 5

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 1111m ones×1111n ones\overbrace{111\ldots1}^{m \text{ ones}} \times \overbrace{111\ldots1}^{n \text{ ones}} is a palindrome.

Solution

Note that N=1111m ones×1111n onesN = \overbrace{111\ldots1}^{m \text{ ones}} \times \overbrace{111\ldots1}^{n \text{ ones}} has exactly m+n1m+n-1 digits, since 1111m ones×1111n ones<210m1×210n1=410m+n2\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,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.