Professional Documents
Culture Documents
Aharshi Roy
Updated 6 October 2023
§1 Warm-Up
I suppose many of you already know these two results but still would not hurt to cite
them atleast.
Proof. Let a1 , a2 , . . . , aφ(n) be all the distinct relatively prime residues modulo n.
Then see that it is not hard to see that a · a1 , a · a2 , . . . , a · aϕ(n) when written in the
reduced form modulo n is exactly same as the set we mentioned above. Hence we get
§2 Orders
Definition 2.1. The order of a (mod p) (written as ordp (a) is defined to be the smallest
positive integer m such that am ≡ 1 (mod p).
The existence of orders can be proved by Fermat’s Little Theorem. Now we prove the
most important fact about orders.
1
Orders and Primitive Roots Updated 6 October 2023
Proposition 2.3
Let p > 2 be a prime then p ≡ 1 (mod 4) if and only if p | n2 + 1 for some n ∈ Z.
For the converse; if x2 ≡ −1 (mod p) → x4 ≡ 1 (mod p) and so ordp (x) | gcd(4, p − 1).
But if ordp (x) = 1 or 2 then x2 ≡ 1 (mod p) which is not the case (notice that p > 2)
and hence ordp (x) = 4 and so 4 | p − 1. ■
§3 Primitive Roots
Theorem 3.1
Let p be a prime. Then there always exists an integer g such that ordp (g) = p − 1.
And so g is called a primitive root of p.
Proof. We are not actually going to prove the theorem here since it uses cyclotomic
polynomials. But for experts, as a hint you can consider Φp (X) | X p − 1 and try to see
what happens to the factors modulo p. ■
One of the key take-back of this theorem is that given a primitive root g, each nonzero
residue modulo p can be uniquely expressed by g e for e =, . . . , p − 1.
One can actually extend primitive roots to natural numbers as well where we say
a is a primitive root modulo n iff ordn (a) = φ(n).
Proof. We will not go into the details of the proof again. But again for the experts,
the forward direction is not that bad as you have to carefully use Chinese Remainder
Theorem but the backward direction can be tricky but still not too bad. ■
§4 Problems
Some of these problems might use more than just orders.
2
Orders and Primitive Roots Updated 6 October 2023
p | q r + 1, q | rp + 1, r | pq + 1.