Proof Set 10
Proof Set 10
Problem 1
Suppose a is relatively prime to n. The sequence of powers a1 , a2 , a3 , . . . mod n is
periodic with period r = ordn (a).
(b) What is the relationship between the following ordered lists of residues?
Solution.
(a) Since (ar−1 )(a) ≡ ar ≡ 1 mod n, we have ar−1 to be the inverse of a. Therefore,
ar−1 ≡ a mod n .
as ≡ q mod n
1≡q mod n
Therefore as ≡ 1 mod n, implying r | s. By the same logic, let
ar ≡ k mod n
1≡k mod n
So we have ar ≡ 1 mod n implying s | r. Therefore, r | s and s | r imply that
s = r, therefore, ordn a = ordn a .
1
Sai Nallani — 6 April 2024 Proof Set 10
Problem 2
Find, with proof, the least positive residue of the product of all primitive roots
mod p, where p is a prime bigger than 3.
Remark. To define the pairing a bit more rigorously, let Q = {q1 , . . . , qk/2 } ⊂ S where k
is the number of primitive roots and Q has the property such that a, b ∈ Q =⇒ ab = ̸ 1
mod p. Then since g ∈ S =⇒ g ∈ S, we have {q : q ∈ Q} ∪ Q = S and {q : q ∈ Q} ∩ Q = ∅
Qk Qk/2
implies i=1 gi = i=1 qi qi = 1.
Problem 3
Suppose g is a primitive root mod p, where p is an odd prime.
Solution.
(a) We notice that (g (p−1)/2 ) ≡ g p−1 ≡ 1 mod p. Therefore, g (p−1)/2 ≡ ±1 mod p. If
it is 1 mod p, it is a contradiction as ordp (g) ≤ (p − 1)/2 which is a contradiction
as g is a primitive root. Therefore, g (p−1)/2 ≡ −1 mod p .
(b) Let s = ordp (−g) for a prime p ≡ 1 mod 4. We see that (−g)p−1 ≡ (−1)p−1 g p−1 ≡
1 mod p since p − 1 is even; therefore, s ≤ p − 1. Assume 0 < s < p − 1. Then if s
is odd, we have
(−g)s ≡ −g s ≡ 1 mod p
−1 ≡ g s mod p
s = (p − 1)/2
by part (a). But this contradicts s being odd as s = (p − 1)/2 = (4k)/2 = 2k is
even. If s is even, then (−g)s ≡ g s ≡ 1 mod p implies p − 1 = ordp g ≤ s < p − 1,
which is also a contradiction. Therefore our assumption that 0 < s < p − 1 must be
wrong and s = p − 1 as it is the least positive integer such that (−g)s ≡ 1 mod p.
Therefore, ordp (−g) = p − 1 implies −g is also a primitive root mod p.
■
2
Sai Nallani — 6 April 2024 Proof Set 10
Problem 4
Show that r is a primitive root modulo the odd prime p if and only if gcd(r, p) = 1
and for all prime divisors q of p − 1,
p−1
r q ̸≡ 1 mod p
Problem 5
Suppose a and b are relatively prime to n, and ordn (a) and ordn (b) are relatively
prime to each other. Prove ordn (ab) = ordn (a) · ordn (b).
Let m = ordn (a), n = ordn (b), and c = ordn (ab). Then we have
(ab)c ≡ 1 mod n
c
Multiplying by b , we get
c
ac ≡ b mod n
m
Since ordn (ac ) = , we have that ordn (ac ) | m after rearranging. Furthermore,
gcd(m, c)
c
since ac ≡ b mod n we have:
c ordn (b) n
ordn (ac ) = ordn (b ) = =
gcd(ordn (b), c) gcd(n, c)
We have ordn (ac ) | n after rearranging as well. Therefore, since ordn (ac ) | m, n and
c
gcd(m, n) = 1, we have ordn (ac ) = ord(b ) = ord(bc ) = 1. If the order is 1, we must
have ac = bc = 1. Therefore, m, n | c. The smallest integer c such that both m
and n both divide c must be the lcm of both of them. Therefore, lcm(m, n) = c =
ordn (a) · ordn (b) = ordn (ab) because m and n are both relatively prime. ■