Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 3.1.11 (There are equally many residues and non residues for an odd prime)
Exercise 3.1.11 (There are equally many residues and non residues for an odd prime)
Let be a primitive root of an odd prime . Prove that the quadratic residues modulo are congruent to and that the non residues are congruent to . Thus there are equally many residues and non residues for an odd prime.
Answers
Proof.
First proof.
Let be a primitive root of an odd prime . Then every integer such that satisfies for some (where ).
- If is even, then for some integer , and is a quadratic residue.
- If is odd, then . Assume for contradiction that is a quadratic residue. Then , where . If is an inverse of modulo , i.e. , then , where . But then , thus the order of is at most . Since is a generator, this is a contradiction. Therefore is a quadratic nonresidue.
This shows that the quadratic residues modulo are congruent to , and that the non residues are congruent to . Thus there are residues and non residues for an odd prime in . □
Second proof. (without primitive element)
Let the field with elements, so that is an abelian group. Consider the map
Then is a group homomorphism. By the first isomorphism theorem,
Moreover, since is a field,
therefore
This shows that
Here is the subgroup of squares in . We have proved that there are as many squares as non squares in . In other words, there are equally many residues and non residues for an odd prime in .
Third proof (See Ireland , Rosen)
The squares in are the roots of the polynomial , which has at most roots, because is a field. Since has roots (all the elements of ), and
it is impossible that has less than roots, otherwise would have less that roots, which is false. Therefore has roots, so contains exactly squares. There are as many squares as non squares in .