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, and are pal but and are not pal. Prove that there exists a pal number with digits, .
Solution
Consider the number . The sum of the squares of its digits is . We can exchange any two fives by one three and one four, so the sum of the squares decreases by , until we run out of fives. So we can get any sum from and . So it suffices to show that there is an integer such that . Choose such that . Suppose . Then , and , which is false except for , or , that is, . But the statement of the problem itself gives an example with digits: .
Techniques
OtherIntegers