Theorem 2.3
For every prime

there is a primitive
root mod

. In other words, the
group

is a cyclic group
of order

.
Proof.
Write
as a product of distinct primes

.
By Proposition 1.2,
the polynomial
has exactly
roots, and the polynomial
has exactly
roots. Thus there is an
such
that
but
.
This
has order
.
For each
, choose such an
.
By repeated application of Lemma 2.2, we see that
has order

,
so

is a primitive root.
Remark 2.4
There are

primitive roots modulo

, since there are

ways to choose

. To see this, we check
that two distinct choices of sequence

define two
different primitive roots. Suppose that
with

,

of order

, for

.
Upon raising both sides of this equality to the power

, we see that

. Since

,
there exists

such that

.
It follows that
Upon canceling

from both sides, we see that

; by repeating the above argument, we see that

for all

. Thus, different choices of the

must lead to
different primitive roots; in other words, if the primitive roots are the
same, then the

were the same.
For example, there are
primitive roots
mod
:
? for(n=1,16,if(znorder(Mod(n,17))==16,print1(n," ")))
3 5 6 7 10 11 12 14
Example 2.5
In this example, we illustrate the proof of Theorem
2.3
when

. We have
The polynomial

has roots

and

has roots

, so we take

.
The polynomial

has roots

, so
set

. Finally,

. Note
that the successive powers of

are
so

really does have order

.
Example 2.6
The result is false if, e.g.,

is replaced by a big power of

.
The elements of

all have order dividing

, but

.