Introduction to Modern Algebra

Contents › Chapter 5

Chapter 5. Cosets and Lagrange's theorem

5.1 Cosets

A subgroup HH of a group GG can be moved around inside GG by multiplying all its elements by one element of GG.

Recall that a subgroup of GG is a subset that is a group under the operation of GG (Definition 2.1.1): it contains the identity ee, and products and inverses of its elements stay in it.

Cosets

Definition 5.1.1 (Coset).

Let HH be a subgroup of a group GG, and let g∈Gg \in G. The left coset of HH by gg is the set

gH={gh:h∈H},gH = \{gh : h \in H\},

and the right coset of HH by gg is the set Hg={hg:h∈H}Hg = \{hg : h \in H\}. When GG is written additively, the coset is written g+H={g+h:h∈H}g + H = \{g + h : h \in H\}.

Example 5.1.2 (Residue classes are cosets).

Let nn be a positive integer. The multiples nZ={nk:k∈Z}n\mathbb{Z} = \{nk : k \in \mathbb{Z}\} form a subgroup of Z\mathbb{Z} under addition, and by Theorem 2.3.1 every subgroup of Z\mathbb{Z} is of this form. The coset of nZn\mathbb{Z} by an integer aa is

a+nZ={a+nk:k∈Z}={…,a−n,a,a+n,… },\begin{aligned} a + n\mathbb{Z} &= \{a + nk : k \in \mathbb{Z}\} \\ &= \{\dots, a - n, a, a + n, \dots\}, \end{aligned}

which is the residue class [a][a] of aa modulo nn (Definition 1.3.2). So the cosets of nZn\mathbb{Z} in Z\mathbb{Z} are exactly the nn residue classes [0],[1],…,[n−1][0], [1], \dots, [n - 1], and Z/nZ\mathbb{Z}/n\mathbb{Z} is the set of cosets of nZn\mathbb{Z}, added through representatives. On a clock with nn hours, each hour is one coset of nZn\mathbb{Z}. From now on the residue class [a][a] is also written a+nZa + n\mathbb{Z}.

Cutting a group into cosets

On the clock, in the plane and in S3S_3, every element lies in exactly one coset, and every coset is a moved copy of the subgroup: a line parallel to it in the plane, and a set with as many elements as the subgroup on the clock and in S3S_3. That happens for every subgroup of every group.

Theorem 5.1.3 (Cosets partition the group).

Let HH be a subgroup of a group GG, and let g,g′∈Gg, g' \in G.

  • (i) gg lies in the left coset gHgH.
  • (ii) g′H=gHg'H = gH exactly when g−1g′∈Hg^{-1}g' \in H, and this happens exactly when g′∈gHg' \in gH.
  • (iii) Two left cosets of HH are either equal or disjoint.
  • (iv) The map H→gHH \to gH, h↦ghh \mapsto gh, is a bijection. So if HH is finite, every left coset of HH has exactly ∣H∣\lvert H \rvert elements.

The same holds for right cosets, with Hg′=HgHg' = Hg exactly when g′g−1∈Hg'g^{-1} \in H.

Proof.

