Browse · MathNet
PrintAustrian Mathematical Olympiad
Austria number theory
Problem
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.
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.
Final answer
p
Techniques
Quadratic residuesInverses mod n