Unit 5: Cosets and Lagrange's theorem

Cutting a group into equal pieces

Every subgroup of the square's symmetry group had order 1, 2, 4 or 8, all divisors of 8. This unit explains why: a subgroup and its shifted copies tile the whole group, like bricks of equal size.

123456789101112
In this unit
  1. Cosets
  2. Cosets tile the group
  3. Lagrange's theorem and index 2
  4. Consequences
  5. Fermat and Euler
  6. The converse fails
  7. Practice set
  8. Summary and glossary

Cosets

In \(\mathbb Z/12\), the subgroup \(\langle 4\rangle = \{0, 4, 8\}\) is a triangle on the clock. Add 1 to each of its elements and you get \(\{1, 5, 9\}\): the same triangle, turned by an hour. Adding 2 gives \(\{2, 6, 10\}\), and adding 3 gives \(\{3, 7, 11\}\). Adding 4 gives back \(\{4, 8, 0\}\), the subgroup itself.

The cosets of ⟨4⟩ in the integers mod 12A clock face with the numbers 0 to 11, split into four triangles of different colours. Green: 0, 4, 8, the subgroup ⟨4⟩ itself. Red: 1, 5, 9. Violet: 2, 6, 10. Blue: 3, 7, 11. Each triangle is the previous one turned by one hour.01234567891011
The cosets of \(\langle 4\rangle\) in \(\mathbb Z/12\). Four shifted copies of the subgroup, all the same size. No number lies in two triangles, and none is left over.

These shifted copies are called cosets.

Definition

Let \(H\) be a subgroup of \(G\) and \(g\) an element of \(G\). The left coset of \(H\) containing \(g\) is

\[ gH = \{gh : h \in H\}. \]

The right coset is \(Hg = \{hg : h \in H\}\). In additive notation, the left coset is written \(g + H\).

Here is the same idea in \(D_3\). The left coset \(gH\) consists of everything you can reach from \(g\) by multiplying on the right by elements of \(H\). In a Cayley diagram, where arrows multiply on the right, that means following the arrows or lines of \(H\)'s generators:

Cosets in the Cayley diagram of \(D_3\). Left: the cosets of the rotations \(\langle r\rangle\) are the two triangles of green arrows. Right: the cosets of \(\langle s\rangle = \{e, s\}\) are the three pairs joined by red lines.

Left and right cosets can differ. In \(D_3\), the left coset \(r\langle s\rangle = \{r, rs\}\), but the right coset \(\langle s\rangle r = \{r, sr\} = \{r, r^2s\}\). Right cosets don't show up in the Cayley diagram: \(r\) and \(r^2s\) are not joined by a red line, because the diagram's arrows multiply on the right. In an abelian group left and right cosets always agree, since \(gh = hg\).

Cosets make sense in infinite groups too. In \(\mathbb Z\), the cosets of \(3\mathbb Z\) are the three remainder classes: the multiples of 3, the numbers leaving remainder 1, and those leaving remainder 2. They are exactly the elements of \(\mathbb Z/3\), seen as sets.

The cosets of 3Z in the integersThe integers from −3 to 8 on a line, coloured in a repeating pattern of three: multiples of 3 green, numbers leaving remainder 1 red, remainder 2 violet. A key below names the three colours 3ℤ, 1 + 3ℤ and 2 + 3ℤ.-3-2-10123456783ℤ1 + 3ℤ2 + 3ℤ
The cosets of \(3\mathbb Z\) in \(\mathbb Z\). Infinitely many integers, but only three cosets: \(3\mathbb Z\), \(1 + 3\mathbb Z\) and \(2 + 3\mathbb Z\).

Cosets tile the group

The pictures show three features. Every element lies in some coset; two cosets are either identical or don't overlap at all; and all the cosets have the same size. Here are the proofs.

Theorem

Let \(H \le G\). Then:

  1. \(g \in gH\), so every element lies in a coset.
  2. \(aH = bH\) exactly when \(a^{-1}b \in H\).
  3. Two left cosets are either equal or disjoint.
  4. Every left coset has the same number of elements as \(H\).
Proofs

1. \(g = ge\), and \(e \in H\).