Idea. Show that the left cosets are the classes of one equivalence relation on GG. An equivalence relation cuts a set into disjoint classes, and two elements lie in the same class exactly when they are related; that gives (i) to (iii), and two cosets that share an element xx are both the class of xx, which is xHxH. Cancellation then gives (iv).

  1. Writing g′∼gg' \sim g when g−1g′∈Hg^{-1}g' \in H defines an equivalence relation on GG.

    The three checks use that HH is a subgroup:

    • reflexive: g−1g=eg^{-1}g = e, which lies in HH;
    • symmetric: if g−1g′∈Hg^{-1}g' \in H, then its inverse lies in HH, and by Theorem 1.2.4 that inverse is (g−1g′)−1=g′−1(g−1)−1=g′−1g(g^{-1}g')^{-1} = g'^{-1}(g^{-1})^{-1} = g'^{-1}g, so g∼g′g \sim g';
    • transitive: if g−1g′∈Hg^{-1}g' \in H and g′−1g′′∈Hg'^{-1}g'' \in H, then their product g−1g′g′−1g′′=g−1g′′g^{-1}g'g'^{-1}g'' = g^{-1}g'' lies in HH, so g′′∼gg'' \sim g.
  2. The class of gg is the left coset gHgH.

    g′∼gg' \sim g means g−1g′=hg^{-1}g' = h for some h∈Hh \in H, and multiplying on the left by gg turns this into g′=ghg' = gh; conversely g′=ghg' = gh gives g−1g′=hg^{-1}g' = h. So the elements related to gg are exactly the elements ghgh with h∈Hh \in H.

  3. (i): g∈gHg \in gH.

    Every element lies in its own class.

  4. (ii): g′H=gHg'H = gH exactly when g−1g′∈Hg^{-1}g' \in H, and exactly when g′∈gHg' \in gH.

    Two elements have the same class exactly when they are related. So g′H=gHg'H = gH exactly when g′∼gg' \sim g, which means g−1g′∈Hg^{-1}g' \in H; and g′∼gg' \sim g means g′g' lies in the class of gg, which is gHgH.

  5. (iii): two left cosets of HH are equal or disjoint.

    Two classes of an equivalence relation are equal or disjoint, and the left cosets are the classes of ∼\sim.

  6. (iv): h↦ghh \mapsto gh is a bijection from HH onto gHgH.

    The map sends HH onto gHgH, since by definition every element of gHgH is ghgh for some h∈Hh \in H. It is one-to-one by cancellation (Theorem 1.2.4): gh=gh′gh = gh' forces h=h′h = h'. So it is a bijection, and when HH is finite, gHgH has ∣H∣\lvert H \rvert elements.

For right cosets, write g′∼gg' \sim g when g′g−1∈Hg'g^{-1} \in H instead. The same checks show that this is an equivalence relation whose class of gg is HgHg, and h↦hgh \mapsto hg is a bijection from HH onto HgHg. □

Part (ii) is the test for two elements to lie in the same left coset: compute g−1g′g^{-1}g' and check whether it lies in HH. Written additively, it says that a+H=b+Ha + H = b + H exactly when b−a∈Hb - a \in H. For H=nZH = n\mathbb{Z} this is the rule met with residue classes, that [a]=[b][a] = [b] exactly when nn divides b−ab - a.

By part (ii), every element xx of a coset gHgH has xH=gHxH = gH, so a coset can be named by any of its elements. Each of them is called a representative of the coset.

The index

Definition 5.1.4 (Index).

Let HH be a subgroup of a group GG. The index of HH in GG, written [G:H][G : H], is the number of left cosets of HH in GG. It may be infinite.

The index counts the right cosets equally well. The rule gH↦Hg−1gH \mapsto Hg^{-1} matches the left cosets with the right cosets one for one. By Theorem 5.1.3, g′H=gHg'H = gH exactly when g−1g′∈Hg^{-1}g' \in H, which happens exactly when its inverse g′−1gg'^{-1}g lies in HH; and by the test for right cosets, applied to g′−1g'^{-1} and g−1g^{-1}, that happens exactly when Hg′−1=Hg−1Hg'^{-1} = Hg^{-1}. Read one way, this says that every representative of gHgH gives the same right coset; read the other way, that different left cosets give different right cosets. Every right coset HxHx is reached, from the left coset x−1Hx^{-1}H. So GG has as many right cosets of HH as left cosets.

The simpler rule gH↦HggH \mapsto Hg does not work. In S3S_3, with H={e,(1 2)}H = \{e, (1\ 2)\}, the left cosets (1 3)H(1\ 3)H and (1 2 3)H(1\ 2\ 3)H are the same set, but H(1 3)={(1 3),(1 3 2)}H(1\ 3) = \{(1\ 3), (1\ 3\ 2)\} and H(1 2 3)={(1 2 3),(2 3)}H(1\ 2\ 3) = \{(1\ 2\ 3), (2\ 3)\} are not.

So a subgroup HH of a finite group GG cuts GG into [G:H][G : H] cosets, each with ∣H∣\lvert H \rvert elements: Z/12Z\mathbb{Z}/12\mathbb{Z} falls into 44 cosets of {[0],[4],[8]}\{[0], [4], [8]\}, of 33 elements each.

5.2 Lagrange's theorem

Can a group with 1212 elements contain a group with 55? The left cosets of a subgroup HH cut a group GG into pieces that do not overlap, each with as many elements as HH (Theorem 5.1.3). Counting the elements of GG piece by piece answers the question.

Counting cosets

Theorem 5.2.1 (Lagrange’s theorem).Not yet reviewed

