Maths Olympiad Prep

Library / /20 of 84

, 2002

Number theory Difficulty 5.0 AIME Prove it United States

Problem:
Suppose that a positive integer nn has the property that n,2n,3n,,9nn, 2 n, 3 n, \ldots, 9 n are all palindromes. Prove that the decimal digits of nn are all zeros or ones.

Solution

Solution:
First consider the ones digit aa of nn; we claim that a=1a=1. Certainly aa cannot be even, for then 5n5 n would be divisible by 1010. If aa is 55, 77, or 99, then 2n2 n has an even ones digit, while its most significant digit is 11. If aa is 33, then 4n4 n has an even ones digit but most significant digit 11. Thus a=1a=1 is the only possibility. Moreover 9n9 n has the same number of digits as nn, for otherwise 9n9 n would have most significant digit 11 but least significant digit 99, which is forbidden.

Now suppose nn has at least one digit that is neither a zero nor a one. Let bb be the leftmost (i.e., most significant) such digit, so that the left end of the decimal representation of nn looks like
a1arb \underline{a_{1}} \cdots \underline{a_{r}} \underline{b} \cdots
for some r1r \geq 1 and digits ai{0,1}a_{i} \in \{0,1\}. When nn is multiplied by 99, there will be a carry out of the column containing bb. In particular, the rthr^{\text{th}} digit from the left in 9n9 n will not be 9ar9 a_{r}. But the right end of the decimal representation of nn is
ara1; \cdots \underline{a_{r}} \cdots \underline{a_{1}} ;
because each aia_{i} is 00 or 11, there are no carries out of the first r1r-1 columns, so the rthr^{\text{th}} digit from the right in 9n9 n will be 9ar9 a_{r}. Thus 9n9 n is not a palindrome, a contradiction. This completes the proof.

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 reproduced verbatim; metadata (topic, difficulty) added by this project.