It’s been a while since we’ve added to the Newbie at Number Theory series. Even so, the series is not complete yet! There are a few gaping holes between what we have covered thus far and what I would like to cover before completing the series. Today we will be covering one of the missing topics: the concept of primitive roots. Knowing what they are, that they exist in the first place, and how to use them will make primitive roots an indispensable tool for us as number theorists.

We will begin with some observations meant to motivate the discovery of what we will eventually call primitive roots. Our goal is to ultimately prove that every prime has primitive roots. With this aim, we will first discover and prove results concerning the order of an integer modulo a prime. Finally, we prove a key theorem known as Lagrange’s Theorem (not the one from group theory!). This will then culminate in a proof that primes have primitive roots.

Let’s get into it!

Remark: Just to lay all the cards down, this article will assume that you are familiar with induction, modular arithmetic, Fermat’s Little Theorem, Euler’s totient function, and lastly, Gauss’s Theorem. All of which can be found in the Newbie at Number Theory series.

Outline of Awesomeness

Motivation

Let’s begin with an observation.

What’s your favorite small prime (greater than 2 to make it interesting)? Seven! Great choice. Let’s consider powers of the integers modulo 7.

Where the 1’s in the rightmost column are blue to indicate that all integers relatively prime to 7 when raised to the 71=6th7-1=6^{th} power are congruent to 1, by Fermat’s Little theorem.

A potentially interesting observation is that there are two numbers, 33 and 5,5, that run through all the residue classes modulo 7.7. That is, 3k3^k is congruent to 1,2,3,4,5,61, 2, 3, 4, 5, 6 for some positive integer k.k. Likewise for 5k.5^k.

Table 1: Table of powers modulo 7.7. The green calls attention to the fact that the powers of 33 and 55 run through 1,2,3,4,5,1, 2, 3, 4, 5, and 6.6 . (Not in that order)

This is interesting because we know that we can get to all the integers: 1,2,3,4,5,6(mod7),1, 2, 3, 4, 5, 6 \;(\mathrm{mod}\;7), by starting with 11 and then simply adding 11 to itself:

1,(1+1),,(1+1+1+1+1+1)=1,2,,6.1\;,\; (1+1)\;, \;\cdots\;,\; (1+1+1+1+1+1)\;\; =\;\; 1,\;2,\;\cdots, 6.

In this manner, 11 generates all the residue classes modulo any number using addition. What our observation about the numbers 33 and 55 modulo 77 tells us is that they generate all the residue classes modulo 77 using exponentiation (i.e., multiplication). For instance, take 33 and raise it to multiple powers, and we get the same list of integers (after reducing modulo 77)

3,32,,361,2,,6(mod7).3,\; 3^2, \;\cdots, 3^6 \equiv 1,\;2,\;\cdots, 6 \;\;(\mathrm{mod}\;7).

Although not in order.

Question: Do numbers like this always exist for prime numbers?

Let’s test some other small primes:

So, for at least some of the smallest prime numbers, there do exist these special numbers that run through all the residue classes. We call these numbers primitive roots of the prime p.p.

