Summary
Today we continued our discussion of the order of an integer a modulo m. We discussed many arithmetic properties of order, including its relationship to
as well as how one can predict the order of a power of an integer based on the order of the integer itself. We also discussed primitive roots more deeply, counting the number of primitive roots when they exist.
More Properties of Order
Last class period we finished with the following
Lemma: For integers m and a with
, an integer n satisfies
if and only if
.
One of the important consequences of this result is the following
Corollary: For integers m and a with
, the order of a mod m is a divisor of
.
Proof: From the last lemma we know that whenever
then we have
. Since Euler's Theorem tells us that
, this gives us the desired result. 
Example: Calculating an order mod 11
Suppose that you want to calculate
. Normally we'd need to calculate
for all j in the range
, but according to the last corollary we don't need to hit all these j: it's enough to try out those j which are divisors of 10. So let's do it:

Hence we see that
. 
Example: Calculating an order mod 47
Let's use the same idea to calculate
. To do this, we need to know that the prime factorization of
is
. Then we only need to check the value of
when
.

Hence we see that
. Notice that this means that 2 is not a primitive root for this prime number. 
Primitive Roots as Generators
This is not the only useful corollary to come out of our lemma.
Corollary: For integers m and a with
, then
if and only if
.
Proof: Suppose first that
. This tells us that

for some integer k. Hence we get
(4)
On the other hand, suppose that we know
. Without loss of generality, assume additionally that
. Then we have

Now since
we know
, and hence we can "cancel" the appearance of
from both sides of the above equation to conclude

But our previous corollary says that this is only possible if
, which is what we wanted to prove. 
This lemma doesn't wind up being especially useful for computing the order of a given element, since typically one doesn't have access to two integers i and j so that
. It is, however, quite useful from a theoretical standpoint, as we're abou to see.
Lemma: Suppose that a is a primitive root mod m. Then the set
is a complete set of reduced residues mod m.
Recall that a residue r is said to be reduced mod m if
. Hence the content of the above corollary is that for any number n which has
there is some exponent
so that

Proof: Certainly since
we know that
for all
. Hence we only need to show that if i and j are integers between 1 and
, then
. To do this, suppose instead that we had distinct i and j between 1 and
such that
. According to the previous result, this would imply that
. But since
, this means
. This, however, is impossible because
. 
This theorem is really quite powerful, because it tells us that if we can get a hold of a primitive root mod m, then we can use this element to express all other reduced residues. This is especially useful in light of the following
Lemma: Suppose that m and a are integers satisfying
. Then we have
Proof: Let's write d in place of
. We'll also write
and
. Notice that when we do this, we have
. Now to compute the order of
, we need to find the smallest exponent which send this element to 1 mod m.
To start, notice that we have
(8)
This implies that we have
(9)
On the other hand, we know that
(10)
by definition. Hence we know that
Considering
and
, this means we get
Canceling the "d" on both sides then gives
, and since
we conclude that

Putting together Equations (9) and (11) gives
. 
Example: Computing orders modulo 11
We already know that 2 is a primitive roots mod 11, so let's use this fact to compute the order of other elements mod 11.
![]() |
![]() |
![]() |
![]() |
|---|---|---|---|
| 1 | 2 | 1 | 10 |
| 2 | 4 | 2 | 5 |
| 3 | 8 | 1 | 10 |
| 4 | ![]() |
2 | 5 |
| 5 | ![]() |
5 | 2 |
| 6 | ![]() |
2 | 5 |
| 7 | ![]() |
1 | 10 |
| 8 | ![]() |
2 | 5 |
| 9 | ![]() |
1 | 10 |
| 10 | ![]() |
10 | 1 |
Counting Primitive Roots
A nice consequence of the previous result is that we can count primitive roots — at least when they exist.
Corollary: Suppose that a primitive root exists mod m. Then there are
many primitive roots.
Proof: Let a be a primitive root. We already know that all reduced residues take the form
where
, and the previous result tells us that

Hence we see that
has order equal to
precisely when
. By the definition of the
function, there are precisely
many choices for k that satisfy this criterion. 
One of the questions that was asked in class was: why do we need to assume there is a primitive root to prove this theorem? The answer is that in order to write an equation like
(13)
we need to know that there really is an element a that has
. It is worth nothing that not all m have a primitive root.
Example: A Modulus without Primitive Root
Let
. Then the reduced residues are
. Notice that
, and that
Hence we have
![]() |
![]() |
|---|---|
| 1 | 1 |
| 5 | 2 |
| 7 | 2 |
| 9 | 2 |
You can see that in this case there is no primitive root. 






is a complete set of reduced residues mod m.