Let GG be a finite group and let HH be a subgroup of GG. Then

∣G∣=[G:H] ∣H∣.\lvert G \rvert = [G : H]\,\lvert H \rvert.

In particular ∣H∣\lvert H \rvert divides ∣G∣\lvert G \rvert, and the index of HH is [G:H]=∣G∣/∣H∣[G : H] = \lvert G \rvert / \lvert H \rvert.

Proof.

Idea. Cut GG into the left cosets of HH. They do not overlap and all have ∣H∣\lvert H \rvert elements, so counting GG coset by coset gives ∣G∣\lvert G \rvert as ∣H∣\lvert H \rvert times the number of cosets.

  1. Every element of GG lies in exactly one left coset of HH.

    By Theorem 5.1.3, each g∈Gg \in G lies in gHgH, and two left cosets are either equal or disjoint.

  2. Each left coset has exactly ∣H∣\lvert H \rvert elements.

    By Theorem 5.1.3, h↦ghh \mapsto gh is a bijection from HH onto gHgH.

  3. There are finitely many left cosets, [G:H][G : H] of them.

    Each left coset is a subset of GG, and a finite set has only finitely many subsets.

  4. So ∣G∣=[G:H] ∣H∣\lvert G \rvert = [G : H]\,\lvert H \rvert.

    By the first step, ∣G∣\lvert G \rvert is the sum of the sizes of the [G:H][G : H] left cosets, and by the second step each of these sizes is ∣H∣\lvert H \rvert.

  5. So ∣H∣\lvert H \rvert divides ∣G∣\lvert G \rvert, and [G:H]=∣G∣/∣H∣{[G : H] = \lvert G \rvert / \lvert H \rvert}.

    [G:H][G : H] is an integer, and since e∈He \in H, ∣H∣≥1{\lvert H \rvert \geq 1}, so we may divide the equation of the previous step by ∣H∣\lvert H \rvert.

□

So a group with 1212 elements cannot contain a group with 55: 55 does not divide 1212.

Orders of elements

Every element gg of a group generates a subgroup ⟨g⟩\langle g \rangle, so Lagrange’s theorem constrains the orders of elements as well as of subgroups.

Theorem 5.2.2 (Orders of elements).

Let GG be a finite group and let g∈Gg \in G.

  • (i) ord⁡(g)\ord(g) divides ∣G∣\lvert G \rvert.
  • (ii) g∣G∣=eg^{\lvert G \rvert} = e.
  • (iii) If ∣G∣=p\lvert G \rvert = p is a prime, then GG is cyclic, and every element other than ee generates GG.
Proof.

Idea. Apply Lagrange’s theorem to the subgroup ⟨g⟩\langle g \rangle, which has ord⁡(g)\ord(g) elements.

  1. ord⁡(g)\ord(g) is finite.

    The powers g0=e,g,g2,…,g∣G∣g^0 = e, g, g^2, \dots, g^{\lvert G \rvert} are ∣G∣+1\lvert G \rvert + 1 elements of GG, so two of them are equal, say gi=gjg^i = g^j with 0≤i<j0 \le i < j. Multiplying both sides by g−ig^{-i} gives e=gj−ie = g^{j - i}, by the rules for powers (Definition 2.2.1). So some positive power of gg is ee.

  2. (i): ord⁡(g)\ord(g) divides ∣G∣\lvert G \rvert.

    By Definition 2.2.2, ⟨g⟩\langle g \rangle is a subgroup of GG, and by Theorem 2.2.3 it has exactly ord⁡(g)\ord(g) elements. By Theorem 5.2.1, ord⁡(g)\ord(g) divides ∣G∣\lvert G \rvert.

  3. (ii): g∣G∣=eg^{\lvert G \rvert} = e.

    By (i), ord⁡(g)\ord(g) divides ∣G∣\lvert G \rvert, and a power gkg^k is ee whenever ord⁡(g)\ord(g) divides kk (Theorem 2.2.3).

  4. (iii): if ∣G∣=p\lvert G \rvert = p is a prime, then every g≠eg \neq e generates GG, so GG is cyclic.

    Let g≠eg \neq e; there is such an element, since ∣G∣=p≥2\lvert G \rvert = p \ge 2. By (i), ord⁡(g)\ord(g) divides pp, so it is 11 or pp. It is not 11, since g1=g≠eg^1 = g \neq e. So ord⁡(g)=p\ord(g) = p, and ⟨g⟩\langle g \rangle has pp elements, which makes it all of GG.