2. If \(aH = bH\), then \(b = be \in bH = aH\), so \(b = ah\) for some \(h \in H\), and \(a^{-1}b = h \in H\). Conversely, if \(a^{-1}b = h \in H\), then \(b = ah\), so every element \(bh'\) of \(bH\) equals \(a(hh')\), which lies in \(aH\); so \(bH \subseteq aH\). Similarly \(a = bh^{-1}\), so \(aH \subseteq bH\). Hence \(aH = bH\).

3. Suppose \(aH\) and \(bH\) share an element \(c\). Since \(c \in aH\), \(c = ah_1\) for some \(h_1 \in H\), so \(a^{-1}c \in H\) and \(aH = cH\) by part 2. Likewise \(bH = cH\). So \(aH = bH\).

4. The rule \(h \mapsto gh\) sends \(H\) onto \(gH\). It is one to one: if \(gh_1 = gh_2\), cancelling \(g\) gives \(h_1 = h_2\). So \(H\) and \(gH\) have the same number of elements. ∎

Part 2 says something useful in practice: a coset can be named by any of its elements. In \(\mathbb Z/12\), \(1 + \langle 4\rangle\), \(5 + \langle 4\rangle\) and \(9 + \langle 4\rangle\) are the same coset.

Lagrange's theorem

The number of distinct left cosets of \(H\) in \(G\) is called the index of \(H\), written \([G : H]\). The cosets of \(\langle 4\rangle\) in \(\mathbb Z/12\) are four bricks of size 3, and \(4 \times 3 = 12\). In general:

Lagrange's theorem

If \(G\) is a finite group and \(H\) is a subgroup, then \(|H|\) divides \(|G|\). More precisely,

\[ |G| = [G : H] \cdot |H|. \]
Proof

The left cosets of \(H\) cover \(G\) (part 1), don't overlap (part 3), and each has \(|H|\) elements (part 4). There are \([G : H]\) of them, so counting the elements of \(G\) coset by coset gives \(|G| = [G : H] \cdot |H|\). ∎

Right cosets work just as well, so there are also \([G:H]\) right cosets, even when they differ from the left ones. (For right cosets, the test in part 2 becomes \(Ha = Hb\) exactly when \(ab^{-1} \in H\).)

Subgroups of index 2

When \([G : H] = 2\), something special happens. There are just two left cosets: \(H\) itself, and everything else. The same is true of right cosets. So for \(g \notin H\), both \(gH\) and \(Hg\) are "everything outside \(H\)", and \(gH = Hg\). For a subgroup of index 2, left and right cosets agree.

That explains \(D_3\): the rotations \(\langle r\rangle\) have index 2, and their cosets are the rotations and the flips, from either side. The subgroup \(\langle s\rangle\) has index 3, and its left and right cosets differ. Sort the Cayley table by the cosets of \(\langle r\rangle\) and it falls into blocks:

The Cayley table of D3, cut along the cosets of the rotationsThe Cayley table of D3 with rows and columns e, r, r², s, rs, r²s. Thick lines cut it into four 3 by 3 blocks, separating the rotations e, r, r² from the flips s, rs, r²s. The top left and bottom right blocks contain only rotations; the other two contain only flips.∘eerrr²r²ssrsrsr²sr²serr²srsr²srr²ersr²ssr²err²ssrssr²srser²rrssr²srer²r²srssr²re
The Cayley table of \(D_3\), cut along the cosets of \(\langle r\rangle\). Each block is all rotations or all flips. So the cosets themselves can be multiplied: rotations times flips are flips, flips times flips are rotations. Unit 7 turns this into a new group.

Subgroups whose left and right cosets agree are called normal. They are the subject of Unit 7.

Consequences

Lagrange's theorem is short, but it has a long reach.

Corollaries

Let \(G\) be a finite group of order \(n\).

  1. The order of every element divides \(n\).
  2. \(g^n = e\) for every \(g \in G\).
  3. If \(n = p\) is prime, then \(G\) is cyclic, generated by any element other than \(e\).
Proofs

1. \(\operatorname{ord}(g) = |\langle g\rangle|\) (Unit 3), and \(\langle g\rangle\) is a subgroup, so its order divides \(n\).

2. Write \(n = \operatorname{ord}(g) \cdot m\). Then \(g^n = (g^{\operatorname{ord}(g)})^m = e^m = e\).

3. Take \(g \neq e\). Its order divides \(p\) and isn't 1, so it is \(p\). Then \(\langle g\rangle\) has \(p\) elements: it is all of \(G\). ∎