There is a `better way’ to look at primitive roots, and it introduces the notion of the order of a number modulo p.p.

Primitive Roots and the Order of a Number

The Order of a Number

Definition (Order of an Integer): Let pp be a prime. An integer aa has order k,k, if kk is the smallest positive integer such that ak1(modp).a^k\equiv 1\;(\mathrm{mod}\;p).

We denote the order of aa modulo pp by ordp(a).\mathrm{ord}_p{(a)}. When the context is clear we will drop the subscript and write ord(a).\mathrm{ord}{(a)}.

Remark 1: Note, by Fermat’s Little Theorem, we know that 1ordp(a)p11\leq \mathrm{ord}_p{(a)}\leq p-1 when a≢0(modp).a\not\equiv 0 \;(\mathrm{mod}\;p).

Remark 2: We will be concerning ourselves here exclusively with numbers that are relatively prime to whatever prime we are working with. But to be complete, if p|a,p\mid a, then there is no power such that ak1(modp).a^k\equiv 1\;(\mathrm{mod}\;p). So, we say that aa has order infinity and write ordp(a)=.\mathrm{ord}_p{(a)} = \infty.

Challenge: Can you prove that ord(a)=1\mathrm{ord}{(a)}=1 if and only if a1(modp)?a\equiv 1\;(\mathrm{mod}\;p)?Give it a go!

Example (Working modulo 7): (Click in the Discovery)

Let’s continue to work modulo 7. Then, the order of the integers 1 through 6 are

ord7(1)=1ord7(2)=3ord7(3)=6ord7(4)=3ord7(5)=6ord7(6)=2.\mathrm{ord}_7{(1)}=1\\ \mathrm{ord}_7{(2)}=3 \\ \mathrm{ord}_7{(3)}=6 \\ \mathrm{ord}_7{(4)}=3 \\ \mathrm{ord}_7{(5)}=6 \\ \mathrm{ord}_7{(6)}=2.

\square

Example (Working modulo 11): (Click in the Discovery)

Let’s try to work modulo 11. Then, the order of the integers 1 through 10 are

ord11(1)=1ord11(2)=10ord11(3)=5ord11(4)=5ord11(5)=5ord11(6)=10ord11(7)=10ord11(8)=10ord11(9)=5ord11(10)=2.\mathrm{ord}_{11}{(1)}=1\\ \mathrm{ord}_{11}{(2)}= 10 \\ \mathrm{ord}_{11}{(3)}=5 \\ \mathrm{ord}_{11}{(4)}=5 \\ \mathrm{ord}_{11}{(5)}=5 \\ \mathrm{ord}_{11}{(6)}=10 \\ \mathrm{ord}_{11}{(7)}=10\\ \mathrm{ord}_{11}{(8)}=10 \\ \mathrm{ord}_{11}{(9)}=5 \\ \mathrm{ord}_{11}{(10)}=2.

\square

Order lets us succinctly define what a primitive root is.

Primitive Roots

Definition (Primitive Roots): Let pp be a prime. An integer a,a, with order p1p-1 modulo p,p, is called a primitive root of p.p.

For example, we would say 33 and 55 are primitive roots modulo 77 since ord7(3)=ord7(5)=6.\mathrm{ord}_7{(3)} = \mathrm{ord}_7{(5)} = 6.

Now it’s not a priori obvious why this definition jives with the property that we observed at the beginning. More precisely, we were working with the observation that 3k3^k runs through all the integers 1,2,3,4,5,6(mod7)1, 2, 3, 4, 5, 6 \;(\mathrm{mod}\;7) as we change k.k. Our definition only talks about one power of 3,3, i.e., k=ord7(3)=6.k=\mathrm{ord}_7{(3)} = 6. However, we will see in our next proposition that the two ideas are the same!

Proposition (Jiving Concepts): Let pp be a prime. Then, aa is a primitive root of pp if and only if a,a2,,ap1a, a^2,\cdots, a^{p-1} run through the residue classes modulo p.p. I.e., a,a2,,ap1a, a^2,\cdots, a^{p-1} run through the numbers 1,2,,p11,2,\cdots, p-1 but not necessarily in that order.

Example (Working modulo 7): (Click in the Discovery)

Recall that ord7(3)=6\mathrm{ord}_7{(3)} = 6 so that 33 is a primitive root of 7,7, by definition. Furthermore, by our observations at the beginning, we have

3,32,33,34,35,363,2,6,4,5,1(mod7)3,\, 3^2,\, 3^3,\, 3^4,\,3^5 ,\, 3^6 \equiv 3,\, 2 ,\,6,\,4,\,5,\,1 \;\; (\mathrm{mod}\;7)

So that the powers of 33 run through the integers 1,2,,61,2,\cdots, 6 modulo 7.7.

\square

Proof: (Click in the Discovery)

Let pp be a prime and note that a≢0(modp).a\not\equiv 0 \;(\mathrm{mod}\;p).

Forward: If aa is a primitive root of p,p, then a,a2,,ap1a, a^2,\cdots, a^{p-1} run through the residue classes modulo p.p.

Let aa be a primitive root of p.p. Consider the powers a,a2,,ap1.a, a^2,\cdots, a^{p-1}. We want to show they are all distinct modulo p.p. To do so, we proceed by contradiction. Suppose that anam(modp)a^n\equiv a^m \;(\mathrm{mod}\;p) for 1m<np1. 1\leq m < n \leq p-1. It follows, anm1(modp)a^{n-m}\equiv 1 \;(\mathrm{mod}\;p) where 1nmp2.1\leq n-m\leq p-2. However, this is a contradiction, since aa is a primitive root of p,p, and hence ordp(a)=p1>nm.\mathrm{ord}_p{(a)}=p-1>n-m.

Consequently, a,a2,,ap1a, a^2,\cdots, a^{p-1} runs through the residue classes modulo p.p.

Backward: If a,a2,,ap1a, a^2,\cdots, a^{p-1} run through the residue classes modulo p,p, then aa is a primitive root of p.p.

Let a,a2,,ap1a, a^2,\cdots, a^{p-1} run through all the residue classes modulo p.p. We will show that ordp(a)=p1.\mathrm{ord}_p{(a)}=p-1. Indeed, suppose that ordp(a)=d\mathrm{ord}_p{(a)}=d where 1dp2.1\leq d\leq p-2. If d=1,d=1, then a=1a=1 contradicting that a,a2,,ap1a, a^2,\cdots, a^{p-1} run trhough all the residuce classes modulo p.p. So, a>1.a> 1.

Since ad1(modp),a^{d}\equiv 1 \;(\mathrm{mod}\;p), it follows ad+11a=a(modp).a^{d+1}\equiv 1a =a \;(\mathrm{mod}\;p). That is, aad+1 (modp)a \equiv a^{d+1}\ \;(\mathrm{mod}\;p) for 2d+1p1.2\leq d+1\leq p-1. But, this contradicts that a,a2,,ap1a, a^2,\cdots, a^{p-1} run trhough all the residuce classes modulo p.p.

Thus, aa is a primitive root of p.p.

\square

Another Observation Regarding Orders

Question for you: What is the order of 55 and 1010 modulo 19?19? And, is either of them a primitive root of 19?19? (Click in the Discovery)

So the order of 55 is the smallest positive integer, k,k, such that 5k1(mod19).5^k\equiv 1\;(\mathrm{mod}\;19). Likewise, the order of 1010 is the smallest positive integer, k,k, such that 10k1(mod19).10^k\equiv 1\;(\mathrm{mod}\;19).

A `quick’ computation gives,