□

Part (iii) settles every group of prime order at once: a group with 77 elements is cyclic, and any element other than ee generates it.

The converse fails

Example 5.2.3 (A group with no subgroup of order 66).

The alternating group A4A_4 has order 1212, and 66 divides 1212, but A4A_4 has no subgroup of order 66. So the converse of Lagrange’s theorem is false: a finite group need not have a subgroup of every order that divides its order.

Why A4A_4 has no subgroup of order 66.

Idea. A subgroup of index 22 must contain the square of every element, and in A4A_4 the squares already include all eight 33-cycles, more than 66 elements.

  1. A subgroup HH of A4A_4 with 66 elements would have index 22.

    By Theorem 5.2.1, [A4:H]=12/6=2[A_4 : H] = 12/6 = 2.

  2. The square of every element of A4A_4 would lie in HH.

    Let g∈A4g \in A_4. If g∈Hg \in H, then g2=gg∈Hg^2 = gg \in H, since HH is closed. If g∉Hg \notin H, then gH≠eH=HgH \neq eH = H by Theorem 5.1.3(ii), so HH and gHgH are the two left cosets of HH. By (ii) again, g2H=gHg^2H = gH would need g−1g2=gg^{-1}g^2 = g to lie in HH, so g2Hg^2H is the other coset, HH. Then g2∈g2H=Hg^2 \in g^2H = H by Theorem 5.1.3(i).

  3. Every 33-cycle would lie in HH.

    Each 33-cycle cc has order 33 (Theorem 3.1.3), so c3=ec^3 = e and c=c4=(c2)2c = c^4 = (c^2)^2 is the square of the element c2c^2. So c∈Hc \in H by the previous step.

  4. No such HH exists.

    Recall from Example 3.3.3 that A4A_4 consists of the identity, the three products of two transpositions (1 2)(3 4)(1\ 2)(3\ 4), (1 3)(2 4)(1\ 3)(2\ 4) and (1 4)(2 3)(1\ 4)(2\ 3), and the eight 33-cycles. So HH would contain eight 33-cycles, but it has only six elements.

□

Fermat’s and Euler’s theorems

Lagrange’s theorem also proves facts about whole numbers. Recall that the class [a][a] is a unit in Z/nZ\mathbb{Z}/n\mathbb{Z} exactly when gcd⁡(a,n)=1\gcd(a, n) = 1 (Theorem 2.3.4), and that the units form the group (Z/nZ)×(\mathbb{Z}/n\mathbb{Z})^\times, with φ(n)\varphi(n) elements (Definition 2.4.1).

Theorem 5.2.4 (Theorems of Fermat and Euler).
  • (i) Euler’s theorem: let nn be a positive integer and aa an integer with gcd⁡(a,n)=1\gcd(a, n) = 1. Then aφ(n)≡1(modn)a^{\varphi(n)} \equiv 1 \pmod n.
  • (ii) Fermat’s little theorem: let pp be a prime. Then ap−1≡1(modp)a^{p - 1} \equiv 1 \pmod p for every integer aa not divisible by pp, and ap≡a(modp)a^p \equiv a \pmod p for every integer aa.
Proof.

