For each prime number , determine the number of residue classes modulo which can be represented as modulo , where and are arbitrary integers.
Solution
All residue classes.
With we first obtain all quadratic residue classes.
Since not all residue classes are quadratic residues, there is a quadratic residue class that is followed by a quadratic non-residue class, so that is not a quadratic residue and therefore of course .
However, since the product of two quadratic non-residue classes is a quadratic residue class, it follows for each quadratic non-residue class that and therefore all quadratic residue classes can also be represented as the sum of two squares.
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.