Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 3.1.21* (When is every quadratic nonresidue a primitive root?)
Exercise 3.1.21* (When is every quadratic nonresidue a primitive root?)
Let be an odd prime. Prove that every primitive root of is a quadratic nonresidue. Prove that every quadratic nonresidue is a primitive root if and only if is of the form , where is a non-negative integer, that is, if and only if or is a Fermat number.
Answers
( is a Fermat number, see wikipedia, or OEIS.)
Proof. Let be an odd prime, and a primitive root modulo . Assume for contradiction that is a quadratic residue, then . But then , thus the order of divides . But the order of is by definition. This contradiction shows that is not a quadratic residue.
(Alternatively, from Problem 11, we know that the quadratic nonresidues are .)
Consider a Fermat number , where , and let be a quadratic residue modulo . If is a chosen primitive root, then by Problem 11, for some odd positive integer . Let denote the order of an element modulo , if . Then . By Lemma 2.33,
and since is odd, , thus
so is a primitive root modulo . This shows that every quadratic nonresidue modulo is a primitive root.
Conversely, let be any odd prime, and suppose that every quadratic nonresidue is a primitive root. Let be the factorization of into prime factors, where , and .
Let be a fixed primitive root modulo . By problem 11, the quadratic non residues are the numbers where is odd. By our hypothesis, is also a primitive root, for every odd . This shows that for every odd ,
Thus , so
In particular, for , where is an odd prime, , thus . Therefore , and
By Problem 1.3.42, since is prime, is a power of , so that there is an integer such that
Every quadratic nonresidue is a primitive root if and only if for some integer . □