Thus, ord19(5)=9\mathrm{ord}_{19}{(5)}=9 and ord19(10)=18\mathrm{ord}_{19}{(10)}=18 which means that 1010 is a primitive root of 19.19.

\square

Did you notice anything about the previous examples given thus? Go take a look at what orders were present for different primes.


Well, when working modulo 7,7, the only possible orders were 1,2,3,1, 2, 3, and 6.6. And, when working modulo 11,11, the only orders were 1,2,5,1, 2, 5, and 10.10. Suspicious huh? It seems like the possible orders are the divisors of p1.p-1. In fact, this is better stated as: It seems like the possible orders are the divisors of ϕ(p)=p1.\phi(p) =p-1. Where ϕ(p)\phi(p) is Euler’s Totient function. In fact, this is indeed the case! We’ll see in just a moment why this happens, but it is worth remarking that this wonderful observation is just the tip of a deep result of group theory known as Lagrange’s theorem (group theory). Note: this is not Lagrange’s theorem we will see below; this is a different theorem from Lagrange that relates to group theory.

Proposition (Order Restrictions): Let pp be a prime. Then the order of any integer a≢0(modp)a\not\equiv 0 \;(\mathrm{mod}\;p) divides p1.p-1. That is, ord(a)|p1.\mathrm{ord}{(a)}\mid p-1.

Proof: (Click in the Discovery)