So, up to renaming, there is only one group of each prime order: \(\mathbb Z/p\), since there is one cyclic group of each order (Unit 3). With a little more work we can list the groups of order 4. Every element has order 1, 2 or 4. If some element has order 4, it generates the group, which is then cyclic. If not, every element squares to \(e\), and Unit 2 showed that the table is then forced: it is the Klein four-group. These two really are different (Unit 2), so up to renaming there are exactly two groups of order 4.

Lagrange's theorem is also a quick way to rule things out. \(D_4\) can't have a subgroup of order 3, and no element of a group of order 10 can have order 4.

Fermat and Euler

Apply corollary 2 to the group \(U(n)\), of order \(\varphi(n)\), and an old theorem of number theory falls out.

Euler's theorem

If \(n \ge 2\) and \(\gcd(a, n) = 1\), then \(a^{\varphi(n)} \equiv 1 \pmod n\).

Fermat's little theorem

If \(p\) is prime and \(p\) does not divide \(a\), then \(a^{p-1} \equiv 1 \pmod p\).

Proof

The remainder of \(a\) on division by \(n\) lies in \(U(n)\), a group of order \(\varphi(n)\). By corollary 2, its \(\varphi(n)\)-th power in \(U(n)\) is the identity 1. Since \(U(n)\) multiplies by taking remainders, that power is the remainder of the ordinary integer \(a^{\varphi(n)}\), so \(a^{\varphi(n)} \equiv 1 \pmod n\). Fermat's theorem is the case \(n = p\), where \(\varphi(p) = p - 1\). ∎

Example: huge powers

What is the remainder of \(3^{100}\) on division by 7? By Fermat, \(3^6 \equiv 1 \pmod 7\). Since \(100 = 6 \cdot 16 + 4\), we get \(3^{100} = (3^6)^{16} \cdot 3^4 \equiv 3^4 = 81 \equiv 4 \pmod 7\).

Fermat stated his theorem in 1640 without proof; Euler proved it in 1736 and generalised it in 1763. Euler's theorem, for \(n = pq\) a product of two large primes, is why decryption works in RSA (Rivest, Shamir and Adleman, 1977), which has secured internet traffic since the 1990s and still signs many website certificates.

The converse fails

Lagrange says the order of a subgroup must divide \(|G|\). Must every divisor occur? For cyclic groups, yes (Unit 3). In general, no.

Theorem

The alternating group \(A_4\), of order 12, has no subgroup of order 6.

Proof

Suppose \(H \le A_4\) has order 6. Its index is \(12/6 = 2\): there are just two left cosets. Take any 3-cycle \(g\) in \(A_4\) and look at the three cosets \(H\), \(gH\) and \(g^2H\). Only two cosets exist, so two of these are equal. By part 2 of the coset theorem, that means \(g\), \(g^2\) or \(g^{-1}g^2 = g\) lies in \(H\). If \(g^2 \in H\), then so is \((g^2)^2 = g^4 = g\). Either way, \(g \in H\).

So \(H\) contains every 3-cycle in \(A_4\). There are eight of them (Unit 4), plus \(e\): at least nine elements, too many for a group of order 6. ∎

In fact the subgroups of \(A_4\) have orders 1, 2, 3, 4 and 12. The one of order 4 is a Klein four-group: \(e\) and the three double transpositions.

Partial converses do hold. Cauchy's theorem (Unit 11) says that if a prime \(p\) divides \(|G|\), then \(G\) has an element of order \(p\). The Sylow theorems go further, for prime powers.

Going deeper: Lagrange as a counting principle

Lagrange's theorem is really a statement about counting a set by splitting it into equal pieces. The same idea, splitting a set into pieces called orbits that need not be equal, drives Units 8 and 9. There the formula becomes \(|G| = |\text{orbit}| \cdot |\text{stabiliser}|\), and Lagrange's theorem is the special case where \(G\) acts on the cosets of \(H\).

History

Lagrange never stated the theorem now named after him. In 1770, studying polynomial equations, he showed that the number of different values a function of \(n\) variables takes when the variables are permuted divides \(n!\). In modern terms, the permutations that leave the function unchanged form a subgroup of \(S_n\), and the number of values is its index; his proof treated only special cases, and Abbati completed it in 1802. Cauchy proved the theorem for all subgroups of \(S_n\) in 1844, Jordan for permutation groups in 1861, and the abstract version appeared with Hölder (1889) and Weber (1896). Earlier still, around 1758, Euler had used essentially the coset argument to show that the order of \(a\) mod \(p\) divides \(p - 1\).

