Dr Chi Mak
S1 2018
Proof.
Suppose H is a non-empty subset closed under the group operation and
inverse. Since associativity holds in G it holds in H, and so all we need to
check is that the identity e of G is in H. But choosing any element h of
H, we know h−1 ∈ H and hence h ∗ h−1 = e ∈ H, so H is a group.
The only if direction is trivial.
Chi Mak (UNSW) 4.1 Subgroups and Cyclic Groups S1 2018 2 / 58
Example 4.1.
Prove that {1, 4, 11, 14} is a subgroup of U15 .
Solution.
× 1 4 11 14
1 1 4 11 14
Under the multiplication of U15 , 4 4 1 14 11
11 11 14 1 4
14 14 11 4 1
In the multiplication table, the product of any two elements is still in the
set. The set is closed under multiplication.
There is a 1 in each row, and hence the set is closed under inverse.
Hence, by the Subgroup Lemma, {1, 4, 11, 14} is a subgroup of U15 .
Definition 4.3.
The order of a finite group G is the number of elements in G , |G |.
The order of an element g in a group G is the smallest positive integer n
(if any) such that g n = e. We write o(g ) for the order of the element g .
Chi Mak (UNSW) 4.1 Subgroups and Cyclic Groups S1 2018 4 / 58
Lemma 4.2.
If g ∈ G has order n, then the elements e, g , g 2 , . . . , g n−1 are all distinct.
Proof.
Exercise: Q. 97(a).
Example 4.3.
1 Zm is a cyclic group of order m generated by 1.
2 Z is an infinite cyclic group generated by 1.
3 Let a > 0 and a 6= 1, hai is an infinite cyclic subgroup of R+ under
multiplication.
Chi Mak (UNSW) 4.1 Subgroups and Cyclic Groups S1 2018 5 / 58
Example 4.4.
Find the orders of the elements in U15 and prove that U15 is not cyclic.
Solution.
U15 = {1, 2, 4, 7, 8, 11, 13, 14}.
Since 11 = 1, so o(1) = 1.
21 = 2, 22 = 4, 23 = 8, 24 = 1. Hence o(2) = 4 and o(4) = 2.
71 = 7, 72 = 4, 73 = 4 × 7 = 13, 74 = 1. Hence o(7) = 4.
Similarly, we obtain, o(8) = 4, o(11) = 2, o(13) = 4, o(14) = 2.
Hence, none of the elements has an order 8. Therefore U15 is not cyclic.
Theorem 4.3.
Two finite cyclic groups are isomorphic if and only if they have the same
order.
Proof.
The only if part is true because isomorphisms are bijections. The if part is
left as an exercise, Q. 97 (c).
Chi Mak (UNSW) 4.1 Subgroups and Cyclic Groups S1 2018 6 / 58
Hence, it does make sense to define a “generic” cyclic group of order n
to be the set of n elements
Cn = {1, a, a2 , . . . , an−1 } = {ak | k = 0, 1, 2, . . . , n − 1},
where an = 1.
The group operation is defined ( by adding exponents modulo n: that is,
as+t if s + t < n
as at = s+t−n
a if s + t > n.
Hence, all cyclic groups are commutative.
Theorem 4.4.
Any group of prime order p is isomorphic to the cyclic group Cp .
Proof.
By the Subgroup Lemma, all we need to prove is that H is closed under
inverse. Let h ∈ H and consider the set {h, h2 , h3 , . . . } ⊂ H. Since the
set is finite and closed under the operation, it is the subgroup hhi. Since
o(h) is finite, we can write n = o(h). Now, hn = hhn−1 = e. Therefore,
hn−1 is the inverse of h and it is in H. The result then follows.
Lagrange’s Theorem
You may have noticed that in every example we have seen of a finite group
G with a subgroup H, the order of H is a factor of the order of G . This is
generally true.
Theorem 4.7 (Lagrange’s Theorem).
If G is a finite group and H is a subgroup of G , then |H| is a factor of |G |.
Example 4.6.
Find all subgroups of U15 . (Question 99 (b))
Solution.
Evidently, {1} and U15 = {1, 2, 4, 7, 8, 11, 13, 14} are subgroups of U15 .
To get the other subgroups, we form the smallest subgroup containing
each set of preselected elements.
Proof.
Since o(g ) = |hg i|, so it divides |G |. Write |G | = o(g )k; then
g |G | = (g o(g ) )k = e k = e.
This corollary leads to an important result in number theory.
Theorem 4.9 (Fermat’s Little Theorem).
If p is a prime and a is not a multiple of p, then ap−1 ≡ 1 (mod p).
Proof.
If a is not a multiple of p then a is a unit modulo p, that is, a ∈ Up .
But Up has order p − 1, and so by the previous corollary ap−1 = 1 in Up .
In Z this means ap−1 ≡ 1 (mod p), as asserted.
Corollary 4.10.
If p is prime and a is any integer, then ap ≡ a (mod p).
Chi Mak (UNSW) 4.1 Subgroups and Cyclic Groups S1 2018 13 / 58
Example 4.7 (Application of Fermat’s Little Theorem).
Evaluate 710502 (mod 13).
Solution.
By the Fermat’s Little Theorem, 712 ≡ 1 (mod 13). By division, we have
10502 = 12 × 875 + 2. Hence 710502 = (712 )875 × 72 ≡ 49 ≡ 10 (mod 13).
Definition 4.5.
If n is a positive integer we denote by φ(n) the number of positive integers
which are less than n and relatively prime to n.
The function φ : Z+ → Z+ is known as Euler’s function or the totient
function.
Example 4.8.
Find φ(10) and φ(15).
Solution.
Positive integers which are coprime to 10: 1, 3, 7, 9. Hence φ(10) = 4.
Similarly, 1, 2, 4, 7, 8, 11, 13, 14 are coprime to 15; so φ(15) = 8.
Chi Mak (UNSW) 4.1 Subgroups and Cyclic Groups S1 2018 14 / 58
A simple but important example: if p is prime then φ(p) = p − 1.
Clearly φ(n) is the order of Un . Euler generalised Fermat Little Theorem.
Theorem 4.11 (Euler’s Theorem).
Let n be a positive integer, and let a be an integer relatively prime to n.
Then aφ(n) ≡ 1 (mod n).
Since a and n are relatively prime, a (mod n) is in Un . The rest of the
proof is almost identical to that of Fermat’s Theorem.
Example 4.9.
Simplify 73210987 modulo 15.
Solution.
Since 7 is relatively prime to 15 and φ(15) = 8, by Euler’s Theorem 78 ≡ 1
(mod 15). By division, and 3210987 = 401373 × 8 + 3, so
73210987 = (78 )401373 × 73 ≡ 49 × 7 ≡ 4 × 7 ≡ 13 (mod 15).
The same as d and σ, the Euler’s function is also multiplicative.
Attempt questions 102 to 107.
Chi Mak (UNSW) 4.1 Subgroups and Cyclic Groups S1 2018 15 / 58
4.2 Direct Products of Groups
Definition 4.6.
Let A and B be two sets. The Cartesian production of the two sets is
defined by
A × B = {(a, b) : a ∈ A, b ∈ B}.
Lemma 4.12.
Let H and K groups with operation ∗ and ×, respectively. The set H × K
with the operation • defined by
(h1 , k1 ) • (h2 , k2 ) = (h1 ∗ h2 , k1 × k2 )
is a group.
Solution.
Note that {1, 3} ⊗ {1, 5} = {(1, 1), (1, 5), (3, 1), (3, 5)}.
Proof.
Firstly we must show that ψ is a bijection.
Suppose that ψ(h1 , k1 ) = ψ(h2 , k2 ), that is, h1 k1 = h2 k2 .
Then we have h2−1 h1 = k2 k1−1 , where the left hand side is in H, the right
hand side in K .
But the only element common to H and K is e. Therefore
h2−1 h1 = e and k2 k1−1 = e ,
so h1 = h2 , k1 = k2 and ψ is one-to-one.
A matter of notation:
Definition 4.8.
The direct sum of two additive abelian subgroups H and K is
H ⊕ K = {(h, k) | h ∈ H and k ∈ K } ,
with operation defined by
(h1 , k1 ) + (h2 , k2 ) = (h1 + h2 , k1 + k2 ) .
Chi Mak (UNSW) 4.2 Direct Products of Groups S1 2018 19 / 58
The three additions in the above definition are not the same.
Proof.
We shall prove that the function ψ : Zn → Zs ⊕ Zt given by
ψ(g ) = ( g mod s , g mod t )
is an isomorphism.
So, suppose that ψ(g1 ) = ψ(g2 ). Treating g1 and g2 as ordinary integers,
g1 mod s = g2 mod s and g1 mod t = g2 mod t ;
hence s | g1 − g2 and t | g1 − g2 . Since s and t are coprime st | g1 − g2 ,
that is, n | g1 − g2 . But this means that g1 ≡ g2 (mod n) in Z and
therefore g1 = g2 in Zn . Thus ψ is one-to-one, and as Zn is finite, this
means it is a bijection.
Solution.
We compare the multiplication tables for Z6 and Z2 ⊕ Z3 :
+ 0 1 2 3 4 5
0 0 1 2 3 4 5
1 1 2 3 4 5 0
2 2 3 4 5 0 1
3 3 4 5 0 1 2
4 4 5 0 1 2 3
5 5 0 1 2 3 4
Example 4.12.
Decompose each of the following additive groups into direct sum of cyclic
groups.
Z20 ∼
= Z4 ⊕ Z5 .
Z30 = Z6 ⊕ Z5 ∼
∼ = Z2 ⊕ Z3 ⊕ Z5 .
Proof.
Write n = s1 s2 · · · sk . If the sj are pairwise relatively prime then we can
use theorem 4.14 to show by induction that Zs1 ⊕ Zs2 ⊕ · · · ⊕ Zsk ∼ = Zn
which is cyclic.
Conversely, if the numbers are not pairwise relatively prime then
m = lcm(s1 , s2 , . . . , sk ) is less than n.
As in proof of theorem 4.14, Zs1 ⊕ Zs2 ⊕ · · · ⊕ Zsk has no element of order
greater than m, but it has n elements. None of its elements is a generator
of the whole group. Hence, Zs1 ⊕ Zs2 ⊕ · · · ⊕ Zsk is not cyclic.
Example 4.13.
The group Z11 ⊕ Z15 ⊕ Z28 is cyclic but Z16 ⊕ Z23 ⊕ Z30 is not.
Chi Mak (UNSW) 4.2 Direct Products of Groups S1 2018 25 / 58
Canonical decomposition of Zn
We can find many ways of writing Z84 as a direct sum:
Z84 ∼
= Z3 ⊕ Z28 ∼
= Z4 ⊕ Z21 ∼
= Z7 ⊕ Z12 .
Note that Z84 is not isomorphic to Z6 ⊕ Z14 because 6 and 14 are not
relatively prime.
We have also
Z84 ∼
= Z22 ⊕ Z3 ⊕ Z7 ,
and this is in some sense the “best” way of writing Z84 as a direct sum.
We shall call it the canonical decomposition of Z84 , by analogy with the
canonical factorisation 84 = 22 × 3 × 7.
To write this expression in terms of specific subgroups of Z84 , we use
Theorem 4.13 to obtain
Z84 ∼
= h84/4i ⊕ h84/3i ⊕ h84/7i = h21i ⊕ h28i ⊕ h12i
= {0, 21, 42, 63} ⊕ {0, 28, 56} ⊕ {0, 12, 24, 36, 48, 60, 72} .
Attempt questions 90(e), 108 to 111.
Chi Mak (UNSW) 4.2 Direct Products of Groups S1 2018 26 / 58
The Chinese Remainder Theorem
The following problem is posed and solved in a text by Sun Zi, a Chinese
mathematician of about the fifth century A.D.
Suppose we have an unknown number of objects. When counted in
threes, 2 are left over, when counted in fives, 3 are left over, and when
counted in sevens, 2 are left over. How many objects are there?
Translation from
www-history.mcs.st-andrews.ac.uk/Biographies/Sun Zi.html
In modern terms, the problem is to find all x which satisfy the three
congruences
x ≡ 2 (mod 3) , x ≡ 3 (mod 5) , x ≡ 2 (mod 7).
We have learnt that there is a group isomorphism
ψ : Z105 → Z3 ⊕ Z5 ⊕ Z7 defined by
ψ(x) = ( x mod 3 , x mod 5 , x mod 7).
We can rephrase the problem as to find x such that ψ(x) = (2, 3, 2). Since
ψ is a bijection we know that the problem has a unique solution in Z105 ;
that is, in Z there is a unique solution modulo 105.
Chi Mak (UNSW) 4.2 Direct Products of Groups S1 2018 27 / 58
Theorem 4.16 (The Chinese Remainder Theorem).
Suppose that the integers m1 , m2 , . . ., mt are pairwise coprime, and let
b1 , b2 , . . . , bt be any integers. Then the simultaneous congruences
x ≡ b1 (mod m1 ) , x ≡ b2 (mod m2 ), . . . , x ≡ bt (mod mt )
have a unique solution modulo m1 m2 · · · mt .
Proof.
Write n = m1 m2 · · · mt .
Since the mk are coprime in pairs, the proof of Theorem 4.14 shows that
ψ(x) = ( x mod m1 , x mod m2 , . . . , x mod mt )
defines a bijection between Zn and Zm1 ⊕ Zm2 ⊕ · · · ⊕ Zmt .
So there is a unique x ∈ Zn for which ψ(x) = (b1 , b2 , . . . , bt ), and this
proves the theorem.
The theorem is on the existence of unique solution, but how to find it?
The solution given by Sun Zi over 1500 years ago (translation from the
same source as before):
Multiply the number of units left over when counting in threes by 70,
add to the product of the number of units left over when counting
in fives by 21, and then add the product of the number of units left
over when counting in sevens by 15. If the answer is 106 or more
then subtract multiples of 105.
Solution.
Write the solution in modern terms.
x ≡ 2 × 70 + 3 × 21 + 2 × 15 (mod 105).
≡ 233 (mod 105)
≡ 23 (mod 105)
Chi Mak (UNSW) 4.2 Direct Products of Groups S1 2018 29 / 58
Why does this method work? The key is that
70 ≡ 1 (mod 3), 70 ≡ 0 (mod 5), 70 ≡ 0 (mod 7);
21 ≡ 0 (mod 3), 21 ≡ 1 (mod 5), 21 ≡ 0 (mod 7);
15 ≡ 0 (mod 3), 15 ≡ 0 (mod 5), 15 ≡ 1 (mod 7).
It is not difficult to see 35 is 0 in both modulo 5 and modulo 7. However,
35 is not 1 modulo 3, but 2 × 35 is.
Solution (without guess and check).
We write x = 35p + 21q + 15r , then take modulo 3, then modulo 5, then
modulo 7. We obtain,
2p ≡ 2 (mod 3), q ≡ 3 (mod 5), r ≡ 2 (mod 7).
So p = 1, q = 3, r = 2 will do.
Since there is a unique solution for x modulo 105,
x = 35 × 1 + 21 × 3 + 15 × 2 = 128 ≡ 23 (mod 105).
Solution.
Note that 10 and 15 are not coprime. We cannot apply the method right
away. However, Z15 ∼= Z3 ⊕ Z5 and apply the isomorphism ψ where
ψ(n) = (n mod 3, n mod 5), we have
x ≡ 1 (mod 15) ⇔ x ≡ 1 (mod 3) and x ≡ 1 (mod 5).
Similarly, x ≡ 8 (mod 10) ⇔ x ≡ 0 (mod 2) and x ≡ 3 (mod 5).
We cannot have x ≡ 1 (mod 5) and x ≡ 3 (mod 5) simultaneously.
Hence there is no solution.
Example 4.16.
Solve 4x ≡ 1 (mod 7) , x ≡ 3 (mod 10) , x ≡ 11 (mod 24).
Recall that if s and t are relatively prime then the additive groups Zst and
Zs ⊕ Zt are isomorphic, and that in particular the mapping defined by
ψ(g ) = ( g mod s , g mod t )
is an isomorphism from the former to the latter.
But note that ψ has another property:
ψ(g1 g2 ) = ( g1 g2 mod s , g1 g2 mod t )
= ( g1 mod s , g1 mod t )( g2 mod s , g2 mod t )
= ψ(g1 )ψ(g2 )
Solution.
= U3 ⊗ U5 ∼
U15 ∼ = C2 ⊗ C4 .
Note that U3 = {1, 2} and 22 = 1 modulo 3. Hence U3 = h2i ∼= C2 .
2 3 4
The elements of U5 are {1, 2, 3, 4} and 2 = 4, 2 = 3, 2 = 1 modulo 5.
Hence U5 = h2i and o(2) = 4 in U5 . Therefore U5 ∼= C4 .
From Example 4.10, U8 =∼ C2 ⊗ C2 . Hence
∼ ∼
U24 = U3 ⊗ U8 = C2 ⊗ C2 ⊗ C2 .
Corollary 4.18.
The Euler’s Function φ is multiplicative.
Proof.
We first compute |Upα |, where p is prime. The elements of Zpα are
0, 1, 2, . . . , p, . . . , 2p, . . . , 3p, . . . , (p α−1 − 1)p, . . . , p α − 1 ,
and all of them are units except for the multiples of p, namely,
0, p, 2p, 3p, . . . , (p α−1 − 1)p .
There are p α−1 of these, and so
φ (p α ) = Upα = p α − p α−1 = (p − 1)p α−1 .
Example 4.18.
φ(21) = φ( 3 × 7 ) = 2 × 6 = 12
φ(2111) = 2110
φ(211111) = φ( 107 × 1973 ) = 106 × 1972 = 209032
φ(21111111) = φ( 37 × 72 × 197 ) = (37 −36 )×(72 −7)×196 = 12002256.
Example 4.19.
Simplify 23232323 modulo 200.
Example 4.20.
Find all integers n such that φ(n) = 20.
Solution.
If p is a prime factor of n, by Theorem 4.19 p − 1 is a factor of φ(n) = 20.
Therefore n has no prime factors except 2, 3, 5 and 11. We only need
consider the following values of φ(p α ) with α > 1: φ(2) = 1, φ(22 ) = 2,
φ(23 ) = 4, φ(3) = 2, φ(5) = 4, φ(52 ) = 20, φ(11) = 10.
We only listed those functional values of φ which are factors of 20.
Lemma 4.21.
Suppose that gcd(s, t) = g . Then
φ(g )φ(st) = g φ(s)φ(t) .
Proof.
Using the third formula for φ(n) we have
Y 1 Y 1 Y 1 Y 1
LHS = gst 1− 1− , RHS = gst 1− 1− .
p p p p
p|g p|st p|s p|t
Clearly the factor gst is the same on both sides.
Chi Mak (UNSW) 4.3 Um – Group of Units of Zm S1 2018 40 / 58
Proof (Continued).
As for the rest, if a prime p is a divisor of both s and t then it is also a
divisor of g , and the factor (1 − p1 ) occurs twice on each side.
If p is a divisor of s but not of t then the factor occurs once on each side,
and likewise if p is a divisor of t but not of s.
If p is a divisor neither of s nor of t then the factor does not occur at all.
Therefore. the result follows.
Un ∼
= Upα1 ⊗ Upα2 ⊗ · · · ⊗ Upsαs .
1 2
In every case we have examined, the “factors” involved were either cyclic
(for example, U5 ∼
= C4 ) or easily expressible in terms of cyclic groups
∼
(U8 = C2 ⊗ C2 ). In general, we have the following theorem.
Theorem 4.22.
Let p be a prime, p 6= 2. Then Upα is cyclic,
Upα ∼
= C(p−1)pα−1 .
For powers of 2 we have U2 ∼= C1 , U4 ∼
= C2 and
∼
U2α = C2 ⊗ C2α−2 for α ≥ 3 .
Proof.
Difficult. The proof is not examinable. Skipped.
Proof.
From the previous theorem, Un is cyclic in the first three cases. In the
fourth case we have
U2pα ∼= U2 ⊗ Up α ∼= C1 ⊗ C(p−1)pα−1 ∼= C(p−1)pα−1
which is cyclic.
Conversely, if n does not have any of the given forms we have three cases:
1) n = 2α , where α ≥ 3. In this case Un ∼= C2 ⊗ C2α−2 ∼ = Z2 ⊗ Z2α−2
which is not cyclic by Theorem 4.15, since the factors are both even
so the orders are not coprime.
2) n = 2α p β for α ≥ 2, p an odd prime. In this case, for the same
reason Un ∼ = C2 ⊗ C2α−2 ⊗ C(p−1)pβ−1 is not cyclic.
α β
3) n = p q · · · for distinct odd primes p, q etc. In this case
Un ∼= C(p−1)pα−1 ⊗ C(q−1)qβ−1 ⊗ · · · and the same argument as p − 1
and q − 1 are even: not cyclic
Chi Mak (UNSW) 4.3 Um – Group of Units of Zm S1 2018 44 / 58
Example 4.21.
Write as products of cyclic groups with prime power order U164 , U165 and
U176 . Are any of these groups isomorphic to each other?
Solution.
Now 164 = 22 × 41, 165 = 3 × 5 × 11, 176 = 24 × 11. By Theroem 4.17
and Theorems 4.22
U164 ∼
= U4 ⊗ U41 ∼
= C2 ⊗ C40 ∼
= C2 ⊗ C8 ⊗ C5 ,
∼ U3 ⊗ U5 ⊗ U11 ∼
U165 = = C2 ⊗ C4 ⊗ C10 ∼= C2 ⊗ C4 ⊗ C2 ⊗ C5 , and
U176 ∼= U16 ⊗ U11 ∼ = C2 ⊗ C4 ⊗ C10 ∼= C2 ⊗ C4 ⊗ C2 ⊗ C5 .
This shows that U165 and U176 are isomorphic. However 2 and 4 are not
coprime, so by Theorem 4.14 C2 ⊗ C4 is not isomorphic to C8 , and
therefore U164 is not isomorphic to these two.
Example 4.22.
Show that U675 has an element of order 180.
Example 4.23.
Find the maximum order of any element in U1001 .
Solution.
Writing U1001 as a direct product of cyclic groups,
U1001 ∼ = U7 ⊗ U11 ⊗ U13 ∼ = C6 ⊗ C10 ⊗ C12
∼
= C2 ⊗ C3 ⊗ C2 ⊗ C5 ⊗ C4 ⊗ C3 ∼ = C2 ⊗ C2 ⊗ C3 ⊗ C60 .
For any element of this latter group we have
(g , h, i, j)60 = (g 60 , h60 , i 60 , j 60 ) = (e, e, e, e) ,
so no element can have order exceeding 60. If a generates C60 , the order
of (e, e, e, a) is exactly 60. So the maximum possible order in U1001 is 60.
Chi Mak (UNSW) 4.3 Um – Group of Units of Zm S1 2018 46 / 58
Theorem 4.24.
Suppose that G is a cyclic group of order n and that g is a generator of G .
Then
a) for any integer α, the order of g α is n/ gcd(α, n);
b) g α generates G if and only if α is relatively prime to n.
Proof.
Write d = gcd(α, n). Then
n α n
(g α )β = e ⇔ n | αβ ⇔ β ⇔ β.
d d d
The last step follows as gcd(n/d, α/d) = 1.
Therefore the smallest β such that (g α )β = e is n/d.
This proves the first assertion, and the second is an easy consequence.
Definition 4.9.
A generator of Um is called a primitive root modulo m.
1, 2, 4, 8, 5, 10, 9, 7, 3, 6
Proof.
It follows directly from Theorem 4.23.
Theorem 4.26.
Let g be a primitive root modulo m. Then g α is a primitive root modulo
m if and only if α is relatively prime to φ(m), that is iff α ∈ Uφ(m) .
Proof.
It follows directly from Theorem 4.24.
Corollary 4.27.
If there are any primitive roots modulo m then there are φ (φ(m)) of them.
Chi Mak (UNSW) 4.4 Primitive Roots S1 2018 49 / 58
Example 4.24.
Find all primitive roots modulo 11.
Solution.
We have φ(11) = 10, and 2 is a primitive root modulo 11. Working in Z11
the powers of 2, listed in order, are
1, 2, 4, 8, 5, 10, 9, 7, 3, 6 .
α
By Theorem 4.26, 2 is a primitive root modulo 11 iff α ∈ Uφ(11) . Hence
the set of all primitive roots modulo 11 is
{21 , 23 , 27 , 29 } = {2, 8, 7, 6} .
By Theorem 4.26, once we have one primitive root we can find them all.
But how do we find a first primitive root modulo m?
The only answer is “by intelligent trial and error”. Let me illustrate this
in the next example.
Example 4.25.
Find all primitive roots modulo 31.
Chi Mak (UNSW) 4.4 Primitive Roots S1 2018 50 / 58
Solution.
A primitive root modulo 31, g , is a generator of U31 . Since
|U31 | = φ(31) = 30, we need g 30 = 1, but g α 6= 1 for all 1 ≤ α ≤ 29. By
Lagrange’s Theorem, the order of any element in U31 must be a factor of
30. If g is not a generator then at least one of the following will be 1 in
U31 . g 1 , g 2 , g 3 , g 5 , g 6 , g 10 , g 15
However, if one of g , g 3 , g 5 is 1, then g 15 is 1. Equivalently, if g 15 is not
1, then none of g , g 3 , g 5 is 1. In general, we only need to check those
α 6= 30 and α is a proper factor of 30 but not a factor of any other proper
factors of 30. Hence, we only need
g 6 6≡ 1 (mod 31), g 10 6≡ 1 (mod 31) and g 15 6≡ 1 (mod 31).
Try g = 2, and calculate 26 , 210 and 215 modulo 31 as efficiently as
possible.
21 = 2 , 22 = 4 , 24 = 42 = 16 , 26 = 4 × 16 = 2 6= 1,
210 = 24 × 26 = 16 × 2 = 1.
Therefore 2 is not a primitive root modulo 31.
Indices Modulo m
Let g be a primitive root modulo m and a is a unit modulo m. There
exists a unique α ∈ {0, 1, 2, . . . , φ(m) − 1} such that a = g α .
Definition 4.10.
The exponent α above is called the discrete logarithm of a modulo m
to the base g , or the index of a modulo m, relative to g . We write
α = logg a or α = indg a .
Chi Mak (UNSW) 4.4 Primitive Roots S1 2018 52 / 58
Example 4.26.
The indices of all units modulo 11, relative to the primitive root 6, are
given in the following table.
a = 6α 1 2 3 4 5 6 7 8 9 10
α = ind6 (a) 0 9 2 8 6 1 3 7 4 5
Rules for manipulating indices are essentially identical to the familiar rules
of (real) logarithms: we just have to remember that indices modulo m
should be simplified modulo φ(m).
Example 4.27.
In Z11 , if we want to multiply a = 8 and b = 9, instead of doing it directly,
we can compute the product in terms of powers of 6:
ab = 67 × 64 = 611 = 611 (mod 10) = 61 = 6.
In other words,
ind6 (ab) = 1 ≡ ind6 a + ind6 b (mod 10).
This verifies part of the next theorem.
Chi Mak (UNSW) 4.4 Primitive Roots S1 2018 53 / 58
Note: the product of units is simplified modulo m, but the sum of indices
is simplified modulo φ(m).
Theorem 4.28.
Let g be a primitive root in Um .
a) If a, b ∈ Um then indg (ab) ≡ indg a + indg b (mod φ(m)).
b) If a ∈ Um and k ∈ Z then indg (ak ) ≡ k indg a (mod φ(m)).
Proof.
Exercise