Browse · MathNet
PrintSelection tests for the Balkan Mathematical Olympiad 2013
Saudi Arabia 2013 number theory
Problem
We call a positive integer good if it doesn't have a zero digit and the sum of the squares of its digits is a perfect square. For example, and are good and and are not good. Prove that there exists a -digit good number for every positive integer .
Solution
We prove this by induction on .
For , the numbers , , and are good numbers and all their odd digits are less than .
Assume that is an -digit good number and all its odd digits are less than .
If has an even digit , remove this digit and replace it by digits to obtain an -digit number. The sum of squares of the digits of this new number is equal to the sum of squares of the digits of and is therefore a perfect square. Notice that all the odd digits of this new -digit good number are less than . For example, replace the in the -digit good number by to obtain the -digit good number .
If has no even digit, all its digits are less than . We can multiply all its digits by to obtain a new -digit good number. Choose one of the new even digits , remove it and replace it by four digits to obtain a new -digit good number and its odd digits are less than . For example, for the -digit good number multiply all its digits by to obtain the -digit good number and then replace one of the by to obtain the -digit good number .
This proves by induction that for any positive integer , there exists an -digit good number.
For , the numbers , , and are good numbers and all their odd digits are less than .
Assume that is an -digit good number and all its odd digits are less than .
If has an even digit , remove this digit and replace it by digits to obtain an -digit number. The sum of squares of the digits of this new number is equal to the sum of squares of the digits of and is therefore a perfect square. Notice that all the odd digits of this new -digit good number are less than . For example, replace the in the -digit good number by to obtain the -digit good number .
If has no even digit, all its digits are less than . We can multiply all its digits by to obtain a new -digit good number. Choose one of the new even digits , remove it and replace it by four digits to obtain a new -digit good number and its odd digits are less than . For example, for the -digit good number multiply all its digits by to obtain the -digit good number and then replace one of the by to obtain the -digit good number .
This proves by induction that for any positive integer , there exists an -digit good number.
Techniques
OtherInduction / smoothingIntegers