Survey of Mathematics

3.9 Groups, rings and fields: a preview built from what you know

Take the axiom idea of 2.1 and apply it to a single operation, and you get a group. Cosets give Lagrange's theorem, that the size of a subgroup divides the size of the group. A second operation gives a ring, and a ring in which every non-zero element can be divided by is a field, such as the integers mod a prime. Fields are the scalars that vector spaces always needed.

Beyond the courseJudson, Abstract Algebra: Theory and Applications (free online; the chapters on groups, cosets and Lagrange's theorem, homomorphisms, rings and fields)Dummit and Foote, Abstract Algebra (not free; the usual text for a first course)Axler, Linear Algebra Done Right, chapter 1 (fields as scalars)MATH 541 (reference)

Chapter 2.1 asked what rules addition and scaling must obey for linear algebra to work, and answered with ten axioms. Here is the same question for one operation at a time. The integers under ++, the non-zero reals under ×\times, the rotations of a plane under “do one, then the other”, the invertible matrices under multiplication and the permutations of a list under composition are different objects with one shared shape: two elements combine to give a third, there is an element that does nothing, and every element can be undone. The list of rules that captures this shape is called a group. This chapter is a preview of the first weeks of MATH 541, built from things you already know. It defines groups, proves one theorem with real content (Lagrange’s), looks at maps between groups, then adds a second operation to reach rings, and division to reach fields: the number systems from which vector spaces always secretly drew their scalars.

Before you start

0.5 (inverses mod nn, Euclid and Bézout), 0.4 and 3.7 (cosets and partitions), and 2.5 (matrix multiplication). Three quick checks.

Quick checkWhich of 44, 55, 33 has an inverse mod 1010?
Quick checkIn R2\mathbb R^2 let UU be the xx-axis. Which coset equals (2,3)+U(2, 3) + U?
Quick checkFor A=[1101]A = \begin{bmatrix}1&1\\0&1\end{bmatrix} and B=[1011]B = \begin{bmatrix}1&0\\1&1\end{bmatrix}, is AB=BAAB = BA?

The picture

Here is the addition table of the integers mod 44: the entry in row aa and column bb is a+b mod 4a + b \bmod 4.

++0123
00123
11230
22301
33012

Now think of the four rotations of a square that map it to itself, by 0∘,90∘,180∘,270∘0^\circ, 90^\circ, 180^\circ, 270^\circ, with ”aa then bb” as the operation. Rotating by 90∘90^\circ and then 180∘180^\circ gives 270∘270^\circ, in the same way that 1+2=31 + 2 = 3. Or take the four complex numbers 1,i,−1,−i1, i, -1, -i under multiplication: i⋅(−1)=−ii \cdot (-1) = -i, matching 1+2=31 + 2 = 3 again once you read kk as iki^k. Three different objects (remainders, rotations, complex numbers), one table, up to renaming. That sameness of structure is what a group captures.

Here is a second table with four elements: the multiplication table of {1,3,5,7}\{1, 3, 5, 7\} mod 88.

×\times mod 81357
11357
33175
55713
77531

Both tables share a feature. Every row and every column contains every element exactly once, which says that you can always solve "a∗x=ba \ast x = b" for xx in exactly one way: every move can be undone. But the tables have different structure. In the second, every element multiplied by itself gives 11 (the diagonal is all 11s). In the first, 1+1=2≠01 + 1 = 2 \ne 0. Same size, different groups. The rest of the chapter says exactly what “the same structure” means, and what follows from a few rules.

Where this came from· Lagrange, Galois and Cayley: from equations to groups

Joseph-Louis Lagrange (memoir of 1770–71) asked why the formulas for cubic and quartic equations work, and why nobody could find one for the quintic. He studied how many different values an expression in the roots takes when the roots are permuted, and stated that for nn roots this number always divides n!n!. That is the seed of the theorem that carries his name; the statement for subgroups of an abstract group, and its proof by cosets, came later. Évariste Galois, around 1830 to 1832, attached to each equation the group of permutations of its roots and showed that solvability by radicals is a property of that group. He died in a duel in 1832 at the age of twenty, and Joseph Liouville published his papers in 1846. Arthur Cayley, in 1854, was among the first to define an abstract group: a set with a multiplication table obeying the rules, whatever its elements are. That is the definition below.

The idea, in words

Why· A group is a family of reversible moves

In 2.1 you listed the properties that all vector spaces share, and theorems proved from the list held everywhere at once. A group is the same move for one operation. Think of each element as a move that changes something: a rotation, a swap of two cards, adding 33 on a clock. Two moves in a row make a move (the operation). Doing nothing is a move (the identity). Every move can be reversed (inverses). And the order in which three moves are grouped does not change what happens overall (associativity). Nothing is said about whether doing aa then bb equals doing bb then aa, because for rotations of a cube and shuffles of a deck it does not.

These four rules are enough to prove that the identity is unique, that every move has exactly one reverse, that you can cancel, and that every equation ax=bax = b has exactly one solution. They also give a counting theorem, Lagrange’s, which restricts what groups of a given size can contain.

Groups

Definition B

Group

A group is a set GG together with an operation ∗\ast, a rule that takes any two elements a,b∈Ga, b \in G to an element a∗ba \ast b that is again in GG (so GG is closed under the operation), such that:

  1. Associative. (a∗b)∗c=a∗(b∗c)(a \ast b) \ast c = a \ast (b \ast c) for all a,b,c∈Ga, b, c \in G.
  2. Identity. There is an element e∈Ge \in G with e∗a=a∗e=ae \ast a = a \ast e = a for all a∈Ga \in G.
  3. Inverses. For every a∈Ga \in G there is a−1∈Ga^{-1} \in G with a∗a−1=a−1∗a=ea \ast a^{-1} = a^{-1} \ast a = e.

We usually drop the symbol and write abab. In additive groups we write a+ba + b, the identity 00 and the inverse −a-a. The number of elements of GG is its order ∣G∣\lvert G\rvert; it may be infinite.

In one lineA set G with an operation that combines any two elements into one, such that: the operation is associative, there is an identity element, and every element has an inverse.

Why it existsIt is the minimal list of rules for a set of reversible moves, and it covers numbers, matrices, permutations and symmetries at once.

Definition B

Abelian group

A group is abelian (after Niels Henrik Abel) if ab=baab = ba for all a,b∈Ga, b \in G. A vector space (V,+)(V, +) is an abelian group: the axioms of 2.1 that mention only addition (closure, associativity, commutativity, the zero vector, negatives) are exactly the abelian group axioms. The scalar-multiplication axioms are extra.

In one lineA group in which ab = ba for all a and b.

Why it existsMost number systems are abelian, but symmetry groups and matrix groups are not, and the difference shapes every theorem.

Here are the examples you already know, each with its identity and inverse.

GroupElementsOperationIdentityInverse of aaAbelian?
(Z,+)(\mathbb Z, +)integersaddition00−a-ayes
(R∖{0},×)(\mathbb R \setminus \{0\}, \times)non-zero realsmultiplication111/a1/ayes
(Zn,+)(\mathbb Z_n, +)residue classes mod nn (0.5)addition[0][0][−a][-a]yes
(Zn×,×)(\mathbb Z_n^{\times}, \times)classes with gcd⁡(a,n)=1\gcd(a, n) = 1 (0.5)multiplication[1][1]a−1a^{-1} mod nnyes
GLn(R)\mathrm{GL}_n(\mathbb R)invertible n×nn \times n matricesmatrix productIIA−1A^{-1}no, for n≥2n \ge 2
SO(2)\mathrm{SO}(2), SO(3)\mathrm{SO}(3)rotation matrices (3.3)matrix productIIQTQ^{\mathsf T}SO(2)\mathrm{SO}(2) yes, SO(3)\mathrm{SO}(3) no
SnS_npermutations of {1,…,n}\{1, \dots, n\} (2.7)compositionthe identity mapthe inverse functionno, for n≥3n \ge 3

Why each is a group. For GLn\mathrm{GL}_n, the product of invertible matrices is invertible, since (AB)−1=B−1A−1(AB)^{-1} = B^{-1}A^{-1} (2.4); matrix multiplication is associative (2.5); II is the identity; inverses exist by definition. For SO(n)\mathrm{SO}(n), the orthogonal matrices with determinant 11 (3.3): if PTP=IP^{\mathsf T}P = I and QTQ=IQ^{\mathsf T}Q = I then (PQ)T(PQ)=QTPTPQ=QTQ=I(PQ)^{\mathsf T}(PQ) = Q^{\mathsf T}P^{\mathsf T}PQ = Q^{\mathsf T}Q = I and det⁡(PQ)=det⁡Pdet⁡Q=1\det(PQ) = \det P\det Q = 1; the inverse of QQ is QTQ^{\mathsf T}, also orthogonal with determinant 11. For SnS_n, a composition of bijections is a bijection, composition of functions is associative, and a bijection has an inverse function (0.3). For Zn×\mathbb Z_n^\times, 0.5 shows that arithmetic respects congruence, that a product of invertible classes is invertible, and that gcd⁡(a,n)=1\gcd(a, n) = 1 is exactly the condition for an inverse. The group S3S_3 has 3!=63! = 6 elements and is the smallest non-abelian group.

Quick checkWhich of these is a group?
Worked example
Which of these are groups? (a) ({1,3,5,7},× mod 8)(\{1, 3, 5, 7\}, \times \bmod 8) (b) (Z6∖{0},× mod 6)(\mathbb Z_6\setminus\{0\}, \times \bmod 6) (c) (Z,−)(\mathbb Z, -) (d) (Q>0,×)(\mathbb Q_{>0}, \times)

Solution.

  1. (a) Closure, identity, inverses. The table in the picture has only entries from {1,3,5,7}\{1, 3, 5, 7\}, so the set is closed. The identity is 11. Every row contains a 11, so every element has an inverse (in fact each is its own inverse). Associativity holds because it holds for ordinary multiplication. A finite table lets us check closure and inverses by looking.
  2. (b) Closure fails. [2]⋅[3]=[6]=[0][2] \cdot [3] = [6] = [0], which is not in the set. The set is not closed. Also [2][2] has no inverse, since gcd⁡(2,6)=2\gcd(2, 6) = 2. Either failure is enough.
  3. (c) Associativity fails. (5−3)−1=1(5 - 3) - 1 = 1 but 5−(3−1)=35 - (3 - 1) = 3. A single instance that breaks an axiom disproves it. There is also no identity: a−e=aa - e = a forces e=0e = 0, but e−a=ae - a = a would need a=0a = 0.
  4. (d) Positive rationals. The product and the quotient of positive rationals are positive rationals, 11 is the identity, and the inverse of p/qp/q is q/pq/p. Associativity is that of multiplication. All three conditions hold, so it is a group (abelian).

Answer. (a) and (d) are groups; (b) and (c) are not.

What the rules force

Exactly as in 2.1, where the axioms gave unique zero vectors and unique negatives, the four group rules already give several facts that hold in every group.

Theorem B standard; Judson and Dummit and Foote, the opening group chapters

Consequences of the group axioms

Let GG be a group and a,b,c∈Ga, b, c \in G.

  1. The identity ee is unique.
  2. The inverse of aa is unique.
  3. (ab)−1=b−1a−1(ab)^{-1} = b^{-1}a^{-1}.
  4. If ab=acab = ac then b=cb = c. If ba=caba = ca then b=cb = c.
  5. The equation ax=bax = b has exactly one solution, x=a−1bx = a^{-1}b.

In one lineIn any group: the identity is unique; each element has exactly one inverse; (ab)⁻¹ = b⁻¹a⁻¹; ab = ac implies b = c (and ba = ca implies b = c); and ax = b has the unique solution x = a⁻¹b.

Why it is trueEach fact is the proof of the matching fact in 2.1 (unique zero vector, unique negative), written for a non-commutative operation. The key is to multiply by an inverse on the correct side.

Proofstandard
The idea: Each statement is proved by writing the element in two ways and using associativity. The most important idea: to undo an element, multiply by its inverse, on the same side.
So e=ee′=e′e = ee' = e'. The identity is unique.
(1) If ee and e′e' are both identities, compute ee′ee' in two ways. As e′e' is an identity, ee′=eee' = e. As ee is an identity, ee′=e′ee' = e'.
b=be=b(ac)=(ba)c=ec=cb = be = b(ac) = (ba)c = ec = c. The inverse is unique.
(2) Suppose bb and cc are both inverses of aa, so ab=ba=eab = ba = e and ac=ca=eac = ca = e. Use b=beb = be, then e=ace = ac, then associativity, then ba=eba = e.
(ab)(b−1a−1)=a(bb−1)a−1=aea−1=aa−1=e(ab)(b^{-1}a^{-1}) = a(bb^{-1})a^{-1} = aea^{-1} = aa^{-1} = e, and in the same way (b−1a−1)(ab)=e(b^{-1}a^{-1})(ab) = e.
(3) The inverse is unique by (2), so it is enough to show that b−1a−1b^{-1}a^{-1} behaves as an inverse of abab on both sides.
So (ab)−1=b−1a−1(ab)^{-1} = b^{-1}a^{-1}.
Order is reversed, as when you take off shoes and socks: undo the last move first. Compare the rule (AB)−1=B−1A−1(AB)^{-1} = B^{-1}A^{-1} for matrices, which is the case G=GLnG = \mathrm{GL}_n.
b=(a−1a)b=a−1(ab)=a−1(ac)=(a−1a)c=cb = (a^{-1}a)b = a^{-1}(ab) = a^{-1}(ac) = (a^{-1}a)c = c. The case ba=caba = ca is the same with multiplication on the right.
(4) Multiply ab=acab = ac on the left by a−1a^{-1} and use associativity.
a(a−1b)=(aa−1)b=ba(a^{-1}b) = (aa^{-1})b = b, so x=a−1bx = a^{-1}b works; if ax=bax = b then x=a−1(ax)=a−1bx = a^{-1}(ax) = a^{-1}b.
(5) Existence: substitute. Uniqueness: multiply ax=bax = b on the left by a−1a^{-1}. ■\blacksquare
Quick checkIn a group, which of these is always equal to (ab)−1(ab)^{-1}?
Worked example
In GL2(R)\mathrm{GL}_2(\mathbb R) with A=[1101]A = \begin{bmatrix}1&1\\0&1\end{bmatrix} and B=[1011]B = \begin{bmatrix}1&0\\1&1\end{bmatrix}, show that AB≠BAAB \ne BA and that (AB)−1=B−1A−1(AB)^{-1} = B^{-1}A^{-1} but not A−1B−1A^{-1}B^{-1}. Then show that S3S_3 is non-abelian.

Solution.

  1. Multiply both ways. AB=[2111]AB = \begin{bmatrix}2&1\\1&1\end{bmatrix} and BA=[1112]BA = \begin{bmatrix}1&1\\1&2\end{bmatrix}. Row times column. The two products differ, so GL2\mathrm{GL}_2 is not abelian.
  2. Inverses of the factors. A−1=[1−101]A^{-1} = \begin{bmatrix}1&-1\\0&1\end{bmatrix} and B−1=[10−11]B^{-1} = \begin{bmatrix}1&0\\-1&1\end{bmatrix}. Undo the shear: use the 2×22\times2 inverse formula from 2.5, with determinant 11.
  3. Inverse of the product. det⁡(AB)=1\det(AB) = 1, so (AB)−1=[1−1−12](AB)^{-1} = \begin{bmatrix}1&-1\\-1&2\end{bmatrix}. The 2×22\times2 inverse formula applied to ABAB.
  4. Compare with the two candidates. B−1A−1=[10−11][1−101]=[1−1−12]B^{-1}A^{-1} = \begin{bmatrix}1&0\\-1&1\end{bmatrix}\begin{bmatrix}1&-1\\0&1\end{bmatrix} = \begin{bmatrix}1&-1\\-1&2\end{bmatrix}, which is (AB)−1(AB)^{-1}. But A−1B−1=[2−1−11]A^{-1}B^{-1} = \begin{bmatrix}2&-1\\-1&1\end{bmatrix} is not. The reversed order is the correct one.
  5. S3S_3. Write a permutation as the list (σ(1),σ(2),σ(3))(\sigma(1), \sigma(2), \sigma(3)) and compose as (σ∘τ)(i)=σ(τ(i))(\sigma\circ\tau)(i) = \sigma(\tau(i)). Let σ=(2,1,3)\sigma = (2, 1, 3) (swap 1,21, 2) and τ=(1,3,2)\tau = (1, 3, 2) (swap 2,32, 3). Then σ∘τ=(2,3,1)\sigma\circ\tau = (2, 3, 1), since 1↦1↦21 \mapsto 1 \mapsto 2, 2↦3↦32 \mapsto 3 \mapsto 3, 3↦2↦13 \mapsto 2 \mapsto 1. And τ∘σ=(3,1,2)\tau\circ\sigma = (3, 1, 2), since 1↦2↦31 \mapsto 2 \mapsto 3, 2↦1↦12 \mapsto 1 \mapsto 1, 3↦3↦23 \mapsto 3 \mapsto 2. The two compositions differ: swapping cards 1,2 then 2,3 gives a different arrangement from swapping 2,3 then 1,2.

Answer. GL2(R)\mathrm{GL}_2(\mathbb R) and S3S_3 are non-abelian, and (AB)−1=B−1A−1(AB)^{-1} = B^{-1}A^{-1} with the order reversed.

Subgroups and orders of elements

Definition B

Subgroup

A subset HH of a group GG is a subgroup, written H≤GH \le G, if HH is a group under the operation of GG: it contains the identity of GG, it is closed under the operation, and it contains h−1h^{-1} for every h∈Hh \in H. Examples: nZ≤Zn\mathbb Z \le \mathbb Z (the multiples of nn); the four rotations by multiples of 90∘90^\circ in SO(2)\mathrm{SO}(2); SLn(R)≤GLn(R)\mathrm{SL}_n(\mathbb R) \le \mathrm{GL}_n(\mathbb R), the matrices of determinant 11. Non-examples: the odd integers (no 00, and not closed under ++), N⊂Z\mathbb N \subset \mathbb Z (no negatives), and {0,1,…,n−1}\{0, 1, \dots, n-1\} is not a subgroup of Z\mathbb Z (not closed under addition: the group Zn\mathbb Z_n is not a part of Z\mathbb Z).

In one lineA subset H of a group G that is itself a group under the same operation.

Why it existsSubgroups are the parts of a group that are closed under combining and undoing, and Lagrange's theorem is about their sizes.

Proposition B standard; Judson, the group chapters

Subgroup test

Let HH be a non-empty subset of a group GG. If ab−1∈Hab^{-1} \in H for all a,b∈Ha, b \in H, then H≤GH \le G.

In one lineA non-empty subset H of a group G is a subgroup as soon as ab⁻¹ is in H whenever a and b are in H.

Why it is trueTaking a = b gives the identity, then b = identity gives inverses, then replacing b by its inverse gives products. The associative law is inherited from G.

Proofstandard
The idea: Use the one condition three times, with well-chosen elements, to get identity, inverses, and closure.
e=aa−1∈He = aa^{-1} \in H.
HH is non-empty, so pick some a∈Ha \in H. Apply the condition to aa and aa.
b−1=eb−1∈Hb^{-1} = eb^{-1} \in H.
Apply the condition to ee and bb, for any b∈Hb \in H.
ab=a(b−1)−1∈Hab = a(b^{-1})^{-1} \in H, so HH is closed under the operation.
Apply the condition to aa and b−1b^{-1} (which is in HH by the last step), using (b−1)−1=b(b^{-1})^{-1} = b.
So HH is a group.
Associativity holds for all elements of GG, so for those in HH. ■\blacksquare
Worked example
Which are subgroups of GL2(R)\mathrm{GL}_2(\mathbb R): (a) H1={A:det⁡A=1}H_1 = \{A : \det A = 1\}, (b) H2={A:det⁡A=±1}H_2 = \{A : \det A = \pm1\}, (c) H3={A:det⁡A=2}H_3 = \{A : \det A = 2\}? Also: is E={…,−4,−2,0,2,4,…}E = \{\ldots, -4, -2, 0, 2, 4, \ldots\} a subgroup of (Z,+)(\mathbb Z, +)?

Solution.

  1. (a) Apply the subgroup test. H1H_1 is not empty (II). If det⁡A=det⁡B=1\det A = \det B = 1 then det⁡(AB−1)=det⁡A⋅(det⁡B)−1=1\det(AB^{-1}) = \det A \cdot (\det B)^{-1} = 1. The product rule for determinants (2.7) and det⁡B−1=1/det⁡B\det B^{-1} = 1/\det B.
  2. (b) Same. If det⁡A,det⁡B∈{1,−1}\det A, \det B \in \{1, -1\} then det⁡(AB−1)=det⁡A/det⁡B∈{1,−1}\det(AB^{-1}) = \det A/\det B \in \{1, -1\}. A quotient of two numbers each equal to ±1\pm1 is ±1\pm1.
  3. (c) Fails. II has determinant 1≠21 \ne 2, so I∉H3I \notin H_3. A subgroup contains the identity. (Also det⁡(AB)=4≠2\det(AB) = 4 \ne 2 for A,B∈H3A, B \in H_3: not closed.)
  4. The even integers. The condition becomes a−b∈Ea - b \in E for a,b∈Ea, b \in E (additive notation), and the difference of two even numbers is even. In additive notation ab−1ab^{-1} reads a+(−b)=a−ba + (-b) = a - b.

Answer. H1H_1 and H2H_2 are subgroups; H3H_3 is not; E≤ZE \le \mathbb Z.

Definition B

Order of an element

For g∈Gg \in G write gk=g⋯gg^k = g \cdots g (kk factors), g0=eg^0 = e and g−k=(g−1)kg^{-k} = (g^{-1})^k. The order of gg, ord⁡(g)\operatorname{ord}(g), is the smallest k≥1k \ge 1 such that gk=eg^k = e. In an additive group the condition is g+⋯+g=k⋅g=0g + \dots + g = k\cdot g = 0. The subgroup generated by gg is ⟨g⟩={gm:m∈Z}\langle g\rangle = \{g^m : m \in \mathbb Z\}. A group GG is cyclic if G=⟨g⟩G = \langle g\rangle for some gg, which is then called a generator.

In one lineThe order of g is the smallest k ≥ 1 with gᵏ = e (in additive notation k·g = 0), or infinity if there is none.

Why it existsIt measures how many steps it takes to come back to the start by repeating one move, and it is the size of the subgroup generated by g.

Theorem B standard; Judson, the cyclic groups chapter

A repeated move has as many positions as its order

If ord⁡(g)=k<∞\operatorname{ord}(g) = k < \infty, then ⟨g⟩\langle g\rangle is a subgroup of GG with exactly kk elements, namely e,g,…,gk−1e, g, \dots, g^{k-1}, and gm=e  ⟺  k∣mg^m = e \iff k \mid m.

In one lineIf g has finite order k then ⟨g⟩ = {e, g, g², …, g^(k−1)} has exactly k elements, and gᵐ = e exactly when k divides m.

Why it is trueDividing m by k with remainder (0.5) reduces every power to one of the first k, and the first k are all different by the minimality of k.

Proofstandard
The idea: Use the division algorithm on the exponent. This reduces every power g^m to g^r with r between 0 and k − 1, and then show that no two of these are equal.
Take any integer mm and write m=qk+rm = qk + r with 0≤r<k0 \le r < k.
Division algorithm (0.5): m=qk+rm = qk + r with 0≤r<k0 \le r < k (the quotient qq may be negative).
gm=(gk)qgr=eqgr=grg^m = (g^k)^q g^r = e^q g^r = g^r.
Exponent rules in a group, and gk=eg^k = e.
Hence gm=eg^m = e iff r=0r = 0 iff k∣mk \mid m.
So every element of ⟨g⟩\langle g\rangle is one of e,g,…,gk−1e, g, \dots, g^{k-1}. Also gm=eg^m = e iff gr=eg^r = e, and r<kr < k with kk the least positive exponent forces r=0r = 0.
Then gj−i=eg^{j-i} = e with 0<j−i<k0 < j - i < k.
Suppose gi=gjg^i = g^j with 0≤i<j<k0 \le i < j < k. Multiply both sides by g−ig^{-i} (cancellation).
So e,g,…,gk−1e, g, \dots, g^{k-1} are all different, and ∣⟨g⟩∣=k\lvert\langle g\rangle\rvert = k.
This contradicts kk being the smallest positive exponent with gk=eg^k = e.
⟨g⟩\langle g\rangle is a subgroup.
⟨g⟩\langle g\rangle contains e=g0e = g^0, is closed since gagb=ga+bg^ag^b = g^{a+b}, and contains g−ag^{-a} as the inverse of gag^a. ■\blacksquare
Worked example
List the order of every element of (Z12,+)(\mathbb Z_{12}, +) and the subgroup each element generates.

Solution.

  1. Order of aa. The order is the least k≥1k \ge 1 with ka≡0(mod12)ka \equiv 0 \pmod{12}, which is 12/gcd⁡(a,12)12/\gcd(a, 12). Put g=gcd⁡(a,12)g = \gcd(a, 12). Then 12∣ka12 \mid ka means 12g∣k⋅ag\frac{12}{g} \mid k\cdot\frac ag, and 12g\frac{12}{g} and ag\frac ag are coprime, so 12g∣k\frac{12}{g} \mid k (the coprime-divisor fact of 0.5, a consequence of Bézout). The smallest such kk is 12g\frac{12}{g}.
  2. Table of orders. a=0,1,2,…,11a = 0, 1, 2, \dots, 11 have orders 1,12,6,4,3,12,2,12,3,4,6,121, 12, 6, 4, 3, 12, 2, 12, 3, 4, 6, 12. For instance a=8a = 8: gcd⁡(8,12)=4\gcd(8, 12) = 4, so the order is 33 (indeed 8+8+8=24≡08 + 8 + 8 = 24 \equiv 0 and 8+8=16≡4≠08 + 8 = 16 \equiv 4 \ne 0).
  3. The subgroups ⟨a⟩\langle a\rangle. {0}\{0\}, {0,6}\{0, 6\}, {0,4,8}\{0, 4, 8\}, {0,3,6,9}\{0, 3, 6, 9\}, {0,2,4,6,8,10}\{0, 2, 4, 6, 8, 10\} and Z12\mathbb Z_{12}. Generated by a=0,6,4,3,2,1a = 0, 6, 4, 3, 2, 1. Other generators repeat these sets: ⟨8⟩=⟨4⟩\langle 8\rangle = \langle 4\rangle and ⟨5⟩=⟨1⟩\langle 5\rangle = \langle 1\rangle.
  4. Sizes. 1,2,3,4,6,121, 2, 3, 4, 6, 12. Exactly the divisors of 1212. This is no accident: it is Lagrange’s theorem below.

Answer. Orders as in step 2. The subgroups generated by single elements are the six listed, with sizes the six divisors of 1212 (they are in fact all the subgroups of Z12\mathbb Z_{12}, a fact proved in 541).

Your answerWhat is the order of 88 in (Z12,+)(\mathbb Z_{12}, +)?

Lagrange’s theorem

Look back at the list of subgroup sizes of Z12\mathbb Z_{12}: 1,2,3,4,6,121, 2, 3, 4, 6, 12. Every size divides the order 1212. This holds in every finite group, and the reason is the idea of 3.7: a subgroup chops the group into equal-sized parallel pieces.

For a subgroup H≤GH \le G and g∈Gg \in G, the left coset of gg is gH={gh:h∈H}gH = \{gh : h \in H\}. In an additive group it is g+H={g+h:h∈H}g + H = \{g + h : h \in H\}. When GG is a vector space and HH is a subspace, this is exactly the coset v+Uv + U of 3.7: UU moved by vv. The index [G:H][G : H] is the number of distinct left cosets.

Take H={0,4,8}H = \{0, 4, 8\} in Z12\mathbb Z_{12}. Its cosets are HH, 1+H={1,5,9}1 + H = \{1, 5, 9\}, 2+H={2,6,10}2 + H = \{2, 6, 10\} and 3+H={3,7,11}3 + H = \{3, 7, 11\}: four pieces of size 33 that cover the twelve elements with no overlaps. 12=4×312 = 4 \times 3. For a non-abelian example, take G=S3G = S_3 and H={e,σ}H = \{e, \sigma\} with σ=(2,1,3)\sigma = (2, 1, 3). The left cosets gH={g,g∘σ}gH = \{g, g\circ\sigma\} are {(1,2,3),(2,1,3)}\{(1,2,3), (2,1,3)\}, {(1,3,2),(3,1,2)}\{(1,3,2), (3,1,2)\} and {(2,3,1),(3,2,1)}\{(2,3,1), (3,2,1)\}: three pieces of size 22, and 6=3×26 = 3 \times 2. The right cosets Hg={g,σ∘g}Hg = \{g, \sigma\circ g\} are {(1,2,3),(2,1,3)}\{(1,2,3), (2,1,3)\}, {(1,3,2),(2,3,1)}\{(1,3,2), (2,3,1)\} and {(3,1,2),(3,2,1)}\{(3,1,2), (3,2,1)\}. They are also three pieces of size 22, but they are different sets from the left cosets, so in a non-abelian group the side matters. This is the entry point to normal subgroups in 541.

Theorem B Judson, the cosets and Lagrange chapter; Dummit and Foote

Lagrange's theorem

Let GG be a finite group and H≤GH \le G. Then ∣H∣\lvert H\rvert divides ∣G∣\lvert G\rvert, and ∣G∣=[G:H]⋅∣H∣\lvert G\rvert = [G:H]\cdot\lvert H\rvert.

In one lineIf H is a subgroup of a finite group G, then the order of H divides the order of G: |G| = [G : H] · |H|.

Why it is trueThe left cosets of H partition G (they are the classes of an equivalence relation, 0.4) and each has exactly |H| elements, so |G| is the number of cosets times |H|.

ProofJudson, the cosets and Lagrange chapter
The idea: Define a ~ b to mean a⁻¹b is in H. It is an equivalence relation whose classes are the cosets aH, so cosets partition G. Each coset has |H| elements because h ↦ ah is a bijection from H onto aH. Count.
The relation ∼\sim is reflexive.
Relation: a∼ba \sim b iff a−1b∈Ha^{-1}b \in H. Reflexive: a−1a=e∈Ha^{-1}a = e \in H.
The relation ∼\sim is symmetric.
Symmetric: if a−1b∈Ha^{-1}b \in H then its inverse (a−1b)−1=b−1a∈H(a^{-1}b)^{-1} = b^{-1}a \in H, because a subgroup contains inverses.
The relation ∼\sim is transitive. So it is an equivalence relation.
Transitive: if a−1b∈Ha^{-1}b \in H and b−1c∈Hb^{-1}c \in H then the product (a−1b)(b−1c)=a−1c∈H(a^{-1}b)(b^{-1}c) = a^{-1}c \in H, because a subgroup is closed under products.
The class of aa is aHaH.
The class of aa is {b:a−1b∈H}\{b : a^{-1}b \in H\}. If a−1b=h∈Ha^{-1}b = h \in H then b=ahb = ah; conversely b=ahb = ah gives a−1b=h∈Ha^{-1}b = h \in H. This is the same step as in the cosets theorem of 3.7.
So the distinct left cosets are disjoint and their union is GG.
Classes of an equivalence relation partition the set (0.4): any two classes are equal or disjoint, and every element lies in one.
Every coset aHaH has exactly ∣H∣\lvert H\rvert elements.
The map H→aHH \to aH, h↦ahh \mapsto ah, is onto by the definition of aHaH. It is one-to-one by cancellation: ah=ah′ah = ah' implies h=h′h = h' (consequences of the axioms, part 4).
∣G∣=[G:H]⋅∣H∣\lvert G\rvert = [G:H]\cdot\lvert H\rvert, so ∣H∣\lvert H\rvert divides ∣G∣\lvert G\rvert.
Counting a disjoint union: add up the sizes of the pieces. There are [G:H][G:H] pieces, each of size ∣H∣\lvert H\rvert. ■\blacksquare
Why· The picture behind the proof

In the plane with G=R2G = \mathbb R^2 and HH a line through OO, the cosets are the parallel lines. Each line is a translate of HH, so every line looks the same, and the lines tile the plane with no overlaps. Lagrange’s theorem is that picture for a finite group: the cosets tile GG, each a translated copy of HH. For Z12\mathbb Z_{12} and H={0,4,8}H = \{0, 4, 8\} the “lines” are the four triples listed above. The same picture, with VV and a subspace UU, gave dim⁡V/U=dim⁡V−dim⁡U\dim V/U = \dim V - \dim U in 3.7: for vector spaces the count of cosets is not a number but a dimension.

Proof workshopRebuild: Lagrange's theoremJudson, the cosets and Lagrange chapter

Tap the lines in the order a proof would write them. Each line can only use what is already above it.

    Quick checkA group has 2121 elements. Which of these could be the size of a subgroup?
    Corollary B Judson, the cosets and Lagrange chapter

    Consequences of Lagrange's theorem

    Let GG be a finite group of order NN.

    1. For every g∈Gg \in G, ord⁡(g)\operatorname{ord}(g) divides NN, and gN=eg^N = e.
    2. If N=pN = p is prime, every g≠eg \ne e generates GG.
    3. (Euler.) If gcd⁡(a,n)=1\gcd(a, n) = 1 then aφ(n)≡1(modn)a^{\varphi(n)} \equiv 1 \pmod n, where φ(n)\varphi(n) is the number of integers from 11 to nn coprime to nn. (Fermat.) If pp is prime and p∤ap \nmid a then ap−1≡1(modp)a^{p-1} \equiv 1 \pmod p.

    In one lineIn a finite group G: the order of every element divides |G|, so g^|G| = e; a group of prime order p is cyclic; and, for the group of invertible classes mod n, a^φ(n) ≡ 1 (Euler), in particular a^(p−1) ≡ 1 for prime p (Fermat).

    Why it is trueThe cyclic subgroup generated by g has ord(g) elements, so Lagrange applies to it. In Z_n^× the group has φ(n) elements.

    Proofstandard
    The idea: Apply Lagrange to the subgroup generated by one element, and read off the three consequences.
    (1) ord⁡(g)\operatorname{ord}(g) divides NN.
    The subgroup ⟨g⟩\langle g\rangle has exactly ord⁡(g)\operatorname{ord}(g) elements (the repeated-move theorem), and Lagrange's theorem applies to it.
    So gN=(gord⁡(g))k=eg^N = (g^{\operatorname{ord}(g)})^k = e.
    Write N=k⋅ord⁡(g)N = k\cdot\operatorname{ord}(g) and use gord⁡(g)=eg^{\operatorname{ord}(g)} = e.
    Then ⟨g⟩\langle g\rangle has pp elements, so ⟨g⟩=G\langle g\rangle = G.
    (2) If g≠eg \ne e then ord⁡(g)>1\operatorname{ord}(g) > 1 and divides the prime pp, so ord⁡(g)=p\operatorname{ord}(g) = p.
    The classes coprime to nn form a group of order φ(n)\varphi(n).
    (3) Zn×\mathbb Z_n^\times, the classes [a][a] with gcd⁡(a,n)=1\gcd(a, n) = 1 under multiplication, is a group of order φ(n)\varphi(n) (the table above and 0.5).
    So [a]φ(n)=[1][a]^{\varphi(n)} = [1], which says aφ(n)≡1(modn)a^{\varphi(n)} \equiv 1 \pmod n.
    Apply part 1 to the class [a][a].
    With n=pn = p: ap−1≡1(modp)a^{p-1} \equiv 1 \pmod p.
    For n=pn = p prime, φ(p)=p−1\varphi(p) = p - 1, because every integer from 11 to p−1p-1 is coprime to pp. ■\blacksquare

    0.5 proved Fermat’s little theorem by a separate argument, the shuffle of a,2a,…,(p−1)aa, 2a, \dots, (p-1)a. Lagrange gives a second proof. The two are the same idea in different clothes: multiplying every element of the group by aa is a one-to-one rearrangement of the group, in the same way that multiplying by gg moves a subgroup to a coset of equal size.

    Worked example
    Find all element orders in Z15×\mathbb Z_{15}^\times and check that they divide the group order. Use this to compute 7222 mod 157^{222} \bmod 15.

    Solution.

    1. The group. Z15×={1,2,4,7,8,11,13,14}\mathbb Z_{15}^\times = \{1, 2, 4, 7, 8, 11, 13, 14\} (the numbers coprime to 1515), so φ(15)=8\varphi(15) = 8. Remove multiples of 33 and 55 from 1,…,141, \dots, 14.
    2. Compute orders. 22: 2,4,8,12, 4, 8, 1, order 44. 44: 4,16≡14, 16 \equiv 1, order 22. 77: 7,49≡4,28≡13,91≡17, 49 \equiv 4, 28 \equiv 13, 91 \equiv 1, order 44. 88: 8,64≡4,32≡2,16≡18, 64 \equiv 4, 32 \equiv 2, 16 \equiv 1, order 44. 1111: 11,121≡111, 121 \equiv 1, order 22. 1313: 13,169≡4,52≡7,91≡113, 169 \equiv 4, 52 \equiv 7, 91 \equiv 1, order 44. 1414: 14,196≡114, 196 \equiv 1, order 22. Multiply repeatedly mod 1515 until 11 appears.
    3. Check Lagrange. Orders 1,2,41, 2, 4 all divide 88. No element has order 88, so the group is not cyclic. If it were cyclic, a generator would have order 88. Compare Z7×\mathbb Z_7^\times, where 33 has order 66: 3,2,6,4,5,13, 2, 6, 4, 5, 1.
    4. Use it. ord⁡(7)=4\operatorname{ord}(7) = 4, and 222=4⋅55+2222 = 4 \cdot 55 + 2, so 7222=(74)55⋅72≡72=49≡4(mod15)7^{222} = (7^4)^{55}\cdot 7^2 \equiv 7^2 = 49 \equiv 4 \pmod{15}. The repeated-move theorem: powers repeat with period ord⁡(7)=4\operatorname{ord}(7) = 4. (Euler would also allow exponent reduction mod 88, but the true period is 44.)

    Answer. Orders: 1,2,4,7,8,11,13,141,2,4,7,8,11,13,14 have orders 1,4,2,4,4,2,4,21,4,2,4,4,2,4,2. And 7222≡4(mod15)7^{222} \equiv 4 \pmod{15}.

    Your answerHow many elements does the group Z20×\mathbb Z_{20}^\times of invertible classes mod 2020 have?
    Your answerA group has 6060 elements and a subgroup HH of order 1212. How many left cosets of HH are there?
    Your answerUse Lagrange to compute 4101 mod 134^{101} \bmod 13 (a number from 00 to 1212).
    Watch out· The converse of Lagrange is false

    If dd divides ∣G∣\lvert G\rvert there need not be a subgroup of order dd. The group A4A_4 of the 1212 even permutations of {1,2,3,4}\{1,2,3,4\} has no subgroup of order 66, although 6∣126 \mid 12 (checked by listing all subgroups: their orders are 1,2,3,4,121, 2, 3, 4, 12). A partial converse holds: if a prime pp divides ∣G∣\lvert G\rvert then there is a subgroup of order pp (Cauchy’s theorem), and a subgroup of order pkp^k for the largest power of pp dividing ∣G∣\lvert G\rvert (Sylow). These are MATH 541 theorems.

    Python labFind every subgroup by brute force and watch Lagrange hold
    from itertools import permutations, combinations
    
    def compose(s, t):                       # (s o t)(i) = s(t(i))
        return tuple(s[t[i]] for i in range(len(t)))
    
    def closure(gens, e):                    # smallest set holding e and gens, closed under products
        S = {e} | set(gens)
        while True:
            new = {compose(a, b) for a in S for b in S} | S
            if new == S:
                return frozenset(S)
            S = new
    
    def sign(p):                             # (-1)^(number of inversions)
        return (-1) ** sum(p[i] > p[j] for i in range(len(p)) for j in range(i + 1, len(p)))
    
    def subgroup_sizes(G, e):                # these small groups need at most 2 generators
        subs = {closure(g, e) for r in range(3) for g in combinations(G, r)}
        return sorted(len(H) for H in subs)
    
    S3 = list(permutations(range(3)))
    A4 = [p for p in permutations(range(4)) if sign(p) == 1]
    print("S3:", subgroup_sizes(S3, (0, 1, 2)))
    print("A4:", subgroup_sizes(A4, (0, 1, 2, 3)))

    Try this. Run it. S3 should show sizes 1, 2, 2, 2, 3, 6 and A4 sizes 1, 2, 2, 2, 3, 3, 3, 3, 4, 12: every size divides the group order, and A4 has no subgroup of size 6 although 6 divides 12. Next add S4 = list(permutations(range(4))) and print subgroup_sizes(S4, (0, 1, 2, 3)): you should see the sizes 1, 2, 3, 4, 6, 8, 12 and 24 appear, 30 subgroups in all.

    Homomorphisms

    A linear map is a function that respects addition and scaling. For groups, the structure is one operation, so we ask for a function that respects it.

    Definition B

    Homomorphism

    A homomorphism from a group GG to a group HH is a function φ:G→H\varphi: G \to H such that φ(ab)=φ(a)φ(b)\varphi(ab) = \varphi(a)\varphi(b) for all a,b∈Ga, b \in G (the product on the left is in GG, on the right in HH). The kernel of φ\varphi is the set ker⁡φ={g∈G:φ(g)=eH}\ker\varphi = \{g \in G : \varphi(g) = e_H\} of elements sent to the identity of HH. It is the null space of 2.3, in group language: a linear map TT is a homomorphism of the groups (V,+)→(W,+)(V, +) \to (W, +), and N(T)=ker⁡TN(T) = \ker T. A bijective homomorphism is an isomorphism; groups with an isomorphism between them have the same structure.

    In one lineA function φ: G → H between groups with φ(ab) = φ(a)φ(b): doing the operation before or after φ gives the same result.

    Why it existsIt is a structure-respecting map for groups, as a linear map is for vector spaces; kernels and images of homomorphisms are the main tools in group theory.

    Examples:

    • A linear map T:V→WT: V \to W is a homomorphism (V,+)→(W,+)(V,+) \to (W,+), since T(v+w)=T(v)+T(w)T(v + w) = T(v) + T(w).
    • det⁡:GLn(R)→(R∖{0},×)\det: \mathrm{GL}_n(\mathbb R) \to (\mathbb R\setminus\{0\}, \times). It is a homomorphism by the product rule det⁡(AB)=det⁡Adet⁡B\det(AB) = \det A\det B (2.7). Its kernel is SLn(R)\mathrm{SL}_n(\mathbb R), the matrices of determinant 11.
    • exp⁡:(R,+)→(R>0,×)\exp: (\mathbb R, +) \to (\mathbb R_{>0}, \times), since ea+b=eaebe^{a+b} = e^ae^b. Its kernel is {0}\{0\}, and it is bijective with inverse ln⁡\ln, so it is an isomorphism: addition of exponents is multiplication of numbers, which is what a slide rule did.
    • Reduction mod nn: Z→Zn\mathbb Z \to \mathbb Z_n, a↦[a]a \mapsto [a]. By 0.5 it respects ++. Its kernel is nZn\mathbb Z.
    • θ↦Rθ\theta \mapsto R_\theta from (R,+)(\mathbb R, +) to SO(2)\mathrm{SO}(2), since RθRφ=Rθ+φR_\theta R_\varphi = R_{\theta+\varphi} (the angle-addition formulas). Its kernel is {2πk}\{2\pi k\}.
    • k↦ikk \mapsto i^k from (Z4,+)(\mathbb Z_4, +) to ({1,i,−1,−i},×)(\{1, i, -1, -i\}, \times): an isomorphism, the renaming in the picture.
    Proposition B standard

    Homomorphisms preserve identity and inverses

    Let φ:G→H\varphi: G \to H be a homomorphism. Then (a) φ(eG)=eH\varphi(e_G) = e_H; (b) φ(a−1)=φ(a)−1\varphi(a^{-1}) = \varphi(a)^{-1}; (c) ker⁡φ≤G\ker\varphi \le G and the image φ(G)≤H\varphi(G) \le H; (d) φ\varphi is one-to-one iff ker⁡φ={eG}\ker\varphi = \{e_G\}.

    In one lineA homomorphism sends the identity to the identity and inverses to inverses: φ(e) = e and φ(a⁻¹) = φ(a)⁻¹. Its kernel is a subgroup, and φ is one-to-one iff the kernel contains only the identity.

    Why it is trueApply φ to e·e = e and cancel; apply it to a·a⁻¹ = e. The kernel claim is the same argument as 'T is one-to-one iff N(T) = {O}' from 2.3.

    Proofstandard
    The idea: (a) and (b) by applying φ to an identity in G and cancelling in H. (c) by the subgroup test. (d): φ(a) = φ(b) says φ(ab⁻¹) = e.
    Cancel one factor φ(eG)\varphi(e_G) on the left (cancellation in HH): eH=φ(eG)e_H = \varphi(e_G).
    (a) eG=eGeGe_G = e_Ge_G, so φ(eG)=φ(eG)φ(eG)\varphi(e_G) = \varphi(e_G)\varphi(e_G).
    So φ(a−1)\varphi(a^{-1}) is the inverse of φ(a)\varphi(a).
    (b) φ(a)φ(a−1)=φ(aa−1)=φ(eG)=eH\varphi(a)\varphi(a^{-1}) = \varphi(aa^{-1}) = \varphi(e_G) = e_H. The inverse is unique (consequences of the axioms).
    ker⁡φ\ker\varphi and φ(G)\varphi(G) are subgroups.
    (c) eG∈ker⁡φe_G \in \ker\varphi by (a). For a,b∈ker⁡φa, b \in \ker\varphi: φ(ab−1)=φ(a)φ(b)−1=eHeH−1=eH\varphi(ab^{-1}) = \varphi(a)\varphi(b)^{-1} = e_He_H^{-1} = e_H, by (b). Subgroup test. The image: φ(a)φ(b)−1=φ(ab−1)\varphi(a)\varphi(b)^{-1} = \varphi(ab^{-1}) is in the image.
    (⇒\Rightarrow) the kernel contains only eGe_G.
    (d) If φ\varphi is one-to-one and a∈ker⁡φa \in \ker\varphi, then φ(a)=eH=φ(eG)\varphi(a) = e_H = \varphi(e_G), so a=eGa = e_G.
    (⇐\Leftarrow) φ\varphi is one-to-one.
    (⇐\Leftarrow) If φ(a)=φ(b)\varphi(a) = \varphi(b) then φ(ab−1)=φ(a)φ(b)−1=eH\varphi(ab^{-1}) = \varphi(a)\varphi(b)^{-1} = e_H, so ab−1∈ker⁡φ={eG}ab^{-1} \in \ker\varphi = \{e_G\} and a=ba = b. ■\blacksquare
    Worked example
    Check that det⁡\det is a homomorphism on the matrices M=[1234]M = \begin{bmatrix}1&2\\3&4\end{bmatrix} and N=[0111]N = \begin{bmatrix}0&1\\1&1\end{bmatrix}, and describe the kernel. Then show Z4\mathbb Z_4 and the group {1,3,5,7}\{1,3,5,7\} mod 8 are not isomorphic.

    Solution.

    1. Determinants. det⁡M=4−6=−2\det M = 4 - 6 = -2 and det⁡N=0−1=−1\det N = 0 - 1 = -1. The 2×22\times2 formula ad−bcad - bc.
    2. The product. MN=[2347]MN = \begin{bmatrix}2&3\\4&7\end{bmatrix} and det⁡(MN)=14−12=2=(−2)(−1)\det(MN) = 14 - 12 = 2 = (-2)(-1). The homomorphism property det⁡(MN)=det⁡M⋅det⁡N\det(MN) = \det M\cdot\det N for these matrices.
    3. The kernel. ker⁡det⁡={A:det⁡A=1}=SL2(R)\ker\det = \{A : \det A = 1\} = \mathrm{SL}_2(\mathbb R), a subgroup by the proposition. The identity of (R∖{0},×)(\mathbb R\setminus\{0\}, \times) is 11, not 00. The kernel is the set sent to the identity.
    4. Not one-to-one. det⁡\det sends both II and [1101]\begin{bmatrix}1&1\\0&1\end{bmatrix} to 11, and the kernel is more than {I}\{I\}. Part (d): a larger kernel means not injective.
    5. Non-isomorphic groups. An isomorphism φ\varphi preserves orders of elements, since φ(g)k=φ(gk)\varphi(g)^k = \varphi(g^k) and φ\varphi is one-to-one. In Z4\mathbb Z_4 the element 11 has order 44. In {1,3,5,7}\{1,3,5,7\} every element squares to 11, so every order is at most 22. The orders differ, so no bijective homomorphism exists, even though both groups have 44 elements.

    Answer. det⁡\det is a homomorphism with kernel SL2(R)\mathrm{SL}_2(\mathbb R), and Z4≇{1,3,5,7}\mathbb Z_4 \not\cong \{1,3,5,7\}.

    Quick checkWhich of these is a homomorphism from (Z,+)(\mathbb Z, +) to (Z,+)(\mathbb Z, +)?

    The sign of a permutation

    In 2.7, the sign of a permutation was +1+1 or −1-1 and was used to build the determinant. It is actually a homomorphism, and that is why the determinant of a product works out.

    Theorem B standard; 2.7

    The sign is a homomorphism

    For permutations σ,τ\sigma, \tau of {1,…,n}\{1, \dots, n\}, sgn⁡(τ∘σ)=sgn⁡(τ)sgn⁡(σ)\operatorname{sgn}(\tau\circ\sigma) = \operatorname{sgn}(\tau)\operatorname{sgn}(\sigma) (the sign as defined in 2.7). The kernel AnA_n of sgn⁡:Sn→{1,−1}\operatorname{sgn}: S_n \to \{1, -1\} is the group of even permutations.

    In one lineFor permutations σ and τ of {1,…,n}, sgn(τ∘σ) = sgn(τ)·sgn(σ). So sgn: Sₙ → ({1, −1}, ×) is a homomorphism, whose kernel is the group Aₙ of even permutations.

    Why it is trueWrite σ as a permutation matrix. The determinant of that matrix is its sign (the permutation formula, 2.7), and permutation matrices multiply like permutations compose, so the product rule for determinants gives the result.

    Proofstandard
    The idea: Attach to each permutation σ the matrix P_σ with a 1 in position (i, σ(i)) of row i and 0 elsewhere. Then det P_σ = sgn σ and P_σ P_τ = P_{τ∘σ}. Take determinants.
    For a permutation σ\sigma, let PσP_\sigma be the permutation matrix with 11 in row ii, column σ(i)\sigma(i).
    Define PσP_\sigma by (Pσ)i,σ(i)=1(P_\sigma)_{i,\sigma(i)} = 1 for each row ii and all other entries 00. It is a matrix with exactly one 11 in each row and column.
    So det⁡Pσ=sgn⁡(σ)\det P_\sigma = \operatorname{sgn}(\sigma).
    The permutation formula of 2.7: det⁡A=∑πsgn⁡(π) a1π(1)⋯anπ(n)\det A = \sum_\pi \operatorname{sgn}(\pi)\,a_{1\pi(1)}\cdots a_{n\pi(n)}. For PσP_\sigma the product is 11 if π=σ\pi = \sigma and 00 for every other π\pi (some factor aiπ(i)a_{i\pi(i)} is 00).
    PσPτ=Pτ∘σP_\sigma P_\tau = P_{\tau\circ\sigma}.
    Entry (i,k)(i, k) of PσPτP_\sigma P_\tau is ∑j(Pσ)ij(Pτ)jk\sum_j (P_\sigma)_{ij}(P_\tau)_{jk}. Only j=σ(i)j = \sigma(i) contributes, giving (Pτ)σ(i),k(P_\tau)_{\sigma(i),k}, which is 11 exactly when k=τ(σ(i))k = \tau(\sigma(i)).
    sgn⁡(τ∘σ)=det⁡(PσPτ)=det⁡Pσdet⁡Pτ=sgn⁡(σ)sgn⁡(τ)\operatorname{sgn}(\tau\circ\sigma) = \det(P_\sigma P_\tau) = \det P_\sigma\det P_\tau = \operatorname{sgn}(\sigma)\operatorname{sgn}(\tau). ■\blacksquare
    Take determinants of PσPτ=Pτ∘σP_\sigma P_\tau = P_{\tau\circ\sigma} and use the product rule for determinants (2.7) on the left.

    For example, in S3S_3 the permutation σ=(2,3,1)\sigma = (2, 3, 1) has two inversions (sign +1+1), τ=(3,2,1)\tau = (3, 2, 1) has three (sign −1-1), and σ∘τ=(1,3,2)\sigma\circ\tau = (1, 3, 2) has one inversion (sign −1-1). Indeed (+1)(−1)=−1(+1)(-1) = -1. A transposition has sign −1-1, so sgn⁡\operatorname{sgn} is onto {1,−1}\{1, -1\}, and by Lagrange the kernel AnA_n has half the elements of SnS_n: ∣An∣=n!/2\lvert A_n\rvert = n!/2 (Problem below). For S4S_4 that is 1212, the group A4A_4 of the warning above.

    A preview· Preview: the first isomorphism theorem for groups

    In 3.7 the first isomorphism theorem said V/N(T)≅range⁡TV/N(T) \cong \operatorname{range}T. For groups the same theorem holds: G/ker⁡φ≅im⁡φG/\ker\varphi \cong \operatorname{im}\varphi. To state it you need a group structure on the cosets of the kernel. In an abelian group (g+K)+(h+K)=(g+h)+K(g + K) + (h + K) = (g + h) + K works exactly as in 3.7, and the proof of well-definedness is the same. In a non-abelian group, left and right cosets can differ (we saw this in S3S_3), and the construction needs the subgroup to be normal (gKg−1=KgKg^{-1} = K for all gg). Kernels are always normal: if k∈ker⁡φk \in \ker\varphi then φ(gkg−1)=φ(g) e φ(g)−1=e\varphi(gkg^{-1}) = \varphi(g)\,e\,\varphi(g)^{-1} = e (Problem below). That is the full story of MATH 541’s first chapters. The example you have already seen: Z/nZ\mathbb Z/n\mathbb Z, the quotient of the group Z\mathbb Z by the subgroup nZn\mathbb Z, is the group (Zn,+)(\mathbb Z_n, +) of 0.5.

    Rings

    Groups have one operation. Number systems have two, linked by the distributive law. We write the rules once.

    Definition B

    Ring

    A ring is a set RR with two operations, addition and multiplication, such that:

    1. (R,+)(R, +) is an abelian group, with identity 00 and negatives −a-a.
    2. Multiplication is associative, and there is an element 11 with 1a=a1=a1a = a1 = a.
    3. Distributive laws: a(b+c)=ab+aca(b + c) = ab + ac and (a+b)c=ac+bc(a + b)c = ac + bc.

    The ring is commutative if ab=baab = ba for all a,ba, b.

    In one lineA set with addition and multiplication where addition makes it an abelian group, multiplication is associative with an identity 1, and multiplication distributes over addition.

    Why it existsIt is the minimal setting for 'adding and multiplying', and it covers the integers, residues mod n, polynomials and square matrices at once.

    Examples: Z\mathbb Z; Zn\mathbb Z_n (0.5 shows that addition and multiplication of classes are well defined); Q\mathbb Q, R\mathbb R, C\mathbb C (0.6); the polynomials with real coefficients R[x]\mathbb R[x] (0.6); and the n×nn \times n real matrices Mn(R)M_n(\mathbb R), which are a ring that is not commutative. Non-example: N\mathbb N (no negatives, so (N,+)(\mathbb N, +) is not a group). Warning on conventions: many textbooks do not require the identity 11, and some require commutativity; this book follows the convention above, with 11 and not necessarily commutative.

    Two ring-theoretic ideas matter below. A unit is an element with a multiplicative inverse; the units of Zn\mathbb Z_n are the classes of 0.5 with gcd⁡(a,n)=1\gcd(a, n) = 1, the group Zn×\mathbb Z_n^\times. A zero divisor is a non-zero aa for which ab=0ab = 0 for some non-zero bb: in Z6\mathbb Z_6, [2][3]=[0][2][3] = [0]; in M2(R)M_2(\mathbb R), [0100]2=0\begin{bmatrix}0&1\\0&0\end{bmatrix}^2 = 0.

    Proposition B standard

    Zero times anything in a ring

    In any ring, 0⋅a=00\cdot a = 0 and (−1)⋅a=−a(-1)\cdot a = -a for every aa.

    In one lineIn any ring, 0·a = 0 and (−1)·a = −a.

    Why it is trueIt is the ring version of 'scaling by zero' in 2.1: the distributive law applied to 0 = 0 + 0, then cancel in the additive group.

    Proofstandard
    The idea: Use the distributive law on 0 = 0 + 0 and cancel in the additive group. For the second part show (−1)a is the additive inverse of a.
    0a=(0+0)a=0a+0a0a = (0 + 0)a = 0a + 0a.
    0=0+00 = 0 + 0, and the distributive law.
    So 0a=00a = 0.
    Add −(0a)-(0a) to both sides; cancellation in the group (R,+)(R, +) (part 4 of the consequences).
    So (−1)a(-1)a is an additive inverse of aa, and by uniqueness of inverses (−1)a=−a(-1)a = -a. ■\blacksquare
    a+(−1)a=1a+(−1)a=(1+(−1))a=0a=0a + (-1)a = 1a + (-1)a = (1 + (-1))a = 0a = 0, by the distributive law and the first part.

    Fields

    Definition B

    Field

    A field is a commutative ring FF in which 1≠01 \ne 0 and every non-zero element aa has an inverse a−1a^{-1} with aa−1=1aa^{-1} = 1. Equivalently: (F,+)(F, +) and (F∖{0},×)(F\setminus\{0\}, \times) are both abelian groups and the distributive law links them. Examples: Q\mathbb Q, R\mathbb R, C\mathbb C, and Zp\mathbb Z_p for pp prime. Non-examples: Z\mathbb Z (the number 22 has no inverse in Z\mathbb Z), R[x]\mathbb R[x] (the polynomial xx has no inverse), M2(R)M_2(\mathbb R) (not commutative, and it has zero divisors), and Z6\mathbb Z_6.

    In one lineA commutative ring where 1 ≠ 0 and every non-zero element has a multiplicative inverse: a number system where you can add, subtract, multiply and divide by anything non-zero.

    Why it existsDivision is what linear algebra needs: scaling a vector by 1/c, dividing by a pivot in elimination, and normalising a vector all divide by a scalar.

    Lemma B standard

    A field has no zero divisors

    If FF is a field and ab=0ab = 0 in FF, then a=0a = 0 or b=0b = 0.

    In one lineIn a field, ab = 0 implies a = 0 or b = 0.

    Why it is trueIf a ≠ 0, multiply ab = 0 by a⁻¹.

    Proofstandard
    The idea: Suppose a is not zero, and show that b is.
    Suppose a≠0a \ne 0.
    Proof by cases (0.2): either a=0a = 0, done, or a≠0a \ne 0.
    b=(a−1a)b=a−1(ab)=a−1⋅0=0b = (a^{-1}a)b = a^{-1}(ab) = a^{-1}\cdot 0 = 0. ■\blacksquare
    aa has an inverse in a field. Multiply ab=0ab = 0 by a−1a^{-1}, and use associativity and a−1⋅0=0a^{-1}\cdot 0 = 0 (zero times anything).

    Which of the rings Zn\mathbb Z_n are fields? The picture of 0.5 (the multiplication tables mod 77 and mod 66) already shows the answer.

    Theorem B standard; Judson, the fields chapter; 0.5

    Z_n is a field exactly when n is prime

    Let n≥2n \ge 2. The ring Zn\mathbb Z_n is a field if and only if nn is prime.

    In one lineFor n ≥ 2, the ring Zₙ of integers mod n is a field if and only if n is prime.

    Why it is trueDivision mod n needs an inverse for every non-zero class, and Bézout (0.5) says a has an inverse iff gcd(a, n) = 1. That holds for all a from 1 to n − 1 exactly when n has no divisors other than 1 and n.

    ProofJudson, the fields chapter
    The idea: (⇐) For prime n, Bézout gives an inverse of every non-zero class. (⇒) If n = ab is composite, the classes [a] and [b] are non-zero but multiply to [0], so Zₙ has zero divisors and cannot be a field.
    Let n=pn = p be prime. It remains to find inverses.
    (⇐\Leftarrow) Zn\mathbb Z_n is a commutative ring with [1]≠[0][1] \ne [0] since n≥2n \ge 2 (0.5: addition and multiplication of classes are well defined and obey the usual laws).
    So gcd⁡(a,p)=1\gcd(a, p) = 1.
    Take [a]≠[0][a] \ne [0] with 1≤a≤p−11 \le a \le p - 1. Then p∤ap \nmid a. The only positive divisors of pp are 11 and pp, and gcd⁡(a,p)\gcd(a, p) is one of them, not pp.
    So [a][a] has an inverse in Zp\mathbb Z_p, and Zp\mathbb Z_p is a field.
    Inverses mod nn exist exactly when the gcd is 11 (0.5, from Bézout's identity ax+py=1ax + py = 1).
    Then [a]≠[0][a] \ne [0] and [b]≠[0][b] \ne [0], because 0<a,b<n0 < a, b < n.
    (⇒\Rightarrow) Contrapositive. Suppose nn is not prime, so n=abn = ab with 1<a,b<n1 < a, b < n.
    But their product is [0][0], so [a][a] is a zero divisor.
    [a][b]=[ab]=[n]=[0][a][b] = [ab] = [n] = [0].
    So Zn\mathbb Z_n is not a field.
    A field has no zero divisors (the lemma above). ■\blacksquare
    Proof workshopRebuild: Z_n is a field iff n is primeJudson, the fields chapter

    Tap the lines in the order a proof would write them. Each line can only use what is already above it.

      Quick checkWhich of these rings is a field?
      Worked example
      Is Z9\mathbb Z_9 a field? Is Z11\mathbb Z_{11}? Solve 7x≡3(mod11)7x \equiv 3 \pmod{11} if you can.

      Solution.

      1. Z9\mathbb Z_9. 9=3⋅39 = 3 \cdot 3 is composite, and [3][3]=[9]=[0][3][3] = [9] = [0] with [3]≠[0][3] \ne [0]. A zero divisor, so Z9\mathbb Z_9 is not a field. In particular [3][3] has no inverse mod 99.
      2. Z11\mathbb Z_{11}. 1111 is prime, so Z11\mathbb Z_{11} is a field. The theorem.
      3. The inverse of 77. Euclid: 11=1⋅7+411 = 1\cdot7 + 4, 7=1⋅4+37 = 1\cdot4 + 3, 4=1⋅3+14 = 1\cdot3 + 1. Back-substitute: 1=4−3=4−(7−4)=2⋅4−7=2(11−7)−7=2⋅11−3⋅71 = 4 - 3 = 4 - (7 - 4) = 2\cdot4 - 7 = 2(11 - 7) - 7 = 2\cdot11 - 3\cdot7. So 7−1≡−3≡8(mod11)7^{-1} \equiv -3 \equiv 8 \pmod{11}. The extended Euclid of 0.5. Check: 7⋅8=56=5⋅11+17 \cdot 8 = 56 = 5 \cdot 11 + 1.
      4. Solve. x≡8⋅3=24≡2(mod11)x \equiv 8 \cdot 3 = 24 \equiv 2 \pmod{11}. In a field, ax=bax = b has the unique solution x=a−1bx = a^{-1}b, exactly as in a group.
      5. Check. 7⋅2=14=11+37 \cdot 2 = 14 = 11 + 3. The answer must reproduce the right side.

      Answer. Z9\mathbb Z_9 is not a field, Z11\mathbb Z_{11} is, and x≡2(mod11)x \equiv 2 \pmod{11}.

      Worked example
      Build a field with 44 elements, and check that it is a field.

      Z4\mathbb Z_4 is not a field ([2][2]=[0][2][2] = [0]), so a field with 44 elements cannot be the integers mod 44. The same idea as Zp\mathbb Z_p works with polynomials in place of integers: take polynomials over Z2\mathbb Z_2 (coefficients 00 or 11, with 1+1=01 + 1 = 0) and replace x2x^2 by x+1x + 1, the remainder rule of dividing by the polynomial x2+x+1x^2 + x + 1.

      Solution.

      1. The elements. {0,1,x,x+1}\{0, 1, x, x + 1\}: every polynomial reduces to one of the form a+bxa + bx with a,b∈{0,1}a, b \in \{0, 1\}. Divide by x2+x+1x^2 + x + 1 and keep the remainder, a polynomial of degree less than 22. The same remainder idea as Zn\mathbb Z_n in 0.5.
      2. The rule for x2x^2. In Z2\mathbb Z_2, −1=1-1 = 1, so x2+x+1=0x^2 + x + 1 = 0 gives x2=x+1x^2 = x + 1. We declare the polynomial x2+x+1x^2 + x + 1 to be 00, as we declared nn to be 00 in Zn\mathbb Z_n.
      3. Products. x⋅x=x2=x+1x\cdot x = x^2 = x + 1. x(x+1)=x2+x=(x+1)+x=2x+1=1x(x + 1) = x^2 + x = (x + 1) + x = 2x + 1 = 1. (x+1)(x+1)=x2+2x+1=x2+1=(x+1)+1=x(x + 1)(x + 1) = x^2 + 2x + 1 = x^2 + 1 = (x + 1) + 1 = x. Expand, use x2=x+1x^2 = x + 1, and 2=02 = 0.
      4. Inverses. 1−1=11^{-1} = 1, x−1=x+1x^{-1} = x + 1 (since x(x+1)=1x(x+1) = 1), (x+1)−1=x(x+1)^{-1} = x. Every non-zero element has an inverse, so we have a field.
      5. Why not zero divisors. x2+x+1x^2 + x + 1 has no root in Z2\mathbb Z_2 (0↦10 \mapsto 1 and 1↦11 \mapsto 1), so it cannot be split into factors of degree 11. This is the same reason as for primes: Zp\mathbb Z_p is a field because pp cannot be split. Here the polynomial cannot be split.

      Answer. The field F4={0,1,x,x+1}\mathbb F_4 = \{0, 1, x, x+1\} (the “Galois field” GF(4)\mathrm{GF}(4)). Its non-zero elements form the group {1,x,x+1}\{1, x, x+1\} of order 33, with x2=x+1x^2 = x+1 and x3=1x^3 = 1. In the same way GF(256)\mathrm{GF}(256) is Z2[x]\mathbb Z_2[x] modulo the degree-88 polynomial x8+x4+x3+x2+1x^8 + x^4 + x^3 + x^2 + 1; its elements are the 256 possible bytes. QR codes use it (below).

      Why· Why vector spaces need a field of scalars

      Everything in 2.1 to 2.7 and the dual and quotient constructions of 3.7 work with scalars from any field: replace “real number” by “element of FF” and nothing in the proofs changes. They all divide by scalars. Normalising cv=Ocv = O to v=Ov = O needs c−1c^{-1}. Elimination divides by pivots. The theorem “more vectors than a spanning set means dependent” solves for one vector by dividing by a coefficient. What goes wrong over a ring that is not a field? Let Z\mathbb Z act as scalars on Z6\mathbb Z_6 (k⋅[a]=[ka]k\cdot[a] = [ka]). Then 2⋅[3]=[0]2\cdot[3] = [0] although the scalar 22 and the vector [3][3] are both non-zero: the consequence ”cv=Ocv = O forces c=0c = 0 or v=Ov = O” of 2.1 fails. Every single vector is dependent (6⋅[a]=[0]6\cdot[a] = [0] with 6≠06 \ne 0), so there is no basis and no dimension. Over a field this cannot happen.

      With a finite field the counting becomes exact. Z23\mathbb Z_2^3 over Z2\mathbb Z_2 has dimension 33 and exactly 23=82^3 = 8 vectors; a vector space of dimension dd over a field with qq elements has qdq^d vectors. The invertible 2×22\times2 matrices over Zp\mathbb Z_p (a group, GL2(Zp)\mathrm{GL}_2(\mathbb Z_p)) number (p2−1)(p2−p)(p^2 - 1)(p^2 - p): the first column is any non-zero vector, the second any vector not a multiple of the first (2.2). For p=2p = 2 that is 66, and for p=3p = 3 it is 4848.

      Where this came from· Kummer, Dedekind and Galois: rings and fields

      In the mid-1840s Ernst Kummer found that unique factorization into primes can fail in rings of numbers built from roots of unity, and repaired it with “ideal numbers”, which he used to prove Fermat’s last theorem for every exponent that is a “regular” prime (a large class, but not all primes). The preview of 0.5, where 6=2⋅3=(1+−5)(1−−5)6 = 2\cdot3 = (1+\sqrt{-5})(1-\sqrt{-5}), is the same phenomenon. Richard Dedekind replaced Kummer’s ideal numbers by ideals, in a supplement to Dirichlet’s lectures on number theory (1871), and used the word Körper (body, our “field”) for a set of numbers closed under addition, subtraction, multiplication and division. In the 1890s David Hilbert introduced the word Zahlring (number ring), the origin of our word “ring”. Galois, in a note of 1830, had already built the finite fields with pnp^n elements by adding “imaginary” roots of polynomial congruences to Zp\mathbb Z_p, which is why they are called Galois fields and written GF(pn)\mathrm{GF}(p^n). The problem behind all of it was the same: when can you divide, and when can you factor in only one way.

      Where it is used

      Used inside maths· Inside maths: where 541 goes from here

      Lagrange’s theorem is the first of the counting results in group theory: Cauchy and Sylow find subgroups of prescribed prime power order. Quotient groups G/NG/N (3.7’s quotient space for one operation) and the isomorphism theorems come next, then group actions, which count orbits, and then Galois theory, which turns the 1832 idea (each polynomial has a group, and solvability by radicals is a property of that group) into a correspondence between subgroups and intermediate fields. The group GLn(F)\mathrm{GL}_n(F) and its subgroups, such as SO(3)\mathrm{SO}(3), are the matrix groups of representation theory. Fields allow linear algebra over Zp\mathbb Z_p, which is what error-correcting codes and much of cryptography use. A concrete use of this chapter inside linear algebra: the order of a matrix. In GL2(Z3)\mathrm{GL}_2(\mathbb Z_3), which has 4848 elements, every matrix AA satisfies A48=IA^{48} = I by Lagrange, so the powers AkA^k cycle with a period dividing 4848.

      Used in the real world· Cryptography: Diffie–Hellman key exchange lives in a group

      Alice and Bob want a shared secret over a public channel. They agree on a prime p=23p = 23 and the element g=5g = 5 of the group Z23×\mathbb Z_{23}^\times (which has 2222 elements; 55 has order 2222, so it generates the group). Alice picks a secret a=6a = 6 and sends A=gaA = g^a; Bob picks b=15b = 15 and sends B=gbB = g^b. Each then raises the other’s number to their own secret power.

      With p=23p = 23 an eavesdropper tries all 2222 exponents; the lab below does exactly that. With pp of about 2048 bits there are about 220482^{2048} exponents, trying them all is hopeless, and the best known methods for the discrete logarithm in this group are still far too slow. Lagrange explains the exponents: gp−1=1g^{p-1} = 1, so secrets only matter mod p−1p - 1 (the trap in 0.5). Other groups serve the same purpose: elliptic-curve groups of about 256256-bit order are used instead because no known attack on them is as fast as the best attacks on Zp×\mathbb Z_p^\times. RSA uses the group Zn×\mathbb Z_n^\times with φ(n)=(p−1)(q−1)\varphi(n) = (p-1)(q-1) elements: for mm coprime to nn, (me)d=m1+kφ(n)=m (mφ(n))k=m(m^e)^d = m^{1 + k\varphi(n)} = m\,(m^{\varphi(n)})^k = m by Lagrange, which is the correctness proof of 0.5 in one line (0.5 handles the case where mm shares a factor with nn separately). Diffie and Hellman published the key exchange in 1976.

      Python labDiffie–Hellman with small numbers, and the eavesdropper's brute force
      p, g = 23, 5
      order = next(k for k in range(1, p) if pow(g, k, p) == 1)
      print("order of g:", order)
      a, b = 6, 15                              # the secrets
      A, B = pow(g, a, p), pow(g, b, p)         # the public numbers
      print("A =", A, "  B =", B)
      print("Alice computes", pow(B, a, p), "  Bob computes", pow(A, b, p))
      for k in range(1, p):                     # an eavesdropper tries every exponent
          if pow(g, k, p) == A:
              print("eavesdropper finds a =", k)
              break
      print("exponents repeat mod the order:", pow(g, a + order, p) == A)

      Try this. Run it: both parties should get 2, and the eavesdropper should find a = 6. Now set g = 2: its order drops to 11, a divisor of 22 as Lagrange demands, so only half of the non-zero classes are ever reached. Try g = 22 (order 2). The key still matches for every choice of a and b, but with a small order the eavesdropper has fewer exponents to try.

      Used in the real world· Symmetry in physics and chemistry: crystal groups, molecules and conservation laws

      The symmetries of an object form a group under “do one, then the other”. A methane molecule CH4\mathrm{CH}_4 is a regular tetrahedron with a carbon at the centre. Its symmetry group, called TdT_d in chemistry, has 2424 elements (rotations, reflections and rotation-reflections that map the molecule onto itself) and is isomorphic to S4S_4: every permutation of the four hydrogen atoms is achieved by exactly one symmetry. The water molecule has a group of order 44: do nothing, rotate by 180∘180^\circ about the axis through the oxygen, and two reflections. By Lagrange, any subgroup of the methane group has order dividing 2424, so no subgroup has order 55. In crystallography every crystal pattern has a symmetry group: there are exactly 3232 crystallographic point groups, 230230 space groups in three dimensions and 1717 “wallpaper” groups in the plane. Chemists use these groups to predict which vibrations of a molecule absorb infrared light. In 1918 Emmy Noether proved that each continuous symmetry of a physical law gives a conserved quantity: the rotation group SO(3)\mathrm{SO}(3) gives conservation of angular momentum.

      Used in the real world· Error-correcting codes: Reed–Solomon codes need a field, and QR codes use GF(256)

      A QR code survives a torn corner because it stores more data than the message needs, arranged so that the message can be reconstructed. The codes used, Reed–Solomon codes (Irving Reed and Gustave Solomon, 1960), treat each byte as an element of GF(256)\mathrm{GF}(256) and the message as the coefficients of a polynomial. The smallest QR code (version 1, with the lowest error-correction level L) has 2626 bytes: 1919 carry the message and 77 are check bytes. Each wrong byte at an unknown position costs two check bytes to repair, and the QR standard keeps 33 check bytes in reserve for 1-L to catch a wrong decode, so this smallest code guarantees the repair of ⌊(7−3)/2⌋=2\lfloor (7 - 3)/2\rfloor = 2 wrong bytes. CDs use a Reed–Solomon scheme too. Here is the mechanism at a size that fits on a page, over the field Z7\mathbb Z_7.

      In a ring such as Z6\mathbb Z_6 this fails: 2x≡02x \equiv 0 has the two roots 00 and 33 and x2−x1x_2 - x_1 may be a zero divisor with no inverse. The general rule: nn symbols sent for kk message symbols let you correct up to ⌊(n−k)/2⌋\lfloor (n-k)/2\rfloor wrong symbols, here ⌊3/2⌋=1\lfloor 3/2\rfloor = 1.

      Used in the real world· Rubik's cube: a group of 43 quintillion elements

      The moves of the 3×3×33\times3\times3 cube form a group: the operation is “do this sequence, then that one”, every move can be undone, and doing nothing is the identity. Its order is

      8!⋅37⋅12!⋅2112=43 252 003 274 489 856 000≈4.3×1019.\frac{8!\cdot 3^7\cdot 12!\cdot 2^{11}}{2} = 43\,252\,003\,274\,489\,856\,000 \approx 4.3\times10^{19}.

      There are 8!8! ways to place the corner pieces and 373^7 ways to twist them (the last twist is forced), 12!12! ways to place the edge pieces and 2112^{11} ways to flip them (the last flip is forced), and the factor 12\frac12 because the parity of the corner permutation must equal that of the edge permutation: a cube with only two pieces swapped cannot be reached by turning faces. The group is not abelian: turning the right face then the top face differs from top then right. Each single face turn has order 44. Repeating any sequence of moves must bring the cube back to its start, after a number of repetitions that divides ∣G∣\lvert G\rvert by Lagrange. In 2010 Rokicki, Kociemba, Davidson and Dethridge showed by computer that every position can be solved in at most 2020 moves, where a half turn of a face counts as one move. (If only quarter turns are allowed, the answer is 2626.)

      Traps

      Watch out· Groups need not be commutative, and inverses reverse order

      The axioms never say ab=baab = ba. In GL2\mathrm{GL}_2 and S3S_3 it fails. Consequently (ab)−1=b−1a−1(ab)^{-1} = b^{-1}a^{-1}, not a−1b−1a^{-1}b^{-1}, and an equation ax=bax = b is solved by x=a−1bx = a^{-1}b, not ba−1ba^{-1}. Multiply on the correct side.

      Watch out· Lagrange's theorem does not run backwards

      If dd divides ∣G∣\lvert G\rvert, a subgroup of order dd may not exist (A4A_4 has no subgroup of order 66). Lagrange gives necessary conditions on sizes only. Also the order of an element divides ∣G∣\lvert G\rvert but need not equal it: Z15×\mathbb Z_{15}^\times has 88 elements and none of order 88.

      Watch out· Check that a subset uses the same operation, and that the identity is the right one

      {0,1,…,n−1}\{0, 1, \dots, n-1\} is not a subgroup of (Z,+)(\mathbb Z, +) (not closed). Zn\mathbb Z_n under multiplication is not a group (the class [0][0] has no inverse, and non-coprime classes fail). The identity of (R∖{0},×)(\mathbb R\setminus\{0\}, \times) is 11, so the kernel of det⁡\det is the matrices of determinant 11, not 00. “Kernel is trivial” means the kernel is the identity element alone.

      Watch out· Z_n is a field only for prime n; GF(4) is not Z_4

      A finite field with 44 elements exists, but it is not the integers mod 44 (that has the zero divisor [2][2]). Finite fields have pnp^n elements, and for n>1n > 1 they are built from polynomials, as in the worked example. Also check conventions: some books define a ring without 11, and a “domain” without zero divisors is a ring, not necessarily a field.

      Problems

      check

      Decide which are groups: (a) (Z5,×)(\mathbb Z_5, \times) (b) (Z5∖{0},×)(\mathbb Z_5\setminus\{0\}, \times) (c) (Z,−)(\mathbb Z, -) (d) ({1,−1,i,−i},×)(\{1, -1, i, -i\}, \times).

      Solution

      (a) No: [0][0] has no inverse. (b) Yes: 55 is prime, products of non-zero classes are non-zero, and every non-zero class has an inverse (0.5). (c) No: −- is not associative, (3−2)−1=0(3 - 2) - 1 = 0 but 3−(2−1)=23 - (2 - 1) = 2. (d) Yes: it is the group {1,i,−1,−i}\{1, i, -1, -i\} of the picture, with i⋅(−i)=1i\cdot(-i) = 1, i⋅i=−1i\cdot i = -1 and so on.

      check

      Find the order of 88 in (Z12,+)(\mathbb Z_{12}, +) and of 33 in Z7×\mathbb Z_7^\times.

      Solution

      8+8=16≡48 + 8 = 16 \equiv 4, 8+8+8=24≡08 + 8 + 8 = 24 \equiv 0, so ord⁡(8)=3\operatorname{ord}(8) = 3 (also 12/gcd⁡(8,12)=312/\gcd(8, 12) = 3). In Z7×\mathbb Z_7^\times: 3,32=2,33=6,34=4,35=5,36=13, 3^2 = 2, 3^3 = 6, 3^4 = 4, 3^5 = 5, 3^6 = 1, so ord⁡(3)=6\operatorname{ord}(3) = 6, and 33 generates the group.

      check

      A group has 1818 elements. Which of the orders 2,4,6,7,92, 4, 6, 7, 9 are impossible for a subgroup, and which are allowed by Lagrange?

      Solution

      By Lagrange the order divides 1818, whose divisors are 1,2,3,6,9,181, 2, 3, 6, 9, 18. So 44 and 77 are impossible. 22, 66 and 99 are allowed by Lagrange (whether they occur depends on the group).

      check

      Which of these is a homomorphism? (a) det⁡:GL2(R)→(R∖{0},×)\det: \mathrm{GL}_2(\mathbb R)\to(\mathbb R\setminus\{0\},\times) (b) A↦tr⁡AA \mapsto \operatorname{tr}A from (GL2(R),×)(\mathrm{GL}_2(\mathbb R), \times) to (R,+)(\mathbb R, +) (c) x↦3xx \mapsto 3x from (R,+)(\mathbb R, +) to (R,+)(\mathbb R, +).

      Solution

      (a) Yes: det⁡(AB)=det⁡Adet⁡B\det(AB) = \det A\det B. (c) Yes: 3(x+y)=3x+3y3(x + y) = 3x + 3y. (b) No: tr⁡(AB)≠tr⁡A+tr⁡B\operatorname{tr}(AB) \ne \operatorname{tr}A + \operatorname{tr}B in general. Take A=B=IA = B = I: tr⁡(I⋅I)=2\operatorname{tr}(I\cdot I) = 2 but tr⁡I+tr⁡I=4\operatorname{tr}I + \operatorname{tr}I = 4.

      use

      In S3S_3 compute σ∘τ\sigma\circ\tau and τ∘σ\tau\circ\sigma for σ=(2,3,1)\sigma = (2, 3, 1) and τ=(3,2,1)\tau = (3, 2, 1) (lists of σ(1),σ(2),σ(3)\sigma(1), \sigma(2), \sigma(3)), find σ−1\sigma^{-1}, and the sign of each of σ,τ,σ∘τ\sigma, \tau, \sigma\circ\tau.

      Solution

      σ∘τ\sigma\circ\tau: 1↦3↦11 \mapsto 3 \mapsto 1, 2↦2↦32 \mapsto 2 \mapsto 3, 3↦1↦23 \mapsto 1 \mapsto 2, so σ∘τ=(1,3,2)\sigma\circ\tau = (1, 3, 2). τ∘σ\tau\circ\sigma: 1↦2↦21 \mapsto 2 \mapsto 2, 2↦3↦12 \mapsto 3 \mapsto 1, 3↦1↦33 \mapsto 1 \mapsto 3, so τ∘σ=(2,1,3)\tau\circ\sigma = (2, 1, 3), a different permutation. σ−1\sigma^{-1} sends σ(i)\sigma(i) back to ii: 2↦12 \mapsto 1, 3↦23 \mapsto 2, 1↦31 \mapsto 3, so σ−1=(3,1,2)\sigma^{-1} = (3, 1, 2). Inversions: σ\sigma has 22 (sign +1+1), τ\tau has 33 (sign −1-1), σ∘τ\sigma\circ\tau has 11 (sign −1-1), and (+1)(−1)=−1(+1)(-1) = -1.

      use

      List the group Z15×\mathbb Z_{15}^\times, find the order of 22 and of 1111, and compute 21000 mod 152^{1000} \bmod 15.

      Solution

      Z15×={1,2,4,7,8,11,13,14}\mathbb Z_{15}^\times = \{1, 2, 4, 7, 8, 11, 13, 14\}. Powers of 22: 2,4,8,12, 4, 8, 1, so ord⁡(2)=4\operatorname{ord}(2) = 4. 112=121=8⋅15+111^2 = 121 = 8\cdot15 + 1, so ord⁡(11)=2\operatorname{ord}(11) = 2. Since ord⁡(2)=4\operatorname{ord}(2) = 4 and 1000=4⋅2501000 = 4\cdot250, 21000=(24)250≡12^{1000} = (2^4)^{250} \equiv 1.

      use

      In GF(4)={0,1,x,x+1}\mathrm{GF}(4) = \{0, 1, x, x + 1\} with x2=x+1x^2 = x + 1 over Z2\mathbb Z_2, compute (x+1)2(x + 1)^2, (x+1)−1(x+1)^{-1}, and solve x⋅y=x+1x\cdot y = x + 1.

      Solution

      (x+1)2=x2+2x+1=x2+1=x+1+1=x(x + 1)^2 = x^2 + 2x + 1 = x^2 + 1 = x + 1 + 1 = x. Since x(x+1)=x2+x=1x(x + 1) = x^2 + x = 1, (x+1)−1=x(x+1)^{-1} = x. For xy=x+1xy = x + 1: y=x−1(x+1)=(x+1)(x+1)=xy = x^{-1}(x + 1) = (x + 1)(x + 1) = x (using x−1=x+1x^{-1} = x + 1). Check: x⋅x=x+1x\cdot x = x + 1.

      use

      Is {A∈GL2(R):det⁡A=±1}\{A \in \mathrm{GL}_2(\mathbb R) : \det A = \pm1\} a subgroup? Is {A:det⁡A>0}\{A : \det A > 0\}? Is {A:A has integer entries}\{A : A \text{ has integer entries}\}?

      Solution

      Use the subgroup test. det⁡A=±1\det A = \pm1: if det⁡A,det⁡B∈{1,−1}\det A, \det B \in \{1, -1\} then det⁡(AB−1)=det⁡A/det⁡B∈{1,−1}\det(AB^{-1}) = \det A/\det B \in \{1, -1\}: yes. det⁡A>0\det A > 0: det⁡(AB−1)=det⁡A/det⁡B>0\det(AB^{-1}) = \det A/\det B > 0: yes. Integer entries: no. A=[2001]A = \begin{bmatrix}2&0\\0&1\end{bmatrix} is in the set, but A−1=[1/2001]A^{-1} = \begin{bmatrix}1/2&0\\0&1\end{bmatrix} is not, so the set is not closed under inverses.

      prove

      Prove that if g2=eg^2 = e for every element gg of a group GG, then GG is abelian.

      Solution

      For every gg, g2=eg^2 = e means g=g−1g = g^{-1}. Take a,b∈Ga, b \in G. Then abab also satisfies (ab)2=e(ab)^2 = e, so ab=(ab)−1=b−1a−1=baab = (ab)^{-1} = b^{-1}a^{-1} = ba, using the inverse-of-a-product rule and then a=a−1a = a^{-1}, b=b−1b = b^{-1}. So ab=baab = ba.

      prove

      Prove that the intersection H∩KH \cap K of two subgroups of GG is a subgroup. Give an example showing that the union of two subgroups need not be a subgroup.

      Solution

      e∈He \in H and e∈Ke \in K, so H∩KH \cap K is non-empty. If a,b∈H∩Ka, b \in H \cap K then ab−1∈Hab^{-1} \in H and ab−1∈Kab^{-1} \in K (each is a subgroup), so ab−1∈H∩Kab^{-1} \in H \cap K. By the subgroup test, H∩K≤GH\cap K \le G. For the union: in Z\mathbb Z take H=2ZH = 2\mathbb Z and K=3ZK = 3\mathbb Z. Then 2∈H∪K2 \in H\cup K and 3∈H∪K3 \in H\cup K, but 2+3=52 + 3 = 5 is in neither, so H∪KH\cup K is not closed.

      prove

      Let φ:G→H\varphi: G\to H be a homomorphism. Prove that for every g∈Gg \in G and k∈ker⁡φk \in \ker\varphi, gkg−1∈ker⁡φgkg^{-1} \in \ker\varphi.

      Solution

      φ(gkg−1)=φ(g)φ(k)φ(g−1)=φ(g) eH φ(g)−1=φ(g)φ(g)−1=eH\varphi(gkg^{-1}) = \varphi(g)\varphi(k)\varphi(g^{-1}) = \varphi(g)\,e_H\,\varphi(g)^{-1} = \varphi(g)\varphi(g)^{-1} = e_H. The first equality is the homomorphism property twice; then φ(k)=eH\varphi(k) = e_H and φ(g−1)=φ(g)−1\varphi(g^{-1}) = \varphi(g)^{-1} (identities and inverses are preserved). So gkg−1∈ker⁡φgkg^{-1} \in \ker\varphi. This is the property called “normal” in 541, and it is what lets one form G/ker⁡φG/\ker\varphi.

      prove

      Prove that a group of prime order pp has no subgroups except {e}\{e\} and itself, and is cyclic.

      Solution

      By Lagrange the order of a subgroup divides pp, so it is 11 or pp: the subgroup is {e}\{e\} or all of GG. Take g≠eg \ne e. The cyclic subgroup ⟨g⟩\langle g\rangle contains ee and gg, so it has at least 22 elements, hence pp elements, so ⟨g⟩=G\langle g\rangle = G. A group generated by one element is cyclic.

      prove

      Prove that ∣An∣=n!/2\lvert A_n\rvert = n!/2 for n≥2n \ge 2, where AnA_n is the set of even permutations in SnS_n.

      Solution

      Let OO be the set of odd permutations, so SnS_n is the disjoint union of AnA_n and OO. Let τ\tau be the transposition swapping 11 and 22; it has sign −1-1. Define f:An→Of: A_n \to O by f(σ)=τ∘σf(\sigma) = \tau\circ\sigma. Its sign is sgn⁡(τ)sgn⁡(σ)=−1\operatorname{sgn}(\tau)\operatorname{sgn}(\sigma) = -1, so f(σ)∈Of(\sigma) \in O (sign is a homomorphism). It is one-to-one by cancellation, and onto: if ρ∈O\rho \in O then τ−1∘ρ=τ∘ρ\tau^{-1}\circ\rho = \tau\circ\rho has sign (−1)(−1)=1(-1)(-1) = 1 so lies in AnA_n and f(τ∘ρ)=τ∘τ∘ρ=ρf(\tau\circ\rho) = \tau\circ\tau\circ\rho = \rho. So ∣An∣=∣O∣\lvert A_n\rvert = \lvert O\rvert, and ∣An∣+∣O∣=n!\lvert A_n\rvert + \lvert O\rvert = n! gives ∣An∣=n!/2\lvert A_n\rvert = n!/2. (This is the statement that AnA_n has index 22 in SnS_n.)

      stretch

      A finite commutative ring RR with 1≠01 \ne 0 and no zero divisors is a field. Prove it. Where does this explain the theorem on Zn\mathbb Z_n?

      Solution

      Let a≠0a \ne 0 in RR and define f:R→Rf: R\to R, f(x)=axf(x) = ax. If f(x)=f(y)f(x) = f(y) then a(x−y)=0a(x - y) = 0, and since a≠0a \ne 0 and there are no zero divisors, x−y=0x - y = 0. So ff is one-to-one. A one-to-one map from a finite set to itself is onto (pigeonhole, 0.3), so some xx has ax=1ax = 1. Hence aa has an inverse, and RR is a field. For Zp\mathbb Z_p with pp prime: if ab≡0ab \equiv 0 then p∣abp \mid ab, so p∣ap \mid a or p∣bp \mid b by Euclid’s lemma (0.5), so Zp\mathbb Z_p has no zero divisors, and the result makes it a field without computing any Bézout coefficients.

      stretch

      Show that every group of order 44 is isomorphic to Z4\mathbb Z_4 or to the group {1,3,5,7}\{1, 3, 5, 7\} of the picture.

      Solution

      Let ∣G∣=4\lvert G\rvert = 4. By Lagrange every element has order 11, 22 or 44. If some gg has order 44, then ⟨g⟩\langle g\rangle has 44 elements, so G=⟨g⟩={e,g,g2,g3}G = \langle g\rangle = \{e, g, g^2, g^3\}, and gk↦kg^k \mapsto k is an isomorphism with Z4\mathbb Z_4. Otherwise every element has order 11 or 22, so g2=eg^2 = e for all gg, and GG is abelian (earlier problem). Take non-identity a≠ba \ne b. Then ab∉{e,a,b}ab \notin \{e, a, b\}: ab=eab = e would give b=a−1=ab = a^{-1} = a; ab=aab = a gives b=eb = e; ab=bab = b gives a=ea = e. So G={e,a,b,ab}G = \{e, a, b, ab\}, with a2=b2=(ab)2=ea^2 = b^2 = (ab)^2 = e and ab=baab = ba. These rules fix the whole table, and the map e↦1e \mapsto 1, a↦3a \mapsto 3, b↦5b \mapsto 5, ab↦7ab \mapsto 7 matches it with the mod-88 table (3⋅5=15≡73\cdot5 = 15 \equiv 7).

      Summary

      • A group is a set with an associative operation, an identity and inverses: a family of reversible moves. Commutativity is not required (GLn\mathrm{GL}_n, SnS_n). Consequences: unique identity and inverses, (ab)−1=b−1a−1(ab)^{-1} = b^{-1}a^{-1}, cancellation, and a unique solution of ax=bax = b.
      • A subgroup is a subset that is itself a group (test: ab−1ab^{-1} stays inside). The order of an element is the size of the subgroup it generates.
      • Lagrange’s theorem: ∣H∣\lvert H\rvert divides ∣G∣\lvert G\rvert, because the cosets of HH partition GG into equal-sized pieces (0.4 and 3.7). Consequences: element orders divide ∣G∣\lvert G\rvert, Fermat and Euler for Zn×\mathbb Z_n^\times. The converse is false (A4A_4).
      • A homomorphism respects the operation. Its kernel (the null space of 2.3, in group language) is a subgroup, and it is one-to-one iff the kernel is trivial. Examples: det⁡\det with kernel SLn\mathrm{SL}_n, sgn⁡\operatorname{sgn} with kernel AnA_n, reduction mod nn.
      • A ring has ++ (an abelian group) and ×\times (associative, with 11) linked by the distributive law; Z\mathbb Z, Zn\mathbb Z_n, polynomials and matrices are rings.
      • A field is a commutative ring where every non-zero element has an inverse. Zn\mathbb Z_n is a field iff nn is prime (Bézout one way, zero divisors the other); finite fields with pnp^n elements exist.
      • Vector spaces need a field of scalars because linear algebra divides by scalars; over a ring like Z6\mathbb Z_6 the notions of basis and dimension collapse.
      • Uses: Diffie–Hellman and RSA live in Zn×\mathbb Z_n^\times; crystals and molecules have symmetry groups; QR codes use Reed–Solomon codes over GF(256)\mathrm{GF}(256); the Rubik’s cube group has about 4.3×10194.3\times10^{19} elements.

      Watch and read

      The same ideas explained by someone else. Use these when an explanation here does not land.

      Where this sits

      Comes from
      0.4 Equivalence relations and partitions
      0.5 Integers mod n, gcd and Bézout
      2.1 Vector spaces and subspaces
      2.7 Determinants
      3.3 Orthogonal matrices, rotations and reflections
      3.7 Dual spaces and quotient spaces
      Leads to
      See the next unit
      Same idea elsewhere
      MATH 541: This chapter is a preview of the first weeks of 541: groups, subgroups, cosets and Lagrange's theorem, homomorphisms, then rings and fields. What 541 adds is normal subgroups and quotient groups (the group version of the quotient space of 3.7), group actions, the Sylow theorems, and Galois theory.
      MATH 540: Linear algebra over a general field, not only the reals, is how 540 starts. Finite fields, the rational canonical form and the Jordan form over fields that are not algebraically closed all need the notion of a field from this chapter.
      CS 240: Modular arithmetic and Euclid's algorithm are the main tools; this chapter shows the structure they live in. Cryptography and coding theory courses use exactly the groups and finite fields of this chapter.
      MATH 431 / physics: Symmetry groups (rotations, reflections, permutations of identical particles) organise probability models with exchangeable variables and the quantum mechanics of identical particles.