Homepage › Solution manuals › Kenneth Ireland › A Classical Introduction to Modern Number Theory › Exercise 5.29
Exercise 5.29
Let be the number of pairs in the set such that and are both quadratic residues modulo . Let be the number of pairs in the set such that is a quadratic nonresidue and is a quadratic residue. Similarly, define and . Determine the sums , , , and .
Answers
Proof. Let . Then .
Write the set of integers such that and are both a quadratic residues, and its cardinality, and similar definitions for .
As (disjoint union),
The union is the set of such that is a quadratic residue. Its cardinality is the number of quadratic residues in , that is the number of quadratic residues in , minus , where if is a residue, otherwise. Since , we obtain , and the total number of quadratic residues is , thus
Similarly, is the number of quadratic nonresidues in , minus , where if is a quadratic nonresidue, otherwise : , so
(the sum of these two results is indeed ).
Since is a residue, is the number of residues in , minus :
is the number of nonresidues in , equal to the number of residues in :
□