Idea. Apply Theorem 5.2.2(ii) to the group of units: a unit raised to the power φ(n)\varphi(n), the order of the group, is the identity [1][1].

  1. (i): if gcd⁡(a,n)=1\gcd(a, n) = 1, then aφ(n)≡1(modn)a^{\varphi(n)} \equiv 1 \pmod n.

    Since gcd⁡(a,n)=1\gcd(a, n) = 1, the class [a][a] is a unit (Theorem 2.3.4), so it lies in the group (Z/nZ)×(\mathbb{Z}/n\mathbb{Z})^\times (Example 1.3.4), which has φ(n)\varphi(n) elements (Definition 2.4.1). By Theorem 5.2.2(ii), [a]φ(n)=[1][a]^{\varphi(n)} = [1]. Classes are multiplied through representatives, so [a]k=[ak][a]^k = [a^k] for every k≥1k \ge 1, and [aφ(n)]=[1][a^{\varphi(n)}] = [1]. That is, aφ(n)≡1(modn)a^{\varphi(n)} \equiv 1 \pmod n.

  2. φ(p)=p−1\varphi(p) = p - 1.

    The only positive divisors of pp are 11 and pp, and pp divides none of 1,2,…,p−11, 2, \dots, p - 1, so gcd⁡(k,p)=1\gcd(k, p) = 1 for these kk, while gcd⁡(p,p)=p\gcd(p, p) = p.

  3. (ii): if pp does not divide aa, then ap−1≡1(modp)a^{p - 1} \equiv 1 \pmod p and ap≡a(modp)a^p \equiv a \pmod p.

    gcd⁡(a,p)\gcd(a, p) is a positive divisor of pp other than pp, so it is 11. Part (i) with n=pn = p, where φ(p)=p−1\varphi(p) = p - 1 by the previous step, gives ap−1≡1(modp)a^{p - 1} \equiv 1 \pmod p, and multiplying by aa gives ap≡a(modp)a^p \equiv a \pmod p.

  4. (ii): if pp divides aa, then ap≡a(modp)a^p \equiv a \pmod p.

    apa^p and aa are both multiples of pp, so ap≡0≡a(modp)a^p \equiv 0 \equiv a \pmod p.

□

Cosets and Lagrange's theorem: Exercises

Exercise 5.1.

In the dihedral group D4D_4, let H={e,s}H = \{e, s\}. List the left cosets of HH and the right cosets of HH, and find an element g∈D4g \in D_4 with gH≠HggH \neq Hg.

Solution.

Use the products of Example 1.4.2: rksr^k s is a reflection, and srk=r−kssr^k = r^{-k}s, with exponents counted modulo 44.

The left cosets are rkH={rk,rks}r^kH = \{r^k, r^ks\} for k=0,1,2,3k = 0, 1, 2, 3:

{e,s},{r,rs},{r2,r2s},{r3,r3s}.\begin{aligned} &\{e, s\}, \quad \{r, rs\}, \\ &\{r^2, r^2s\}, \quad \{r^3, r^3s\}. \end{aligned}

These are four disjoint sets covering all eight elements, so they are all the left cosets; the coset of a reflection rksr^ks is (rks)H={rks,rk}=rkH(r^ks)H = \{r^ks, r^k\} = r^kH.

The right cosets are Hrk={rk,srk}={rk,r−ks}Hr^k = \{r^k, sr^k\} = \{r^k, r^{-k}s\}:

{e,s},{r,r3s},{r2,r2s},{r3,rs}.\begin{aligned} &\{e, s\}, \quad \{r, r^3s\}, \\ &\{r^2, r^2s\}, \quad \{r^3, rs\}. \end{aligned}

For g=rg = r, the left coset rH={r,rs}rH = \{r, rs\} differs from the right coset Hr={r,r3s}Hr = \{r, r^3s\}. (So does g=r3g = r^3, and so do g=rsg = rs and g=r3sg = r^3s; for g=e,s,r2,r2sg = e, s, r^2, r^2s the two cosets agree.) □

Exercise 5.2.

Find each index.

  • (a) [Z/24Z:⟨[16]⟩][\mathbb{Z}/24\mathbb{Z} : \langle [16] \rangle].
  • (b) [(Z/20Z)×:⟨[3]⟩][(\mathbb{Z}/20\mathbb{Z})^\times : \langle [3] \rangle].
  • (c) [S4:⟨(1 2 3 4)⟩][S_4 : \langle (1\ 2\ 3\ 4) \rangle].
Solution.

In each part, find the order of the subgroup and divide, by Theorem 5.2.1: [G:H]=∣G∣/∣H∣[G : H] = \lvert G \rvert / \lvert H \rvert.

(a) The multiples of [16][16] are [16][16], [32]=[8][32] = [8] and [48]=[0][48] = [0], so ⟨[16]⟩={[0],[8],[16]}\langle [16] \rangle = \{[0], [8], [16]\} has 33 elements. The index is 24/3=824/3 = 8.

(b) The units modulo 2020 are the classes of 1,3,7,9,11,13,17,191, 3, 7, 9, 11, 13, 17, 19, the integers between 11 and 2020 coprime to 2020 (Theorem 2.3.4), so φ(20)=8\varphi(20) = 8. The powers of [3][3] are [3][3], [9][9], [27]=[7][27] = [7] and [21]=[1][21] = [1], so [3][3] has order 44 and ⟨[3]⟩\langle [3] \rangle has 44 elements (Theorem 2.2.3). The index is 8/4=28/4 = 2.