Let pp be a prime, a≢0(modp),a\not\equiv 0 \;(\mathrm{mod}\;p), and ord(a)=d.\mathrm{ord}{(a)}=d. Suppose that dp1.d\nmid p-1. That is, p1=dk+r p-1 = dk + r for integers kk and rr such that 1r<d.1 \leq r < d. (This is the division algorithm). By Fermat’s Little theorem, we know that ap11(modp).a^{p-1}\equiv 1\;(\mathrm{mod}\;p). Thus,

ap1=adk+r1(modp).a^{p-1}= a^{dk+r}\equiv1\;(\mathrm{mod}\;p).

With some exponent algebra and that ord(a)=d,\mathrm{ord}{(a)}=d,

adk+r=(ad)kar1karar1(modp).a^{dk+r}=(a^{d})^ka^r\equiv 1^ka^r \equiv a^r \equiv 1\;(\mathrm{mod}\;p).

Thus, ar1(modp)a^r \equiv 1\;(\mathrm{mod}\;p) contradicting that ord(a)=d.\mathrm{ord}{(a)}=d.

\square

We are now ready to show that every prime number has a primitive root!

All Primes Have Them!

The Proof- Step 1: Lagrange’s Theorem

This proof will end up with two theorems and two corollarys.

Theorem (Lagrange’s Theorem): Let pp be a prime and consider the polynomial

f(x)=anxn+an1xn1++a1x+a0f(x) = a_n x^n + a_{n-1}x^{n-1}+\cdots + a_1x +a_0

where a0,a1,,ana_0,a_1,\cdots,a_n \in \Z and an≢0(modp).a_n\not\equiv 0 \;\;(\mathrm{mod}\;p). That is, the degree of f(x)f(x) equals n.n. Then, the congruence

f(x)0(modp)()\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad f(x) \equiv 0 \;\; (\mathrm{mod}\;p) \qquad\qquad\qquad\qquad\qquad\qquad \qquad\qquad\qquad(\smiley)

has at most nn solutions modulo p.p. That is, nn incongruent solutions modulo p.p.

Remark: Note how this contrasts with the fundamental theorem of algebra, which states: Every polynomial of degree nn has exactly nn solutions, with multiplicity.

Proof: (Click in the Discovery)

Key Idea: What we want to do is use induction on the degree of the polynomial. To connect higher degree polynomials to lesser degree polynomials, we use polynomial long division (see here or here for a refresher on polynomial long division).

Beginning of Proof:

Base Case (n=1):(n=1): To begin, recall that we’ve shown that linear congruences such as axb(modp)ax\equiv b\;\;(\mathrm{mod}\;p) have one unique solution modulo pp when a≢0(modp),a\not\equiv 0 \;(\mathrm{mod}\;p), see here. Thus, all we need to do is use a=a1a=a_1 and b=a0.b=-a_0.

Inductive Hypothesis: Now let’s assume that Lagrange’s theorem holds for all polynomials whose degree is equal to k1.k-1.

Induction Step: Consider now the degree kk polynomial,

f(x)=akxk+ak1xk1++a1x+a0,ak≢0(modp).f(x) = a_k x^k + a_{k-1}x^{k-1}+\cdots + a_1x +a_0 \,, \qquad \qquad a_k\not\equiv 0 \;(\mathrm{mod}\;p) .

It’s possible that f(x)≢0(modp) f(x) \not\equiv 0 \;\;(\mathrm{mod}\;p) for all x,x, and thus ()(\smiley) has no solutions. In which case, we’re done! On the other hand, suppose f(x) f(x) has at least one solution, denoted x. x_*. Using polynomial division, we have

f(x)=(xx)g(x)+r(x),f(x) = (x-x_*) g(x) + r(x),

where g(x)g(x) is a degree k1 k-1 polynomial and r(x) r(x) \in \Z is an integer (this follows from the division algorithm for polynomials, see Remainder Theorem here). Let R=r(x).R= r(x) \in \Z. In particular, we have

