Skip to main content
OlympiadHQ

Browse · MathNet

Print

Austrian Mathematical Olympiad

Austria number theory

Problem

Suppose that is an odd prime number and a set of integer squares. Investigate if one can choose elements of this set so that the arithmetic mean of these elements is an integer. (Walther Janous)
Solution
The idea is to choose from the square numbers numbers that are in the same residue class modulo . Obviously, the sum of these numbers is then divisible by and thus the arithmetic mean is an integer. It is known that the square numbers do not run through all residue classes modulo , but only through ones. (On the one hand, this is the residue class if one squares a number divisible by . Because of , the squares of numbers that are not divided by run through a maximum of half of the nonzero residue classes. On the other hand, gives the relation and so or . Therefore, the squares of numbers , which are not divisible by , run through exactly half of the residue classes different from zero.) We now divide the square numbers into the residue classes that correspond to square numbers. Because of the pigeon hole principle, there is therefore a residue class, that contains at least numbers. Because of and it follows that what was to be shown.

Techniques

Quadratic residuesPigeonhole principle