Skip to main content
OlympiadHQ

Browse · MathNet

Print

Selected Problems from Open Contests

Estonia number theory

Problem

Prove that none of the integers that contain one , one , and all the rest zeros, can be expressed as a sum of two perfect squares or as a sum of two perfect cubes.
Solution
All the numbers described in the problem are divisible by (as their sum of digits is divisible by ). Note that all perfect squares leave the remainder or when divided by , and therefore, for the sum of the two perfect squares to be divisible by , they both have to be divisible by . Now, as the numbers are both divisible by , their squares are divisible by and thus the sum of the squares is divisible by . However, the number described in the problem is not divisible by , a contradiction.

Note that when a cube number is divided by , it will leave the remainder of either , or . Indeed, and . The numbers described in the problem give the remainder when divided by (as their sum of digits gives the remainder when divided by ), therefore we conclude that it is impossible to express them as sums of two cubes.

Techniques

Modular ArithmeticDivisibility / Factorization