(c) A 44-cycle has order 44 (Theorem 3.1.3), so ⟨(1 2 3 4)⟩\langle (1\ 2\ 3\ 4) \rangle has 44 elements, and ∣S4∣=4!=24\lvert S_4 \rvert = 4! = 24. The index is 24/4=624/4 = 6. □

Exercise 5.3.

Find the remainder of 72227^{222} on division by 1010, and the remainder of 310003^{1000} on division by 1313.

Solution.

Since gcd⁡(7,10)=1\gcd(7, 10) = 1 and φ(10)=4\varphi(10) = 4 (the units are the classes of 1,3,7,91, 3, 7, 9), Euler’s theorem (Theorem 5.2.4) gives 74≡1(mod10)7^4 \equiv 1 \pmod{10}. As 222=55⋅4+2222 = 55 \cdot 4 + 2,

7222=(74)55⋅72≡49≡9(mod10).\begin{aligned} 7^{222} &= (7^4)^{55} \cdot 7^2 \\ &\equiv 49 \equiv 9 \pmod{10}. \end{aligned}

The remainder is 99.

Since 1313 is prime and does not divide 33, Fermat’s little theorem gives 312≡1(mod13)3^{12} \equiv 1 \pmod{13}. As 1000=83⋅12+41000 = 83 \cdot 12 + 4,

31000=(312)83⋅34≡81≡3(mod13).\begin{aligned} 3^{1000} &= (3^{12})^{83} \cdot 3^4 \\ &\equiv 81 \equiv 3 \pmod{13}. \end{aligned}

The remainder is 33. □

Exercise 5.4.

Let pp be a prime. Show that (a+b)p≡ap+bp(modp)(a + b)^p \equiv a^p + b^p \pmod p for all integers aa and bb.

Solution.

By Fermat’s little theorem (Theorem 5.2.4), xp≡x(modp)x^p \equiv x \pmod p for every integer xx. Applied to a+ba + b, to aa and to bb, it gives

(a+b)p≡a+b≡ap+bp(modp).(a + b)^p \equiv a + b \equiv a^p + b^p \pmod p.
□
Exercise 5.5.

Let HH be a subgroup of a group GG and let g∈Gg \in G. Show that the left coset gHgH is a subgroup of GG exactly when g∈Hg \in H.

Hint.

Every subgroup contains the identity ee.

Solution.

Both directions use the test of Theorem 5.1.3(ii): g′H=gHg'H = gH exactly when g′∈gHg' \in gH.

Suppose g∈Hg \in H. Then gg lies in eH=HeH = H, so the test, applied to ee and gg, gives gH=eH=HgH = eH = H. So gHgH is HH, a subgroup.

Conversely, suppose gHgH is a subgroup of GG. Then it contains the identity ee. By the test, e∈gHe \in gH gives eH=gHeH = gH, that is, gH=HgH = H. Since g∈gHg \in gH (Theorem 5.1.3(i)), it follows that g∈Hg \in H. □

Exercise 5.6.

Let HH and KK be subgroups of a finite group GG with gcd⁡(∣H∣,∣K∣)=1\gcd(\lvert H \rvert, \lvert K \rvert) = 1. Show that H∩K={e}H \cap K = \{e\}.

Hint.

H∩KH \cap K is a subgroup of HH, and also of KK.

Solution.

The plan is to show that ∣H∩K∣\lvert H \cap K \rvert divides both ∣H∣\lvert H \rvert and ∣K∣\lvert K \rvert.

H∩KH \cap K is a subgroup of GG (Definition 2.1.1). It contains ee, which lies in both HH and KK. If a,b∈H∩Ka, b \in H \cap K, then abab and a−1a^{-1} lie in HH, since HH is a subgroup, and in KK for the same reason, so they lie in H∩KH \cap K. Associativity holds because it holds in GG.

Since H∩KH \cap K is contained in HH and is a group under the same operation, it is a subgroup of HH; in the same way it is a subgroup of KK. By Theorem 5.2.1, applied in HH and in KK, ∣H∩K∣\lvert H \cap K \rvert divides ∣H∣\lvert H \rvert and divides ∣K∣\lvert K \rvert, so it divides gcd⁡(∣H∣,∣K∣)=1\gcd(\lvert H \rvert, \lvert K \rvert) = 1. So H∩KH \cap K has exactly one element, which is ee. □