Practice set

Mixed questions covering the whole unit. Try each one before opening the answer.

1. List the cosets of \(\langle 6\rangle\) in \(\mathbb Z/18\). What is the index?

Show answer

\(\langle 6\rangle = \{0, 6, 12\}\). Its cosets are \(k + \langle 6\rangle = \{k, k + 6, k + 12\}\) for \(k = 0, 1, \ldots, 5\): six cosets of size 3. The index is \(18/3 = 6\).

2. In \(D_3\), list the left cosets and the right cosets of \(\langle s\rangle\). Which left cosets are also right cosets?

Show answer

Left: \(\{e, s\}\), \(r\langle s\rangle = \{r, rs\}\), \(r^2\langle s\rangle = \{r^2, r^2s\}\). Right: \(\{e, s\}\), \(\langle s\rangle r = \{r, sr\} = \{r, r^2s\}\), \(\langle s\rangle r^2 = \{r^2, sr^2\} = \{r^2, rs\}\). Only \(\langle s\rangle\) itself is both.

3. A group has order 35. What are the possible orders of its elements? Of its subgroups?

Show answer

Both must divide 35: they can only be 1, 5, 7 or 35. (Lagrange doesn't say all of these occur. In fact every group of order 35 is cyclic, as Unit 11 will show, so all four orders occur.)

4. Find the last digit of \(7^{2026}\).

Show answer

The last digit is the remainder mod 10. \(\gcd(7, 10) = 1\) and \(\varphi(10) = 4\), so \(7^4 \equiv 1 \pmod{10}\) by Euler. Since \(2026 = 4 \cdot 506 + 2\), \(7^{2026} \equiv 7^2 = 49 \equiv 9\). The last digit is 9.

5. In \(D_3\), use the test \(Ha = Hb \iff ab^{-1} \in H\) to decide whether \(\langle s\rangle r = \langle s\rangle rs\).

Show answer

\(ab^{-1} = r(rs)^{-1} = r\,rs = r^2s\), since \(rs\) is its own inverse. That is not in \(\langle s\rangle = \{e, s\}\), so the right cosets differ. Check: \(\langle s\rangle r = \{r, r^2s\}\) and \(\langle s\rangle rs = \{rs, srs\} = \{rs, r^2\}\). (The left cosets \(r\langle s\rangle\) and \(rs\langle s\rangle\), on the other hand, are both \(\{r, rs\}\).)

6. Let \(H\) and \(K\) be subgroups of a finite group with \(|H| = 4\) and \(|K| = 9\). Show that \(H \cap K = \{e\}\).

Show answer

\(H \cap K\) is a subgroup of both \(H\) and \(K\) (Unit 3), so by Lagrange its order divides both 4 and 9. The only such number is 1.

Summary and glossary

  1. The left cosets \(gH\) of a subgroup are its shifted copies; \(aH = bH\) exactly when \(a^{-1}b \in H\).
  2. The cosets tile \(G\): they cover it, don't overlap, and all have \(|H|\) elements.
  3. Lagrange: \(|G| = [G:H]\,|H|\), so subgroup orders and element orders divide \(|G|\), and \(g^{|G|} = e\).
  4. For a subgroup of index 2, left and right cosets agree. Groups of prime order are cyclic; there are two groups of order 4. Fermat's and Euler's theorems are Lagrange in \(U(n)\).
  5. The converse fails: \(A_4\) has order 12 but no subgroup of order 6.
Left coset
\(gH = \{gh : h \in H\}\).
Right coset
\(Hg = \{hg : h \in H\}\).
Index \([G:H]\)
The number of left cosets of \(H\) in \(G\).
Lagrange's theorem
For finite \(G\), \(|H|\) divides \(|G|\); indeed \(|G| = [G:H]\,|H|\).
Fermat's little theorem
\(a^{p-1} \equiv 1 \pmod p\) for a prime \(p\) not dividing \(a\).
Euler's theorem
\(a^{\varphi(n)} \equiv 1 \pmod n\) when \(\gcd(a, n) = 1\).
Powered by Webloyt | Report abuse