f(x)=(xx)g(x)+R,wheredeg(g)=k1andR.f(x) = (x-x_*) g(x) + R,\;\;\mathrm{where}\; \deg{(g)}=k-1\;\mathrm{and}\; R\in \Z.

We claim that R0(modp). R\equiv 0\;(\mathrm{mod}\;p). Indeed, first observe f(x)=(xx)g(x)+R0(modp). f(x_*) = (x_*-x_*) g(x_*)+R \equiv 0 \;(\mathrm{mod}\;p). But, (xx)g(x)=0 (x_*-x_*) g(x_*)=0 so that R0(modp)R \equiv 0 \;(\mathrm{mod}\;p) as claimed.

In summary, thus far, we have

f(x)(xx)g(x)(modp),wheredeg(g)=k1.f(x) \equiv (x-x_*) g(x) \;\; (\mathrm{mod}\;p),\;\;\;\;\;\;\mathrm{where}\; \deg{(g)}=k-1.

Now, we are in a perfect situation to use our induction hypothesis! We conclude that g(x) g(x) has at most k1k-1 solutions to the congruence g(x)0(modp).g(x) \equiv 0 \;\; (\mathrm{mod}\;p). Hence, f(x)f(x) has at most kk solutions since any solution yy_* of g(x)0(modp),g(x) \equiv 0 \;\; (\mathrm{mod}\;p), will also satisfy f(x)0(modp),f(x) \equiv 0 \;\; (\mathrm{mod}\;p), by the following observation:

f(y)(yx)g(y)(yx)00(modp).f(y_*) \equiv (y_*-x_*) g(y_*) \equiv (y_*-x_*)\cdot 0 \equiv 0\;\; (\mathrm{mod}\;p).

Thus concluding the proof.

\square

Now we need a stronger result for a very specific polynomial.

Corollary: Let pp be a prime. If d|p1,d\mid p-1, then the congruence xd10(modp)x^d -1 \equiv 0 \;\;(\mathrm{mod}\;p) has exactly dd solutions.

Proof: (Click in the Discovery)

By Lagrange’s Theorem, we know that xd10(modp)x^d -1 \equiv 0 \;\;(\mathrm{mod}\;p) has at most dd solutions. Thus, all we must do is find all those solutions.

To begin, recall Fermat’s little theorem tells us that the congruence xp110(modp)x^{p-1} -1 \equiv 0 \;\;(\mathrm{mod}\;p) has exactly p1p-1 incongruent solutions. That is, 1,2,,p11,\,2,\,\cdots,p-1 are all solutions to xp110(modp).x^{p-1} -1 \equiv 0 \;\;(\mathrm{mod}\;p).

Let’s now factor xp11x^{p-1} -1 into a particularly useful form for us. Using that d|p1d\mid p-1 we have p1=dkp-1 = dk for some k.k\in \Z. Consequently, the following factorization falls out,

xp11=(xd1)(xd(k1)+xd(k2)++xd+1).x^{p-1} -1 = \Big(x^d-1\Big)\cdot \Big( x^{d(k-1)} + x^{d(k-2)}+\cdots + x^{d}+1 \Big).

Observe that the polynomial xd(k1)+xd(k2)++xd+1x^{d(k-1)} + x^{d(k-2)}+\cdots + x^{d}+1 has degree d(k1)=dkd=p1dd(k-1) = dk-d = p-1 -d and has integer coeffients. Thus, by Lagrange’s theorem, xd(k1)+xd(k2)++xd+10(modp)x^{d(k-1)} + x^{d(k-2)}+\cdots + x^{d}+1 \equiv 0 \;\;(\mathrm{mod}\;p) has at most p1dp-1-d solutions. Furthermore, recall that we already concluded that the polynomial xd10(modp)x^d -1 \equiv 0 \;\;(\mathrm{mod}\;p) has at most dd solutions.

