Number theoryDifficulty 5.7AIME, harderProve itBrazil
We call a number pal if it doesn't have a zero digit and the sum of the squares of the digits is a perfect square. For example, 2115522 is pal (because 22+12+12+52+52+22+22=82) but 304 and 12 are not pal.
a. What is the greatest two-digit pal number?
b. Does there exist a 2011-digit pal number?
Solution
a. First notice that 86 is pal. Then it's not hard to check by hand that every number from 87 to 99 is not pal.
b. The answer is yes. First consider the 2011-digit number 11…1. The sum of its digits is 2011. The smallest perfect square greater than 2011 is 452=2025. Since 2025−2011=14 and 14=2⋅(22−12)+(32−12), we can exchange two 1s by two 2s and one 1 by one 3. So we obtain the pal number 11…123.
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.