Browse · MathNet
PrintBrazilian Math Olympiad
Brazil number theory
Problem
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, is pal (because ) but and are not pal.
a. What is the greatest two-digit pal number?
b. Does there exist a -digit pal number?
a. What is the greatest two-digit pal number?
b. Does there exist a -digit pal number?
Solution
a. First notice that is pal. Then it's not hard to check by hand that every number from to is not pal.
b. The answer is yes. First consider the -digit number . The sum of its digits is . The smallest perfect square greater than is . Since and , we can exchange two s by two s and one by one . So we obtain the pal number .
b. The answer is yes. First consider the -digit number . The sum of its digits is . The smallest perfect square greater than is . Since and , we can exchange two s by two s and one by one . So we obtain the pal number .
Final answer
a) 86; b) Yes
Techniques
OtherIntegers