Summary:xd(k1)+xd(k2)++xd+10(modp)hasatmostp1dsolutionsxd10(modp)hasatmostdsolutions\mathrm{Summary}: \qquad \begin{matrix} x^{d(k-1)} + x^{d(k-2)}+\cdots + x^{d}+1 \equiv 0 \;\;(\mathrm{mod}\;p) \;\;\mathrm{has} \;\mathrm{at}\;\mathrm{most}\;p-1-d \;\mathrm{solutions} \\\\ x^d -1 \equiv 0 \;\;(\mathrm{mod}\;p) \;\;\mathrm{has} \;\mathrm{at}\;\mathrm{most}\;d \;\mathrm{solutions} \end{matrix}

Now note that the only way that the congruence xp110(modp)x^{p-1} -1 \equiv 0 \;\;(\mathrm{mod}\;p) has exactly p1p-1 solutions is if xd10(modp)x^d -1 \equiv 0 \;\;(\mathrm{mod}\;p) has exactly dd solutions and xd(k1)+xd(k2)++xd+10(modp)x^{d(k-1)} + x^{d(k-2)}+\cdots + x^{d}+1 \equiv 0 \;\;(\mathrm{mod}\;p) has exactly p1dp-1-d soluions. Thus concluding our proof.

\square

We are almost there! Woot!

Step 2 – Main Theorem

Theorem (Number of Integers with order d|p1d\mid p-1): Let pp be a prime and suppose that d|p1.d\mid p-1. Then, there are exactly ϕ(d)\phi(d) incongruent integers modulo pp that have order d.d. Where ϕ(d)\phi(d) is Euler’s totient function.

Proof: (Click in the Discovery)

Let pp be a prime and suppose that d|p1.d\mid p-1. Furthermore, let N(d)N(d) represent the number of incongruent integers, modulo p,p, there are that have order d.d. Thus, we want to show N(d)=ϕ(d).N(d) = \phi(d).

To begin, by Proposition (Order Restrictions) above, every integer’s order must divide p1.p-1. Consequently,

p1=d|p1N(d).p-1 = \sum_{d\mid p-1} N(d).

Where the sum is done over the divisors of p1.p-1. See the footnote for an example.1

By Gauss’s Theorem (see the theorem here), we have

p1=d|p1N(d)=d|p1ϕ(d).p-1 = \sum_{d\mid p-1} N(d) =\sum_{d\mid p-1}\phi(d).

Recall that we are aiming to prove that N(d)=ϕ(d).N(d) = \phi(d). To show this, we prove N(d)ϕ(d)N(d) \leq \phi(d) for all d|p1.d\mid p-1. Which, by the equality above implies N(d)=ϕ(d).N(d) = \phi(d).

Let d|p1.d\mid p-1.

Case 1: N(d)=0.N(d) = 0. The result follows 0=N(d)ϕ(d).0=N(d) \leq \phi(d).

Case 2: N(d)>0.N(d)> 0. Then, there is some aa whose order is d.d. Consider the following integers a,a2,ad.a,\; a^2,\; \cdots a^{d}. They are all distinct by Proposition (Jiving Concepts), and they satify xd10(modp)x^d -1 \equiv 0 \;\;(\mathrm{mod}\;p) since (an)d1=(ad)n11n1=0(modp).(a^n)^d – 1 = (a^d)^n -1 \equiv 1^n-1 = 0 \; \;\;(\mathrm{mod}\;p) . Furthermore, by the above corollary, they must be the only solutions to xd10(modp).x^d -1 \equiv 0 \;\;(\mathrm{mod}\;p). Thus, any integer with order dd must lie in the list a,a2,ad.a,\; a^2,\; \cdots a^{d}. In particular, aka^{k} has order dd when gcd(k,d)=1.\gcd{(k,d)}=1. And there are ϕ(d)\phi(d) integers such that gcd(k,d)=1\gcd{(k,d)}=1 (by definition of Euler’s Totient function). Thus proving the claim.

\square

Thus, we are done! Since as a quick corollary, we have:

All Primes Have Them!

Corollary: All primes have primitive roots.

Proof: A primitive root of p1,p-1, by definition, has order p1.p-1. By the previous theorem, there are ϕ(p1)1\phi(p-1)\geq 1 primitive roots of p.p. Let’s test this on the cases were p=3,p=3, p=5,p=5, and p=7.p=7.

