Problem:
Suppose that a positive integer has the property that are all palindromes. Prove that the decimal digits of are all zeros or ones.
, 2002
Solution
Solution:
First consider the ones digit of ; we claim that . Certainly cannot be even, for then would be divisible by . If is , , or , then has an even ones digit, while its most significant digit is . If is , then has an even ones digit but most significant digit . Thus is the only possibility. Moreover has the same number of digits as , for otherwise would have most significant digit but least significant digit , which is forbidden.
Now suppose has at least one digit that is neither a zero nor a one. Let be the leftmost (i.e., most significant) such digit, so that the left end of the decimal representation of looks like
for some and digits . When is multiplied by , there will be a carry out of the column containing . In particular, the digit from the left in will not be . But the right end of the decimal representation of is
because each is or , there are no carries out of the first columns, so the digit from the right in will be . Thus is not a palindrome, a contradiction. This completes the proof.