Exercise 5.7.

Let pp be a prime and let GG be a group of order p2p^2. Show that GG has a subgroup of order pp.

Hint.

Take an element g≠eg \neq e. Its order can only be pp or p2p^2; treat the two cases separately.

Solution.

The plan is to find an element of order pp: by Theorem 2.2.3, the subgroup ⟨h⟩\langle h \rangle generated by an element hh of order pp has exactly pp elements.

Since p2≥4p^2 \ge 4, there is an element g≠eg \neq e. By Theorem 5.2.2, ord⁡(g)\ord(g) divides p2p^2, so it is 11, pp or p2p^2, and it is not 11 because g≠eg \neq e.

If ord⁡(g)=p\ord(g) = p, take h=gh = g.

If ord⁡(g)=p2\ord(g) = p^2, take h=gph = g^p. Then hp=gp2=eh^p = g^{p^2} = e, and for 0<k<p0 < k < p we have hk=gpk≠eh^k = g^{pk} \neq e, because 0<pk<p20 < pk < p^2 and p2p^2 is the least positive exponent with gp2=eg^{p^2} = e. So hh has order pp.

In both cases ⟨h⟩\langle h \rangle is a subgroup of GG with pp elements. □

Exercise 5.8.

Show that every group of order 44 is abelian.

Hint.

List the orders an element of a group of order 44 can have, and ask whether some element has order 44.

Solution.

Let ∣G∣=4\lvert G \rvert = 4. By Theorem 5.2.2, every element of GG has order 11, 22 or 44. There are two cases.

Some element gg has order 44. Then ⟨g⟩={e,g,g2,g3}\langle g \rangle = \{e, g, g^2, g^3\} has 44 elements (Theorem 2.2.3), so it is all of GG. Any two elements are powers of gg, and powers of one element commute: gagb=ga+b=gbgag^ag^b = g^{a + b} = g^bg^a. So GG is abelian.

No element has order 44. Then every element xx has order 11 or 22, so x2=ex^2 = e and xx is its own inverse. For a,b∈Ga, b \in G, using this for abab, aa and bb, and Theorem 1.2.4(iv),

ab=(ab)−1=b−1a−1=ba.ab = (ab)^{-1} = b^{-1}a^{-1} = ba.

So GG is abelian in this case too. □

Exercise 5.9.

Let GG be a finite group of order nn, and let kk be an integer with gcd⁡(k,n)=1\gcd(k, n) = 1. Show that every element of GG is a kk-th power: for each g∈Gg \in G there is an x∈Gx \in G with xk=gx^k = g. Deduce that the map G→GG \to G, x↦xkx \mapsto x^k, is a bijection.

Hint.

Write 11 as a combination of kk and nn.

Solution.

The plan is to write the exponent 11 as ku+nvku + nv and use gn=eg^n = e to discard the nn-part.

By Theorem 2.3.2, there are integers uu and vv with ku+nv=gcd⁡(k,n)=1ku + nv = \gcd(k, n) = 1. Let g∈Gg \in G. By Theorem 5.2.2, gn=eg^n = e. So, by the rules for powers,

g=gku+nv=(gu)k(gn)v=(gu)kev=(gu)k.\begin{aligned} g = g^{ku + nv} &= (g^u)^k (g^n)^v \\ &= (g^u)^k e^v = (g^u)^k. \end{aligned}

So x=gux = g^u satisfies xk=gx^k = g.

This shows that the map x↦xkx \mapsto x^k takes every value in GG, so it is onto. It is also one-to-one: if two elements had the same image, the nn elements of GG would have at most n−1n - 1 different images, and the map could not be onto. So it is a bijection. □

Exercise 5.10.

Let pp be an odd prime and let GG be a group of order 2p2p. Show that GG has an element of order pp.

Hint.

Suppose not, and show that then x2=ex^2 = e for every x∈Gx \in G. Then look for a subgroup of order 44.

Solution.

The orders of elements do not by themselves produce an element of order pp, so the argument supposes there is none and builds a subgroup of order 44, which cannot exist because 44 does not divide 2p2p.