Example (Working modulo 3, 5, and 7): (Click in the Discovery)

Recall the following tables:

Furthermore, we have ϕ(31)=1,\phi(3-1)= 1, ϕ(51)=2,\phi(5-1)= 2,and ϕ(71)=2.\phi(7-1)= 2. As our theorem asserts, there is one primitive root for 3,3,and two primitive roots for 55 and 7.7.

\square

Remark: Note how wonderful this result is. Not only do we know that all primes have primitive roots, but we also know how many they have, namely ϕ(p1)\phi(p-1) of them! This is quite remarkable! Better yet, we also know how many numbers will have any order whatsoever! For instance, let’s take p=7.p=7. How many numbers have order 5?5? Well, zero since 5(71),5\nmid (7-1), recall Proposition (Order Restrictions). What about how many numbers have order equal to 2?2?The theorem tells us it should have ϕ(2)=1.\phi(2) = 1. And, checking the following list we made earlier,

ord7(1)=1ord7(2)=3ord7(3)=6ord7(4)=3ord7(5)=6ord7(6)=2.\mathrm{ord}_7{(1)}=1\\ \mathrm{ord}_7{(2)}=3 \\ \mathrm{ord}_7{(3)}=6 \\ \mathrm{ord}_7{(4)}=3 \\ \mathrm{ord}_7{(5)}=6 \\ \mathrm{ord}_7{(6)}=2.

We see that only 66 has order 2.2.

One more example: how many integers have order 55 modulo p=11?p=11? First off, 5|(111)5\mid (11-1) so we can use our main theorem which tells us there are ϕ(5)=4\phi(5) = 4 of them. Checking our list,

ord11(1)=1ord11(2)=10ord11(3)=5ord11(4)=5ord11(5)=5ord11(6)=10ord11(7)=10ord11(8)=10ord11(9)=5ord11(10)=2.\mathrm{ord}_{11}{(1)}=1\\ \mathrm{ord}_{11}{(2)}= 10 \\ \mathrm{ord}_{11}{(3)}=5 \\ \mathrm{ord}_{11}{(4)}=5 \\ \mathrm{ord}_{11}{(5)}=5 \\ \mathrm{ord}_{11}{(6)}=10 \\ \mathrm{ord}_{11}{(7)}=10\\ \mathrm{ord}_{11}{(8)}=10 \\ \mathrm{ord}_{11}{(9)}=5 \\ \mathrm{ord}_{11}{(10)}=2.

we see that the four integers 3,4,5,3,\;4,\;5, and 99 have order 5.5.

Question: Can we predict which numbers will have what orders?

Other than a few special cases, such as ordp(a)=1\mathrm{ord}_{p}{(a)}=1 if and only if a=1.a=1. Or, ordp(a)=2\mathrm{ord}_{p}{(a)}=2 if and only if a=p1,a=p-1, there is no sure-fire way to know what numbers have what order. For instance, we have no idea if 22 is a primitive root for an infinite number of primes or not! Maybe you will figure this out!

See you next time!

I hope that you had some fun today! I have always found primitive roots to be a very fun topic. Especially how useful they are when proving a result known as Euler’s Criterion for quadratic residues, which we will cover next time. Another utility of learning about primitive roots and orders is that this concept shows up again in group theory. When I later learned about generators and orders in group theory, I found that I had a much better intuition for them because of topics covered in this article. I hope this is true for you too!

As always, leave questions in the comments!

Be Kind. Be Curious. Be Compassionate. Be Creative.

And Have Fun!


Footnotes:

  1. Let p=7.p=7. Then, 1,1, 2,2, 3,3, and 66 are divisors of p1=6.p-1 = 6. Thus, we have
    d|6N(d)=N(1)+N(2)+N(3)+N(6).\sum_{d\mid 6} N(d) = N(1)+ N(2) +N(3)+ N(6) .
    Which, using what we’ve computed earlier, we see equals 6.6 . ↩︎

Leave a comment