By Theorem 5.2.2, every element has order 11, 22, pp or 2p2p. No element has order 2p2p either: if ord⁡(g)=2p\ord(g) = 2p, then g2g^2 would have order pp, since (g2)p=g2p=e(g^2)^p = g^{2p} = e and (g2)k=g2k≠e(g^2)^k = g^{2k} \neq e for 0<k<p0 < k < p, because 0<2k<2p0 < 2k < 2p. So, supposing that no element has order pp, every element has order 11 or 22, and x2=ex^2 = e for every x∈Gx \in G.

Then GG is abelian: for a,b∈Ga, b \in G, ab=(ab)−1=b−1a−1=baab = (ab)^{-1} = b^{-1}a^{-1} = ba, since each element is its own inverse (Theorem 1.2.4).

Since ∣G∣=2p≥6\lvert G \rvert = 2p \ge 6, choose a≠ea \neq e, and then b∉{e,a}b \notin \{e, a\}. Let V={e,a,b,ab}V = \{e, a, b, ab\}. Its four elements are different: ab=eab = e would give b=a−1=ab = a^{-1} = a; ab=aab = a would give b=eb = e; and ab=bab = b would give a=ea = e.

VV is closed under the operation. Using a2=b2=ea^2 = b^2 = e and ba=abba = ab,

a⋅ab=a2b=b,b⋅ab=ab2=a,ab⋅ab=a2b2=e,\begin{aligned} a \cdot ab &= a^2b = b, \\ b \cdot ab &= ab^2 = a, \\ ab \cdot ab &= a^2b^2 = e, \end{aligned}

and the other products (a⋅ba \cdot b, squares, products with ee, and the same products in the other order) lie in VV by a2=b2=ea^2 = b^2 = e and commutativity. A finite non-empty subset closed under the operation is a subgroup (Theorem 2.1.2), so VV is a subgroup of order 44.

By Theorem 5.2.1, 44 would divide 2p2p, so 22 would divide pp, which is false because pp is odd. So GG has an element of order pp. □

Exercise 5.11.

Let n=561=3⋅11⋅17n = 561 = 3 \cdot 11 \cdot 17. Show that a560≡1(mod561)a^{560} \equiv 1 \pmod{561} for every integer aa with gcd⁡(a,561)=1\gcd(a, 561) = 1. Conclude that the converse of Fermat’s little theorem is false: an integer n>1n > 1 with an−1≡1(modn)a^{n - 1} \equiv 1 \pmod n for every aa coprime to nn need not be prime.

Hint.

Work modulo 33, 1111 and 1717 separately, and compare 560560 with 22, 1010 and 1616.

Solution.

Fermat’s little theorem applies only to a prime modulus, so the plan is to use it modulo each prime factor of 561561 and then put the three congruences together.

Let gcd⁡(a,561)=1\gcd(a, 561) = 1. Then none of 33, 1111, 1717 divides aa, since each of them divides 561561. By Fermat’s little theorem (Theorem 5.2.4),

a2≡1(mod3),a10≡1(mod11),a16≡1(mod17).\begin{aligned} a^2 &\equiv 1 \pmod 3, \\ a^{10} &\equiv 1 \pmod{11}, \\ a^{16} &\equiv 1 \pmod{17}. \end{aligned}

Since 560=2⋅280=10⋅56=16⋅35560 = 2 \cdot 280 = 10 \cdot 56 = 16 \cdot 35, raising these to the powers 280280, 5656 and 3535 gives a560≡1a^{560} \equiv 1 modulo 33, modulo 1111 and modulo 1717. So m=a560−1m = a^{560} - 1 is divisible by 33, by 1111 and by 1717.

Then 561561 divides mm. Write m=3m′m = 3m'. Since 1111 divides 3m′3m' and gcd⁡(11,3)=1\gcd(11, 3) = 1, Theorem 2.3.3 gives that 1111 divides m′m', so m=33m′′m = 33m'' for an integer m′′m''. Since 1717 divides 33m′′33m'' and gcd⁡(17,33)=1\gcd(17, 33) = 1, it divides m′′m''. So 561=33⋅17561 = 33 \cdot 17 divides mm, that is, a560≡1(mod561)a^{560} \equiv 1 \pmod{561}.

So n=561n = 561 satisfies an−1≡1(modn)a^{n - 1} \equiv 1 \pmod n for every aa coprime to nn, yet 561=3⋅11⋅17561 = 3 \cdot 11 \cdot 17 is not prime. □