Mathematics · Book 4 · Bachelor Year 2

University Mathematics — Year 2

University Mathematics — Year 2 · Bachelor Year 2

1Sets and Structures

This opening chapter sharpens the foundations laid in the Year 1 volume into working tools of the trade: the calculus of sets and quotients, the comparison of infinite sets (countability, Cantor–Bernstein), and the structural theory of groups and rings — Lagrange’s theorem, the symmetric group with its signature, ideals and the Chinese remainder theorem. Everything here is used relentlessly in the rest of the book: the signature builds the determinant (Chapter 2), quotient rings drive arithmetic, and countability underlies both topology and probability.

1.1 Sets, maps, quotients

We use freely the language of sets, maps, and equivalence and order relations set up in the Year 1 volume. Two upgrades deserve a proper statement.

Proposition 1.1 (Images and preimages of families)

Let f ⁣:EFf \colon E \to F and let (Ai)iI(A_i)_{i \in I}, (Bj)jJ(B_j)_{j \in J} be families of subsets of EE, resp. FF. Then

f1(jBj)=jf1(Bj),f1(jBj)=jf1(Bj),f1(FB)=Ef1(B),f^{-1}\Bigl(\bigcup_j B_j\Bigr) = \bigcup_j f^{-1}(B_j), \qquad f^{-1}\Bigl(\bigcap_j B_j\Bigr) = \bigcap_j f^{-1}(B_j), \qquad f^{-1}(F \setminus B) = E \setminus f^{-1}(B),
f(iAi)=if(Ai),f(iAi)if(Ai)(equality for injective f).f\Bigl(\bigcup_i A_i\Bigr) = \bigcup_i f(A_i), \qquad f\Bigl(\bigcap_i A_i\Bigr) \subseteq \bigcap_i f(A_i) \quad (\text{equality for injective } f).

Proof. Each identity is an unwinding of definitions; for instance xf1(Bj)    f(x)Bjx \in f^{-1}(\bigcap B_j) \iff f(x) \in B_j for all jj     xf1(Bj)\iff x \in f^{-1}(B_j) for all jj. The image identities and the failure of equality in the intersection case (with the injectivity fix) were proved in the Year 1 volume for two sets; the arguments are identical for families.

Example 1.2 (Where the image inclusion is strict)

Take f ⁣:RRf \colon \R \to \R, f(x)=x2f(x) = x^2, with A1=[1,0]A_1 = \intcc{-1}{0} and A2=[0,1]A_2 = \intcc{0}{1}. Then

f(A1A2)=f({0})={0},f(A1)f(A2)=[0,1][0,1]=[0,1]:f(A_1 \cap A_2) = f(\{0\}) = \{0\}, \qquad f(A_1) \cap f(A_2) = \intcc{0}{1} \cap \intcc{0}{1} = \intcc{0}{1} :

the inclusion of Proposition 1.1 is as strict as can be — the two preimage points ±x\pm x of a common value live in different AiA_i. Injectivity is exactly what forbids this splitting, which is why preimages (which never merge points) satisfy all four identities unconditionally while images lose the one about intersections. Rule of thumb for the whole book: push preimages through set operations freely; handle images with care.

Definition 1.3 (Quotient set)

Let R\mathcal{R} be an equivalence relation on EE. The quotient set E/RE/\mathcal{R} is the set of equivalence classes; the surjection π ⁣:EE/R\pi \colon E \to E/\mathcal{R}, xcl(x)x \mapsto \mathrm{cl}(x), is the canonical projection.

Universal property (factorization): if f ⁣:EFf \colon E \to F is compatible with R\mathcal{R} (i.e. xRy    f(x)=f(y)x \mathbin{\mathcal{R}} y \implies f(x) = f(y)), there is exactly one map f ⁣:E/RF\overline f \colon E/\mathcal{R} \to F with f=fπf = \overline f \circ \pi.

Proof of the universal property. Uniqueness: the requirement f=fπf = \overline f \circ \pi reads

f(cl(x))=f(x)(xE),\overline f\bigl(\mathrm{cl}(x)\bigr) = f(x) \qquad (x \in E),

and since π\pi is surjective, every element of E/RE/\mathcal{R} is some cl(x)\mathrm{cl}(x): the values of f\overline f are all forced. Existence: take the display as the definition of f\overline f; it is unambiguous precisely by compatibility — if cl(x)=cl(y)\mathrm{cl}(x) = \mathrm{cl}(y), then xRyx \mathbin{\mathcal{R}} y, so f(x)=f(y)f(x) = f(y) and the two candidate values agree — and it factorizes ff by construction. Note the division of labour: surjectivity of π\pi gives uniqueness, compatibility gives existence.

Example 1.4

Z/nZ\Z/n\Z is the quotient of Z\Z by congruence modulo nn; the well-definedness checks of the Year 1 volume were instances of the universal property. Quotients turn “compatible constructions on representatives” into honest maps — we use this constantly below.

1.2 Countability and cardinality

Definition 1.5 (Equipotence, countability)

Two sets are equipotent when a bijection joins them. A set is countable when it is equipotent to N\N (some authors include finite sets; we say at most countable for “finite or countable”).

Proposition 1.6 (Stability properties)

  1. Every infinite subset of N\N is countable; a set is at most countable iff it injects into N\N iff it is empty or a surjective image of N\N.
  2. N×N\N \times \N is countable; a product of two at most countable sets is at most countable.
  3. An at most countable union of at most countable sets is at most countable.
  4. Z\Z and Q\Q are countable.

Proof. (1) List an infinite ANA \subseteq \N by repeated minima: a0=minAa_0 = \min A, ak+1=min(A{a0,,ak})a_{k+1} = \min\,(A \setminus \{a_0, \dots, a_k\}) (nonempty since AA is infinite); the map kakk \mapsto a_k is strictly increasing, injective, and surjective onto AA (every aAa \in A exceeds only finitely many elements of AA, so it is reached). If EE injects into N\N via φ\varphi, then EE is equipotent to φ(E)N\varphi(E) \subseteq \N: finite or countable. If s ⁣:NEs \colon \N \to E is surjective, then xmins1({x})x \mapsto \min s^{-1}(\{x\}) injects EE into N\N.

(2) The map (p,q)2p(2q+1)1(p, q) \mapsto 2^p(2q + 1) - 1 is a bijection N2N\N^2 \to \N (every positive integer has a unique odd–even split 2pm2^p m with mm odd, by unique factorization). Products: compose injections.

(3) Given sets EnE_n with surjections sn ⁣:NEns_n \colon \N \to E_n (harmless when some EnE_n is finite: repeat values), the map (n,k)sn(k)(n, k) \mapsto s_n(k) is a surjection from the countable N2\N^2 onto En\bigcup E_n.

(4) Z=N(N)\Z = \N \cup (-\N^*): countable union. Q\Q is a surjective image of Z×N\Z \times \N^* (the fraction map), hence at most countable, and infinite.

Example 1.7 (A pairing function, computed)

The bijection (p,q)2p(2q+1)1(p, q) \mapsto 2^p(2q + 1) - 1 of the proof deserves to be seen at work. Its first values:

q=0q=1q=2q=3q=4p=002468p=11591317p=2311192735p=3723395571\begin{array}{c|ccccc} & q = 0 & q = 1 & q = 2 & q = 3 & q = 4\\ \hline p = 0 & 0 & 2 & 4 & 6 & 8\\ p = 1 & 1 & 5 & 9 & 13 & 17\\ p = 2 & 3 & 11 & 19 & 27 & 35\\ p = 3 & 7 & 23 & 39 & 55 & 71 \end{array}

Row pp collects the integers nn for which n+1n + 1 is exactly divisible by 2p2^p: every natural number appears exactly once. Decoding is as explicit as encoding: for n=43n = 43, factor n+1=44=2211=22(25+1)n + 1 = 44 = 2^2\cdot 11 = 2^2(2\cdot5 + 1), so (p,q)=(2,5)(p, q) = (2, 5). The closing insight: countability proofs are often algorithms in disguise — here, “factor out the twos”.

Example 1.8 (The algebraic numbers are countable)

A complex number is algebraic when it annihilates some nonzero polynomial with rational coefficients. The set Q\overline\Q of algebraic numbers is countable: polynomials of degree d\leq d over Q\Q inject into Qd+1\Q^{d+1}, a finite product of countable sets (Proposition 1.6 (2)); the union over dd enumerates the nonzero rational polynomials as P0,P1,P2,P_0, P_1, P_2, \dots; each PkP_k has finitely many roots; and

Q=kN {roots of Pk}\overline\Q = \bigcup_{k \in \N}\ \{\text{roots of } P_k\}

is a countable union of finite sets (Proposition 1.6 (3)), infinite since it contains Q\Q. Combined with the uncountability of R\R (Theorem 1.9 below), this proves — without exhibiting a single one — that transcendental numbers exist and form an uncountable majority: Cantor’s counting argument of 1874, existence by cardinality alone.

Theorem 1.9 (Cantor; uncountability of R\R)

  1. For every set EE, there is no surjection EP(E)E \to \mathcal{P}(E).
  2. R\R is not countable.

Proof. (1) was proved in the Year 1 volume (the diagonal set D={x:xf(x)}D = \{x : x \notin f(x)\}).

(2) Suppose (xn)nN(x_n)_{n \in \N} enumerates R\R. Build nested segments I0I1I_0 \supseteq I_1 \supseteq \dots with In=3n\abs{I_n} = 3^{-n} and xnInx_n \notin I_n: split the current segment into three closed thirds; at least one third avoids xnx_n (a point meets at most two of the three). The nested-segments theorem (adjacent endpoints) provides nIn\ell \in \bigcap_n I_n; but =xN\ell = x_N for some NN, and xNINx_N \notin I_N: contradiction.

Theorem 1.10 (Cantor–Bernstein)

If EE injects into FF and FF injects into EE, then EE and FF are equipotent.

Proof. Let f ⁣:EFf \colon E \to F and g ⁣:FEg \colon F \to E be injections. For each point (of EE or FF), trace its ancestor chain of successive preimages, xg1(x)f1(g1(x))x \mapsto g^{-1}(x) \mapsto f^{-1}(g^{-1}(x)) \mapsto \dots — each step is defined as long as the current point lies in the image of the relevant injection, and is then unique by injectivity. Three mutually exclusive fates: the chain stops at a point of Eg(F)E \setminus g(F) (origin in EE), stops at a point of Ff(E)F \setminus f(E) (origin in FF), or never stops. This partitions E=EEEFEE = E_E \cup E_F \cup E_\infty and F=FEFFFF = F_E \cup F_F \cup F_\infty according to the origin.

Now observe: ff maps EEE_E onto FEF_E — the chain of f(x)f(x) is the chain of xx prefixed with one step, so origins match; and every yFEy \in F_E has a chain with at least one step (its origin lies in EE), so y=f(x)y = f(x) with xEEx \in E_E. The same argument gives bijections f ⁣:EFf \colon E_\infty \to F_\infty and g ⁣:FFEFg \colon F_F \to E_F. Gluing,

h(x)={f(x)if xEEE,g1(x)if xEF,h(x) = \begin{cases} f(x) & \text{if } x \in E_E \cup E_\infty,\\ g^{-1}(x) & \text{if } x \in E_F, \end{cases}

is a bijection from EE onto F=FEFFFF = F_E \cup F_\infty \cup F_F: it is bijective piecewise, and the three target pieces are disjoint.

Example 1.11

(0,1)\intoo{0}{1} and [0,1]\intcc{0}{1} are equipotent: the identity injects one way, xx+13x \mapsto \frac{x + 1}{3} the other; the theorem manufactures the (necessarily discontinuous) bijection. Likewise R\R, (0,1)\intoo{0}{1} (via tanh\tanh-type bijections) and P(N)\mathcal{P}(\N) (binary expansions, Exercise 1.3) are all equipotent: “the cardinality of the continuum”.

Example 1.12 (The segment and the square)

[0,1]\intcc{0}{1} and [0,1]2\intcc{0}{1}^2 are equipotent — dimension is invisible to cardinality. One injection is trivial: x(x,0)x \mapsto (x, 0). For the other, send (x,y)(x, y) to the real whose decimal digits interleave those of xx and yy,

(0.x1x2x3, 0.y1y2y3)    0.x1y1x2y2x3y3,(0.x_1x_2x_3\dots,\ 0.y_1y_2y_3\dots) \;\longmapsto\; 0.x_1y_1x_2y_2x_3y_3\dots,

choosing for each coordinate the expansion that does not end in all 99’s: with that convention the digits of the image determine those of xx and yy, so the map is injective (it need not be surjective — images never have, say, odd-position digits eventually 99 — and that is fine). Cantor–Bernstein (Theorem 1.10) assembles a genuine bijection. Continuity, of course, is hopeless: a continuous bijection between them is impossible — the metric chapters explain why (connectedness distinguishes the line from the plane, Chapter 4).

1.3 Groups

Definition 1.13 (Generated subgroup; order)

Let GG be a group and AGA \subseteq G. The subgroup generated by AA, written A\langle A \rangle, is the smallest subgroup containing AA — concretely, all finite products of elements of AA and their inverses. A group is cyclic when generated by one element: a={ak:kZ}\langle a\rangle = \{a^k : k \in \Z\}. The order of aGa \in G is ord(a)=a\operatorname{ord}(a) = \abs{\langle a \rangle} (possibly infinite); when finite, it is the least n1n \geq 1 with an=ea^n = e, and ak=e    ord(a)ka^k = e \iff \operatorname{ord}(a) \mid k.

Proof of the order characterization. If some am=ea^m = e with m1m \geq 1, let n1n \geq 1 be least with an=ea^n = e. The elements e,a,,an1e, a, \dots, a^{n-1} are pairwise distinct (ai=aja^{i} = a^{j} with 0i<j<n0 \leq i < j < n gives aji=ea^{j-i} = e, contradicting minimality), and every aka^k reduces to one of them by Euclidean division k=nq+rk = nq + r: a\langle a\rangle has exactly nn elements, and ak=ar=e    r=0    nka^k = a^r = e \iff r = 0 \iff n \mid k. If no power is trivial, all aka^k (kZk \in \Z) are distinct (same division argument) and the order is infinite.

Theorem 1.14 (Lagrange)

Let GG be a finite group and HH a subgroup. Then H\abs H divides G\abs G. In particular the order of every element divides G\abs G, and aG=ea^{\abs G} = e for all aGa \in G.

Proof. The relation xy    x1yHx \sim y \iff x^{-1}y \in H is an equivalence (reflexive: eHe \in H; symmetric: inverses; transitive: products). The class of xx is the left coset xH={xh:hH}xH = \{xh : h \in H\}, and hxhh \mapsto xh is a bijection HxHH \to xH (inverse yx1yy \mapsto x^{-1}y): all classes have H\abs H elements. Classes partition GG (the general partition theorem of the Year 1 volume), so G=H×(number of cosets)\abs G = \abs H \times (\text{number of cosets}). For an element: apply this to H=aH = \langle a\rangle; then aG=(aorda)G/orda=ea^{\abs G} = (a^{\operatorname{ord} a})^{\abs G / \operatorname{ord} a} = e.

Example 1.15 (Cosets in action: A3A_3 inside S3\mathfrak{S}_3)

Take G=S3G = \mathfrak{S}_3 (order 66) and H=A3={id, (123), (132)}H = A_3 = \{\mathrm{id},\ (1\,2\,3),\ (1\,3\,2)\}. The left cosets are

H={id, (123), (132)},(12)H={(12), (23), (13)}:H = \{\mathrm{id},\ (1\,2\,3),\ (1\,3\,2)\}, \qquad (1\,2)H = \{(1\,2),\ (2\,3),\ (1\,3)\} :

two classes of three elements partitioning GG, exactly as the count G=H×(number of cosets)\abs G = \abs H \times (\text{number of cosets}) demands — and visibly the partition into even and odd permutations. Note (13)H=(12)H(1\,3)H = (1\,2)H although (13)(12)(1\,3) \neq (1\,2): cosets are classes, not labelled by their representatives, and x1yHx^{-1}y \in H is the only legitimate comparison. This two-class picture is the general one for the signature: AnA_n and its lone companion coset split Sn\mathfrak{S}_n in half, which is how the weekend problem counts reachable puzzle positions.

Example 1.16

Two immediate dividends. Groups of prime order are cyclic: if G=p\abs G = p is prime and aea \neq e, then ord(a)\operatorname{ord}(a) divides pp and is not 11, so it is pp: a=G\langle a\rangle = G. The subgroup lattice of Z/12Z\Z/12\Z: by Proposition 1.17 below, there is exactly one subgroup per divisor of 1212orders 1,2,3,4,6,121, 2, 3, 4, 6, 12, generated respectively by 0\overline 0, 6\overline 6, 4\overline 4, 3\overline 3, 2\overline 2, 1\overline 1. The closing caution: the converse of Lagrange fails in general — A4A_4 has order 1212 but no subgroup of order 66, as we prove in this chapter’s weekend problem (Problem 1.1, question 14). Lagrange restricts the possible orders; it does not promise them.

The subgroup lattice of ℤ/12ℤ: one subgroup per divisor of 12 (), with an edge when one contains the other with prime index. Inclusions run against divisibility of the generator: 4 ⊂eq 2 because 4 is a multiple of 2.
The subgroup lattice of Z/12Z\Z/12\Z: one subgroup per divisor of 1212 (Proposition 1.17), with an edge when one contains the other with prime index. Inclusions run against divisibility of the generator: 42\langle\overline 4\rangle \subseteq \langle\overline2\rangle because 44 is a multiple of 22.

Proposition 1.17 (Cyclic groups)

Let G=aG = \langle a \rangle be cyclic of order nn.

  1. GG is isomorphic to (Z/nZ,+)(\Z/n\Z, +), via kak\overline k \mapsto a^k.
  2. Every subgroup of GG is cyclic; for each divisor dnd \mid n there is exactly one subgroup of order dd, namely an/d\langle a^{n/d}\rangle.
  3. aka^k generates GG if and only if gcd(k,n)=1\gcd(k, n) = 1: GG has φ(n)\varphi(n) generators (Euler’s function).

Proof. (1) The map kakk \mapsto a^k from Z\Z onto GG is compatible with congruence mod nn (ak=ak    nkka^{k} = a^{k'} \iff n \mid k - k', by the order characterization); the universal property (Definition 1.3) yields a well-defined bijective morphism from Z/nZ\Z/n\Z.

(2) Let HGH \leq G be nontrivial and mm least 1\geq 1 with amHa^m \in H. Euclidean division shows H=amH = \langle a^m\rangle (for akHa^k \in H: k=mq+rk = mq + r forces arHa^r \in H, so r=0r = 0), and mnm \mid n (divide nn by mm: anmodmHa^{n \bmod m} \in H). Then H=n/m\abs H = n/m; taking m=n/dm = n/d realizes each divisor dd. Uniqueness: any subgroup of order dd is, by the above, of the form am\langle a^m \rangle with n/m=dn/m = d — so m=n/dm = n/d is forced and the subgroup is determined.

(3) We claim ord(ak)=ngcd(k,n)\operatorname{ord}(a^k) = \frac{n}{\gcd(k, n)}. Write d=gcd(k,n)d = \gcd(k, n). For any m1m \geq 1, the order characterization of Definition 1.13 gives the chain of equivalences

(ak)m=e    nkm    ndkdm    ndm,(a^k)^m = e \iff n \mid km \iff \frac{n}{d} \,\Big|\, \frac{k}{d}\,m \iff \frac{n}{d} \,\Big|\, m ,

the last step by Gauss’s lemma, since nd\frac nd and kd\frac kd are coprime. The least such mm is nd\frac nd: ord(ak)=ngcd(k,n)\operatorname{ord}(a^k) = \frac n{\gcd(k,n)}, which equals nn iff gcd(k,n)=1\gcd(k, n) = 1. There are φ(n)\varphi(n) such classes kk modulo nn.

1.4 The symmetric group

Definition 1.18

Sn\mathfrak{S}_n is the group of permutations of [ ⁣[1,n] ⁣]\intint{1}{n} (order n!n!). A cycle (a1a2ak)(a_1\,a_2\,\cdots\,a_k) maps a1a2aka1a_1 \mapsto a_2 \mapsto \dots \mapsto a_k \mapsto a_1 and fixes everything else; kk is its length, a 22-cycle is a transposition. Two cycles are disjoint when their supports (non-fixed points) are.

Theorem 1.19 (Cycle decomposition)

Every permutation σid\sigma \neq \mathrm{id} is a product of pairwise disjoint cycles, uniquely up to the order of the factors. Disjoint cycles commute, and ord(σ)\operatorname{ord}(\sigma) is the lcm of the lengths.

Proof. Consider the “orbit” relation on the support of σ\sigma: xyx \sim y iff y=σk(x)y = \sigma^k(x) for some kZk \in \Z — an equivalence relation. Each class {x,σ(x),,σk1(x)}\{x, \sigma(x), \dots, \sigma^{k-1}(x)\} (finite, so the iterates cycle back — the first repetition must return to xx by injectivity) carries the cycle (x σ(x)  σk1(x))(x\ \sigma(x)\ \cdots\ \sigma^{k-1}(x)), and σ\sigma is the product of these cycles: on each orbit, only the corresponding cycle acts. Uniqueness: any disjoint-cycle factorization reproduces exactly the orbits (the cycle through xx must be (x σ(x) )(x\ \sigma(x)\ \cdots)). Disjoint cycles commute since they move disjoint points; the order statement follows because σm=id\sigma^m = \mathrm{id} iff each cycle’s mm-th power is (disjointness), iff each length divides mm.

Example 1.20 (Cycle type as a census)

How many permutations of S9\mathfrak{S}_9 have the cycle type (4,3,2)(4, 3, 2) — one 44-cycle, one 33-cycle, one transposition? Choose the supports and the cyclic orders:

9!432=36288024=15120:\frac{9!}{4\cdot 3\cdot 2} = \frac{362\,880}{24} = 15\,120 :

list the nine symbols in a row (9!9! ways), bracket the first four, next three, last two into cycles, and divide by the rotations inside each bracket (44, 33 and 22 of them) which give the same permutation. (Distinct cycle lengths here, so no further division; equal lengths would also require dividing by the permutations of the equal brackets.) Every such permutation has order lcm(4,3,2)=12\operatorname{lcm}(4,3,2) = 12 and signature (1)3(1)2(1)1=+1(-1)^3(-1)^2(-1)^1 = +1 (Theorem 1.19 and the signature theorem below). One partition of 99, one conjugacy class, one census — the combinatorics of Sn\mathfrak{S}_n is the arithmetic of partitions.

Theorem 1.21 (Signature)

There is exactly one group morphism ε ⁣:Sn{±1}\varepsilon \colon \mathfrak{S}_n \to \{\pm 1\} (for n2n \geq 2) taking the value 1-1 on transpositions: the signature. Moreover ε(σ)=(1)I(σ)\varepsilon(\sigma) = (-1)^{I(\sigma)} where I(σ)I(\sigma) is the number of inversions (pairs i<ji < j with σ(i)>σ(j)\sigma(i) > \sigma(j)), a kk-cycle has signature (1)k1(-1)^{k-1}, and the alternating group An=kerεA_n = \ker\varepsilon has order n!2\frac{n!}{2}.

Proof. Existence. For σSn\sigma \in \mathfrak{S}_n set

ε(σ)=1i<jnσ(j)σ(i)ji.\varepsilon(\sigma) = \prod_{1 \leq i < j \leq n} \frac{\sigma(j) - \sigma(i)}{j - i} .

The factors’ absolute values multiply to 11 (the unordered pairs {σ(i),σ(j)}\{\sigma(i), \sigma(j)\} run over all pairs), so ε(σ)=(1)I(σ){±1}\varepsilon(\sigma) = (-1)^{I(\sigma)} \in \{\pm1\}. Morphism: for σ,τ\sigma, \tau,

ε(στ)=i<jσ(τ(j))σ(τ(i))ji=i<jσ(τ(j))σ(τ(i))τ(j)τ(i)i<jτ(j)τ(i)ji=ε(σ)ε(τ),\varepsilon(\sigma\tau) = \prod_{i<j} \frac{\sigma(\tau(j)) - \sigma(\tau(i))}{j - i} = \prod_{i<j} \frac{\sigma(\tau(j)) - \sigma(\tau(i))}{\tau(j) - \tau(i)} \cdot \prod_{i<j} \frac{\tau(j) - \tau(i)}{j - i} = \varepsilon(\sigma)\,\varepsilon(\tau),

the middle product being ε(σ)\varepsilon(\sigma) after reindexing by the pairs {τ(i),τ(j)}\{\tau(i), \tau(j)\} (each unordered pair appears once, and numerator and denominator flip sign together). A transposition τ=(ab)\tau = (a\,b) with a<ba < b has an odd number of inversions; counted exactly: the inverted pairs (i,j)(i, j), i<ji < j, with τ(i)>τ(j)\tau(i) > \tau(j) are

(a,j) for a<j<b,(i,b) for a<i<b,(a,b) itself,(a, j) \ \text{for } a < j < b, \qquad (i, b) \ \text{for } a < i < b, \qquad (a, b) \ \text{itself},

that is (ba1)+(ba1)+1=2(ba)1(b - a - 1) + (b - a - 1) + 1 = 2(b - a) - 1 of them, odd. (Alternatively: check (12)(1\,2) directly, with one inversion, and conjugate — conjugates have equal signature since ε\varepsilon is a morphism to an abelian group.) Hence ε((ab))=(1)2(ba)1=1\varepsilon((a\,b)) = (-1)^{2(b-a)-1} = -1.

Uniqueness. Transpositions generate Sn\mathfrak{S}_n (any cycle (a1ak)=(a1ak)(a1ak1)(a1a2)(a_1\cdots a_k) = (a_1\,a_k)(a_1\,a_{k-1})\cdots(a_1\,a_2), and Theorem 1.19 finishes); a morphism to {±1}\{\pm1\} is determined by its values on generators.

Consequences. The cycle identity above writes a kk-cycle as k1k - 1 transpositions: signature (1)k1(-1)^{k-1}. AnA_n: the morphism ε\varepsilon is surjective (transpositions exist for n2n \geq 2), and the two “cosets” AnA_n and (12)An(1\,2)A_n are equipotent and partition Sn\mathfrak{S}_n (Lagrange’s argument): An=n!2\abs{A_n} = \frac{n!}{2}.

Example 1.22

σ=(123456365412)=(135)(26)\sigma = \begin{pmatrix} 1&2&3&4&5&6\\ 3&6&5&4&1&2 \end{pmatrix} = (1\,3\,5)(2\,6): order lcm(3,2)=6\operatorname{lcm}(3,2) = 6, signature (1)2(1)1=1(-1)^{2}\cdot(-1)^{1} = -1. The signature is the fastest parity check on shuffles — and the engine of the determinant in Chapter 2.

Example 1.23 (Three roads to one sign)

Let σS5\sigma \in \mathfrak{S}_5 send 1,2,3,4,51, 2, 3, 4, 5 to 3,5,4,1,23, 5, 4, 1, 2. Via cycles: 13411 \mapsto 3 \mapsto 4 \mapsto 1 and 2522 \mapsto 5 \mapsto 2, so σ=(134)(25)\sigma = (1\,3\,4)(2\,5) and ε(σ)=(1)2(1)1=1\varepsilon(\sigma) = (-1)^{2}(-1)^{1} = -1. Via inversions: in the value list 3,5,4,1,23, 5, 4, 1, 2 the out-of-order pairs are (3,1)(3,1), (3,2)(3,2), (5,4)(5,4), (5,1)(5,1), (5,2)(5,2), (4,1)(4,1), (4,2)(4,2): seven of them, and (1)7=1(-1)^7 = -1. Via transpositions: σ=(14)(13)(25)\sigma = (1\,4)(1\,3)(2\,5), three factors, (1)3=1(-1)^3 = -1. Three computations, one parity: the uniqueness in Theorem 1.21 guarantees that no bookkeeping scheme can ever make them disagree — which is exactly what makes ε\varepsilon usable as an invariant (see the weekend problem).

Remark 1.24 (Where the signature goes from here)

The signature is the seed of three later harvests: it builds the determinant and its product rule in Chapter 2; it powers parity invariants for combinatorial puzzles (this chapter’s weekend problem solves the fifteen puzzle with it); and the alternating groups AnA_n it defines become central in the Year 3 volume, where their simplicity for n5n \geq 5 explains why degree-55 equations have no solution in radicals.

1.5 Rings, ideals, quotients

Definition 1.25 (Ideal)

Let AA be a commutative ring. An ideal IAI \subseteq A is an additive subgroup such that axIa x \in I for all aAa \in A, xIx \in I. Kernels of ring morphisms are ideals; I=AI = A iff 1I1 \in I iff II contains a unit. The ideal generated by xx is xA={xa}xA = \{xa\} (a principal ideal).

Theorem 1.26 (Ideals of Z\Z and of K[X]K[X])

Every ideal of Z\Z is nZn\Z for a unique nNn \in \N; every ideal of K[X]K[X] (KK a field) is PK[X]P\,K[X] for a unique monic (or zero) PP. Consequently gcd’s exist in both rings with Bézout relations: xZ+yZ=gcd(x,y)Zx\Z + y\Z = \gcd(x,y)\Z, and likewise for polynomials.

Proof. For Z\Z this was the subgroup theorem of the Year 1 volume (an ideal is in particular a subgroup, and nZn\Z is an ideal). For K[X]K[X]: let I{0}I \neq \{0\} be an ideal and PIP \in I nonzero of minimal degree, normalized monic. For FIF \in I, Euclidean division F=PQ+RF = PQ + R gives R=FPQIR = F - PQ \in I with degR<degP\deg R < \deg P: minimality forces R=0R = 0, so I=PK[X]I = P\,K[X]. Uniqueness: two monic generators divide each other. The Bézout statements are the equality of the ideal xZ+yZx\Z + y\Z (resp. its polynomial analogue) with the principal ideal of the gcd — the very definition of gcd used in Year 1, now recognized as a statement about ideals.

Example 1.27 (A polynomial gcd, two ways)

Compute gcd(X31, X21)\gcd(X^3 - 1,\ X^2 - 1) in Q[X]\Q[X]. By Euclid:

X31=X(X21)+(X1),X21=(X+1)(X1)+0,X^3 - 1 = X\,(X^2 - 1) + (X - 1), \qquad X^2 - 1 = (X + 1)(X - 1) + 0 ,

so the gcd is X1X - 1, and back-substitution gives the Bézout relation

X1=1(X31)X(X21).X - 1 = 1\cdot(X^3 - 1) - X\cdot(X^2 - 1).

By ideals: the ideal (X31)Q[X]+(X21)Q[X](X^3 - 1)\Q[X] + (X^2 - 1)\Q[X] is principal (Theorem 1.26); it contains X1X - 1 (the display) and is contained in (X1)Q[X](X - 1)\Q[X] (both generators vanish at 11, hence are multiples of X1X - 1): the monic generator is X1X - 1. The closing insight: the ideal viewpoint identifies the gcd without dividing — common roots locate the ideal, and Euclid merely certifies it.

Definition 1.28 (Quotient ring Z/nZ\Z/n\Z, revisited)

For an ideal II of AA, the relation xy    xyIx \sim y \iff x - y \in I is an equivalence compatible with ++ and ×\times; the quotient set A/IA/I inherits a ring structure — the quotient ring — making π ⁣:AA/I\pi \colon A \to A/I a morphism with kernel II. For A=ZA = \Z, I=nZI = n\Z this is the Z/nZ\Z/n\Z of the Year 1 volume, now with its universal property: any morphism killing II factors through A/IA/I.

Theorem 1.29 (Chinese remainder theorem, ring form)

If gcd(m,n)=1\gcd(m, n) = 1, the map

Z/mnZZ/mZ×Z/nZ,x(xmodm,  xmodn)\Z/mn\Z \longrightarrow \Z/m\Z \times \Z/n\Z, \qquad \overline{x} \longmapsto (x \bmod m,\; x \bmod n)

is a ring isomorphism. Consequently φ(mn)=φ(m)φ(n)\varphi(mn) = \varphi(m)\varphi(n) for coprime m,nm, n, and

φ(n)=npn(11p)(p prime).\varphi(n) = n \prod_{p \mid n} \Bigl(1 - \frac 1p\Bigr) \quad (p \text{ prime}).

Proof. The map is a well-defined ring morphism (compatibilities are immediate). Injectivity: x0x \equiv 0 mod mm and mod nn with gcd(m,n)=1\gcd(m,n) = 1 forces mnxmn \mid x (Gauss). Surjectivity: both sides have mnmn elements, so injectivity suffices (finite equal cardinalities) — or explicitly: from a Bézout relation um+vn=1um + vn = 1, the class of

x=bum+avnx = b\,um + a\,vn

maps to (amodm, bmodn)(a \bmod m,\ b \bmod n), since vn=1um1(modm)vn = 1 - um \equiv 1 \pmod m makes xa(modm)x \equiv a \pmod m, and symmetrically mod nn — the recipe used numerically in Example 1.30. Units correspond to pairs of units (a product ring’s units are the pairs of units), so φ(mn)=φ(m)φ(n)\varphi(mn) = \varphi(m)\varphi(n). For a prime power, φ(pk)=pkpk1\varphi(p^k) = p^k - p^{k-1} (the non-units mod pkp^k are the multiples of pp); multiplicativity assembles the product formula.

Example 1.30 (Inverting the Chinese isomorphism)

Take m=8m = 8, n=9n = 9. The inverse of the isomorphism is made explicit by the two idempotents: seek u1(mod8)u \equiv 1 \pmod 8, u0(mod9)u \equiv 0 \pmod 9 and v0(mod8)v \equiv 0 \pmod 8, v1(mod9)v \equiv 1 \pmod 9. From u=9k1(mod8)u = 9k \equiv 1 \pmod 8: k1k \equiv 1, so u=9u = 9; from v=8k1(mod9)v = 8k \equiv 1 \pmod 9: k1-k \equiv 1, k8k \equiv 8, so v=64v = 64. Then the class of x=9a+64bx = 9a + 64b modulo 7272 is the unique solution of xa(mod8)x \equiv a \pmod 8, xb(mod9)x \equiv b \pmod 9: for a=3a = 3, b=5b = 5 one gets 27+320=34759(mod72)27 + 320 = 347 \equiv 59 \pmod{72} — exactly the intermediate value found by substitution in Exercise 1.8. The closing insight: uu and vv satisfy u+v1u + v \equiv 1, uv0uv \equiv 0, u2uu^2 \equiv u, v2vv^2 \equiv v modulo 7272; they are the images of (1,0)(1, 0) and (0,1)(0, 1), and every Chinese decomposition is at bottom a decomposition of 11 into orthogonal idempotents.

Theorem 1.31 (Euler; Fermat revisited)

The units of Z/nZ\Z/n\Z form a group of order φ(n)\varphi(n); hence for gcd(a,n)=1\gcd(a, n) = 1:

aφ(n)1(modn)(Euler’s theorem),a^{\varphi(n)} \equiv 1 \pmod n \qquad (\text{Euler's theorem}),

and Fermat’s little theorem is the case n=pn = p prime, now one line from Lagrange.

Proof. The invertible classes are exactly those of integers coprime to nn (Year 1 volume): φ(n)\varphi(n) of them, forming a group under multiplication. Lagrange (Theorem 1.14): every element to the power of the group order is the identity.

Example 1.32 (A unit group without a generator)

The group (Z/15Z)(\Z/15\Z)^* has φ(15)=φ(3)φ(5)=8\varphi(15) = \varphi(3)\varphi(5) = 8 elements. Is it cyclic? Compute orders using the Chinese isomorphism (Z/15Z)(Z/3Z)×(Z/5Z)(\Z/15\Z)^* \simeq (\Z/3\Z)^* \times (\Z/5\Z)^* (a unit mod 1515 is a pair of units): the factors have orders 22 and 44, so every element’s order divides lcm(2,4)=4<8\operatorname{lcm}(2, 4) = 4 < 8 — no element generates. Concretely:

24=161,42=161,741,112=1211,1421(mod15):2^4 = 16 \equiv 1, \qquad 4^2 = 16 \equiv 1, \qquad 7^4 \equiv 1, \qquad 11^2 = 121 \equiv 1, \qquad 14^2 \equiv 1 \pmod{15} :

orders 4,2,4,2,24, 2, 4, 2, 2 and never 88. Contrast with Exercise 1.10: (Z/pZ)(\Z/p\Z)^* is cyclic for pp prime, because there the unit group sits inside a field. Euler’s theorem still applies with exponent φ(15)=8\varphi(15) = 8, but the true universal exponent here is 44 — Euler is an upper bound, not always the sharp one.

Definition 1.33 (Algebra)

A KK-algebra is a KK-vector space AA with a ring structure whose multiplication is KK-bilinear. Examples: K[X]K[X], Mn(K)\mathcal{M}_n(K), L(E)\mathcal{L}(E), function spaces F(X,K)\mathcal{F}(X, K), C\C as an R\R-algebra. Morphisms of algebras are linear ring morphisms; the evaluation PP(u)P \mapsto P(u) from K[X]K[X] to L(E)\mathcal{L}(E) (or Mn(K)\mathcal{M}_n(K)) is the central example, driving Chapter 3.

Example 1.34 (An evaluation morphism and its kernel)

Take A=(0100)A = \begin{pmatrix}0 & 1\\ 0 & 0\end{pmatrix} and the evaluation εA ⁣:R[X]M2(R)\varepsilon_A \colon \R[X] \to \mathcal{M}_2(\R), PP(A)P \mapsto P(A). Since A2=0A^2 = 0,

P(A)=P(0)I+P(0)A=(P(0)P(0)0P(0)),P(A) = P(0)\,I + P'(0)\,A = \begin{pmatrix} P(0) & P'(0)\\ 0 & P(0)\end{pmatrix},

(only the constant and linear terms of PP survive). Hence kerεA={P:P(0)=P(0)=0}=X2R[X]\ker\varepsilon_A = \{P : P(0) = P'(0) = 0\} = X^2\,\R[X]: a principal ideal, exactly as Theorem 1.26 predicts, generated by the monic X2X^2 of least degree in the kernel — the minimal polynomial of AA, star of Chapter 3. The image is the two-dimensional commutative algebra {aI+bA}\{aI + bA\}: evaluation morphisms shrink the infinite-dimensional R[X]\R[X] onto small, computable algebras.

Remark 1.35 (Perspectives: three melodies to listen for)

Three structural ideas from this chapter recur throughout the volume, each time in heavier orchestration. Factorization through a quotient (Definition 1.3): it builds Z/nZ\Z/n\Z here, defines maps on solution sets of linear systems in Chapter 2, and silently underlies every “well defined on classes” argument. Invariants: the signature is a morphism to {±1}\{\pm1\} that no legal move can dodge — the same logic gives the determinant’s product rule (Chapter 2), the trace’s similarity invariance, and the conserved quantities of Chapter 16. Counting against a structure: Lagrange counts through cosets, dimension counts through bases (Chapter 2), multiplicity counts through polynomial degrees (Chapter 3); whenever a bound looks miraculous, some partition or grading is doing the counting.

Remark 1.36 (Common pitfalls)

Four classics. (i) A map on a quotient must be checked well defined: “x\overline x \mapsto (formula on xx)” is legitimate only if the formula is constant on classes — the compatibility of Definition 1.3, not a formality. (ii) ord(ab)=lcm(orda,ordb)\operatorname{ord}(ab) = \operatorname{lcm}(\operatorname{ord}a, \operatorname{ord}b) is false in general, even for commuting elements (aa and a1a^{-1}); Exercise 1.4 gives the correct coprime-and-commuting statement, and disjoint cycles the correct permutation version. (iii) Countability survives countable unions and finite products, but not countable products: {0,1}N\{0,1\}^{\N} is uncountable (Exercise 1.3) although each factor has two elements. (iv) Cantor–Bernstein needs only injections both ways, but the bijection it builds is usually discontinuous and non-explicit — do not expect a formula (Example 1.11).

Remark 1.37 (Where this chapter is used)

Almost everywhere. The signature builds determinants (Chapter 2); the evaluation morphism PP(u)P \mapsto P(u) and the principal ideals of K[X]K[X] produce minimal polynomials and the kernel decompositions of Chapter 3; countability is the stage on which Chapter 21 performs (probability on countable spaces) and the reason topology keeps producing countable dense sets (Chapter 4). The quotient construction A/IA/I is redeployed in the Year 3 volume to build fields K[X]/(P)K[X]/(P) and, from them, Galois theory: the universal property proved here is used there word for word.

1.6 Exercises

Exercise 1.1

Which of the following sets are countable? The set of finite subsets of N\N; the set of all subsets of N\N; RQ\R \setminus \Q; the set of polynomials with rational coefficients; the set of sequences of 00’s and 11’s that are eventually zero.

Solution

Solution of Exercise 1.1.

Finite subsets of N\N: countable — the set of subsets of [ ⁣[0,n] ⁣]\intint{0}{n} is finite, and the finite subsets form the countable union over nn of these (Proposition 1.6 (3)); infinite since it contains all singletons.

All subsets of N\N: not countable, by Cantor’s theorem (Theorem 1.9 (1) with E=NE = \N).

RQ\R \setminus \Q: not countable — otherwise R=Q(RQ)\R = \Q \cup (\R\setminus\Q) would be a union of two countable sets, contradicting Theorem 1.9 (2).

Polynomials over Q\Q: countable — the polynomials of degree n\leq n inject into Qn+1\Q^{n+1} (finite products of countable sets), and take the union over nn.

Eventually-zero binary sequences: countable — they biject with finite subsets of N\N (the support).

Exercise 1.2

In S7\mathfrak{S}_7, let σ=(1426)(35)\sigma = (1\,4\,2\,6)(3\,5) and τ=(237)\tau = (2\,3\,7). Compute στ\sigma\tau and τσ\tau\sigma in disjoint-cycle form, the orders and signatures of all four permutations, and σ2026\sigma^{2026}.

Solution

Solution of Exercise 1.2.

Compute element by element, applying the right factor first. στ\sigma\tau sends 1σ(1)=41 \mapsto \sigma(1) = 4,   2σ(3)=5\;2 \mapsto \sigma(3) = 5,   3σ(7)=7\;3 \mapsto \sigma(7) = 7,   4σ(4)=2\;4 \mapsto \sigma(4) = 2,   5σ(5)=3\;5 \mapsto \sigma(5) = 3,   6σ(6)=1\;6 \mapsto \sigma(6) = 1,   7σ(2)=6\;7 \mapsto \sigma(2) = 6:

στ=(1425376),\sigma\tau = (1\,4\,2\,5\,3\,7\,6),

a 77-cycle. Likewise τσ\tau\sigma sends 1τ(4)=41 \mapsto \tau(4) = 4,   2τ(6)=6\;2 \mapsto \tau(6) = 6,   3τ(5)=5\;3 \mapsto \tau(5) = 5,   4τ(2)=3\;4 \mapsto \tau(2) = 3,   5τ(3)=7\;5 \mapsto \tau(3) = 7,   6τ(1)=1\;6 \mapsto \tau(1) = 1,   7τ(7)=2\;7 \mapsto \tau(7) = 2:

τσ=(1435726),\tau\sigma = (1\,4\,3\,5\,7\,2\,6),

also a 77-cycle (as expected: στ\sigma\tau and τσ\tau\sigma are conjugate, hence share their cycle type).

Orders and signatures: σ\sigma has cycle type (4,2)(4,2): order lcm(4,2)=4\operatorname{lcm}(4,2) = 4, signature (1)3(1)1=+1(-1)^3(-1)^1 = +1; τ\tau is a 33-cycle: order 33, signature +1+1; both products are 77-cycles: order 77, signature (1)6=+1(-1)^6 = +1.

σ2026\sigma^{2026}: 2026=4×506+22026 = 4 \times 506 + 2, so σ2026=σ2=(12)(46)\sigma^{2026} = \sigma^2 = (1\,2)(4\,6) (square the 44-cycle; the transposition squares away).

Exercise 1.3

Construct explicit injections showing that P(N)\mathcal{P}(\N), [0,1]\intcc{0}{1} and the set {0,1}N\{0,1\}^{\N} of binary sequences are pairwise equipotent (binary expansions both ways; Cantor–Bernstein absorbs the double-representation nuisance).

Solution

Solution of Exercise 1.3.

{0,1}NP(N)\{0,1\}^{\N} \to \mathcal{P}(\N): a sequence maps to its support — a bijection (indicator functions), no theorem needed.

{0,1}N[0,1]\{0,1\}^{\N} \to \intcc{0}{1}: the base-33 map (an)2an3n1(a_n) \mapsto \sum 2a_n 3^{-n-1} is injective (two distinct sequences differ first at rank NN; the tails cannot compensate a gap of 23N12\cdot 3^{-N-1}, since n>N23n1=3N1<23N1\sum_{n > N} 2\cdot 3^{-n-1} = 3^{-N-1} < 2\cdot3^{-N-1}).

[0,1]{0,1}N\intcc{0}{1} \to \{0,1\}^{\N}: binary expansion, choosing (say) the expansion not ending in all 11’s: injective.

By Cantor–Bernstein (Theorem 1.10) applied to the last two injections, [0,1]\intcc{0}{1} and {0,1}N\{0,1\}^{\N} are equipotent, hence all three sets are.

Exercise 1.4

Let GG be a group and a,bGa, b \in G commuting elements of finite coprime orders mm and nn. Prove that ord(ab)=mn\operatorname{ord}(ab) = mn. Show by an example in S3\mathfrak{S}_3 that commutation is essential.

Solution

Solution of Exercise 1.4.

Let c=ab=bac = ab = ba and d=ord(c)d = \operatorname{ord}(c). First cmn=amnbmn=ec^{mn} = a^{mn} b^{mn} = e (commutation allows splitting the power), so dmnd \mid mn. Conversely cd=ec^d = e gives ad=bda^d = b^{-d}; this element lies in ab\langle a\rangle \cap \langle b\rangle, a subgroup whose order divides both mm and nn (Lagrange in each cyclic group), hence is trivial: ad=bd=ea^d = b^d = e, so mdm \mid d and ndn \mid d, and by coprimality mndmn \mid d. Hence d=mnd = mn.

In S3\mathfrak{S}_3: take a=(12)a = (1\,2) (order 22) and b=(123)b = (1\,2\,3) (order 33), coprime orders, which do not commute: ab=(23)ab = (2\,3) has order 262 \neq 6 — indeed S3\mathfrak{S}_3 has no element of order 66. Commutation is essential.

Exercise 1.5 ★★

Let GG be a finite group of even order. Prove that GG contains an element of order 22. (Pair each element with its inverse; count the self-paired ones.)

Solution

Solution of Exercise 1.5.

Pair every xGx \in G with x1x^{-1}. The pairs {x,x1}\{x, x^{-1}\} with xx1x \neq x^{-1} have two elements and partition their union; the remaining elements are exactly those with x=x1x = x^{-1}, i.e. x2=ex^2 = e. Since G\abs G is even and the two-element pairs cover an even number of elements, the set {x:x2=e}\{x : x^2 = e\} has even cardinality; it contains ee, so it contains at least one other element xex \neq e — an element of order 22.

Exercise 1.6 ★★

Prove that AnA_n (n3n \geq 3) is generated by the 33-cycles. (A product of two transpositions is a 33-cycle or a product of two 33-cycles.)

Solution

Solution of Exercise 1.6.

Every element of AnA_n is a product of an even number of transpositions (Theorem 1.21: decompose into transpositions; the count is even since the signature is +1+1). It suffices to write each product of two transpositions with 33-cycles:

(ab)(ac)=(acb),(ab)(cd)=(acb)(acd)(distinct a,b,c,d),(a\,b)(a\,c) = (a\,c\,b), \qquad (a\,b)(c\,d) = (a\,c\,b)(a\,c\,d) \quad (\text{distinct } a,b,c,d),

(check by evaluation), and (ab)(ab)=id(a\,b)(a\,b) = \mathrm{id}. So the 33-cycles generate AnA_n.

Exercise 1.7 ★★

Determine all group morphisms: from (Q,+)(\Q, +) to (Z,+)(\Z, +); from (Z/nZ,+)(\Z/n\Z, +) to (Z/mZ,+)(\Z/m\Z, +) (count them: gcd(m,n)\gcd(m,n)); from (Q,+)(\Q, +) to (Q+,×)(\Q_+^*, \times).

Solution

Solution of Exercise 1.7.

(Q,+)(Z,+)(\Q,+) \to (\Z,+): only the zero morphism. For any xx and every n1n \geq 1, f(x)=nf(xn)f(x) = n f\bigl(\frac xn\bigr) is divisible by nn in Z\Z; the only integer divisible by every nn is 00, so f(x)=0f(x) = 0 for all xx.

(Z/nZ,+)(Z/mZ,+)(\Z/n\Z, +) \to (\Z/m\Z, +): a morphism is determined by c=f(1)c = f(\overline 1), which must satisfy nc0(modm)n c \equiv 0 \pmod m, i.e. cc is a multiple of mgcd(m,n)\frac{m}{\gcd(m,n)}; there are gcd(m,n)\gcd(m,n) such classes, and each choice does define a morphism (factor kkck \mapsto kc through Z/nZ\Z/n\Z by the universal property).

(Q,+)(Q+,×)(\Q, +) \to (\Q_+^*, \times): only the trivial one. If f(x)=yf(x) = y, then for every nn, y=f(nxn)=f(xn)ny = f(n \cdot \frac xn) = f(\frac xn)^n is an nn-th power in Q+\Q_+^*. But a rational y1y \neq 1 cannot be an nn-th power for all nn: some prime appears in yy with a nonzero exponent vv, and nvn \nmid v for n>vn > \abs v (exponents of nn-th powers are multiples of nn, by unique factorization). Hence f1f \equiv 1.

Exercise 1.8 ★★

Using the Chinese remainder theorem, compute φ(360)\varphi(360), find all xx with x3(mod8)x \equiv 3 \pmod 8, x5(mod9)x \equiv 5 \pmod 9 and x2(mod5)x \equiv 2 \pmod 5, and compute the last two digits of 320263^{2026} (Euler mod 100100; beware: work mod 44 and mod 2525).

Solution

Solution of Exercise 1.8.

360=23325360 = 2^3 \cdot 3^2 \cdot 5: φ(360)=360(112)(113)(115)=360122345=96\varphi(360) = 360\bigl(1 - \tfrac12\bigr)\bigl(1 - \tfrac13\bigr)\bigl(1 - \tfrac15\bigr) = 360 \cdot \tfrac12 \cdot \tfrac23 \cdot \tfrac45 = 96.

System: moduli 8,9,58, 9, 5 pairwise coprime, total 360360. From x3(mod8)x \equiv 3 \pmod 8 and x5(mod9)x \equiv 5 \pmod 9: x=3+8kx = 3 + 8k with 3+8k5(mod9)3 + 8k \equiv 5 \pmod 9, i.e. k2-k \equiv 2, k27(mod9)k \equiv -2 \equiv 7 \pmod 9: x3+56=59(mod72)x \equiv 3 + 56 = 59 \pmod{72}. Then 59+722(mod5)59 + 72\ell \equiv 2 \pmod 5: 4+224 + 2\ell \equiv 2, 2382\ell \equiv 3 \equiv 8, 4(mod5)\ell \equiv 4 \pmod 5: x59+288=347(mod360)x \equiv 59 + 288 = 347 \pmod{360}.

Last two digits of 320263^{2026}: mod 44, 32026=9101313^{2026} = 9^{1013} \equiv 1. Mod 2525: φ(25)=20\varphi(25) = 20 and 2026=20101+62026 = 20\cdot101 + 6, so 3202636=7294(mod25)3^{2026} \equiv 3^6 = 729 \equiv 4 \pmod{25}. Solve x1(mod4)x \equiv 1 \pmod 4, x4(mod25)x \equiv 4 \pmod{25}: x=4+25k1(mod4)x = 4 + 25k \equiv 1 \pmod 4 gives k1(mod4)k \equiv 1 \pmod 4: x29(mod100)x \equiv 29 \pmod{100}. The last two digits are 2929.

Exercise 1.9 ★★★

Prove that a finite integral domain is a field. Deduce that Z/nZ\Z/n\Z is a field iff nn is prime (again).

Solution

Solution of Exercise 1.9.

Let AA be a finite integral domain and aAa \in A, a0a \neq 0. The map xaxx \mapsto ax is injective (ax=ay    a(xy)=0    x=yax = ay \implies a(x - y) = 0 \implies x = y, no zero divisors); an injective map of a finite set to itself is surjective (Year 1 volume, the pigeonhole equivalence). So 1=ab1 = ab for some bb: every nonzero element is invertible, AA is a field.

Z/nZ\Z/n\Z: if nn is prime it is an integral domain (nab    nan \mid ab \implies n \mid a or nbn \mid b, Euclid’s lemma), finite, hence a field; if n=rsn = rs is composite, rs=0\overline r\,\overline s = \overline 0 exhibits zero divisors.

Exercise 1.10 ★★★

(A classic) Let KK be a field and GG a finite subgroup of (K,×)(K^*, \times). Prove that GG is cyclic. Hint: let mm be the maximal order among elements of GG; show every element’s order divides mm (using Exercise 1.4 on suitable coprime parts), so all of GG satisfies xm=1x^m = 1; count roots of Xm1X^m - 1. In particular (Z/pZ)(\Z/p\Z)^* is cyclic.

Solution

Solution of Exercise 1.10.

Let m=max{ord(x):xG}m = \max\{\operatorname{ord}(x) : x \in G\}, attained at aa.

Claim: every xGx \in G has order dividing mm. Suppose some xx has order qq with qmq \nmid m: then some prime power pkp^k divides qq but not mm. Write m=pjmm = p^j m' with pmp \nmid m' and j<kj < k. The element apja^{p^j} has order mm'; the element xq/pkx^{q/p^k} has order pkp^k; these orders are coprime and the two elements commute (GKG \subseteq K^* is abelian), so by Exercise 1.4 their product has order pkm>pjm=mp^k m' > p^j m' = m: contradicting maximality.

So all xGx \in G satisfy xm=1x^m = 1: the polynomial Xm1X^m - 1 has at least G\abs G roots in the field KK, whence Gm\abs G \leq m (a nonzero polynomial of degree mm has at most mm roots, Year 1 volume). But m=ord(a)Gm = \operatorname{ord}(a) \leq \abs G by Lagrange. Hence m=Gm = \abs G and a\langle a \rangle, of cardinality m=Gm = \abs G, is all of GG: cyclic.

For K=Z/pZK = \Z/p\Z: (Z/pZ)(\Z/p\Z)^* is a finite subgroup of KK^*, hence cyclic (of order p1p - 1).

Exercise 1.11 ★★★

Prove that the group (Q,+)(\Q, +) is not cyclic, and worse: it is not even finitely generated. Prove on the other hand that every finitely generated subgroup of (Q,+)(\Q, +) is cyclic.

Solution

Solution of Exercise 1.11.

Not cyclic: the subgroup pq\langle \frac pq\rangle consists of the integer multiples of pq\frac pq, all of which have denominator dividing qq (in lowest terms); it therefore misses 12q\frac{1}{2q}. No single generator can reach the unbounded denominators of Q\Q.

Not finitely generated: the subgroup generated by p1q1,,pkqk\frac{p_1}{q_1}, \dots, \frac{p_k}{q_k} consists of rationals whose denominators divide Q=q1qkQ = q_1 \cdots q_k (integer combinations have denominator dividing QQ): it misses 12Q\frac{1}{2Q}.

Finitely generated subgroups are cyclic: with QQ as above, the subgroup H=p1q1,,pkqkH = \langle \frac{p_1}{q_1}, \dots, \frac{p_k}{q_k}\rangle is contained in 1QZ\frac{1}{Q}\Z. The map xQxx \mapsto Qx is an isomorphism from 1QZ\frac1Q\Z onto Z\Z carrying HH to a subgroup of Z\Z, which is nZn\Z for some nn (Year 1 volume): so H=nQZH = \frac{n}{Q}\Z is cyclic, generated by nQ\frac nQ.

Exercise 1.12 ★★

(Dedekind’s criterion) Prove that every infinite set contains a countable subset, and deduce that a set EE is infinite if and only if it is equipotent to a proper subset of itself. (For the direct implication, shift a countable subset by one step; for the converse, recall the pigeonhole principle.)

Solution

Solution of Exercise 1.12.

A countable subset. Let EE be infinite. Construct a0,a1,a2,a_0, a_1, a_2, \dots inductively: EE is nonempty, pick a0Ea_0 \in E; if a0,,ana_0, \dots, a_n are chosen, E{a0,,an}E \setminus \{a_0, \dots, a_n\} is nonempty (EE is not finite), pick an+1a_{n+1} there. The ana_n are pairwise distinct by construction, so A={an:nN}A = \{a_n : n \in \N\} is a countable subset of EE.

Infinite     \implies equipotent to a proper subset. Define f ⁣:EE{a0}f \colon E \to E \setminus \{a_0\} by f(an)=an+1f(a_n) = a_{n+1} and f(x)=xf(x) = x for xAx \notin A. It is injective (the two pieces are injective with disjoint images) and surjective onto E{a0}E \setminus \{a_0\}: every an+1a_{n+1} is hit, every xAx \notin A is hit. So EE is equipotent to the proper subset E{a0}E \setminus \{a_0\}.

Converse. If EE is finite and g ⁣:EFg \colon E \to F is a bijection onto FEF \subseteq E with FEF \neq E, then gg is an injection of EE into itself that is not surjective, contradicting the pigeonhole principle (Year 1 volume: an injective self-map of a finite set is bijective). So a set equipotent to a proper subset is infinite.

1.7 Problem: The Fifteen Puzzle

The fifteen puzzle is a 4×44 \times 4 tray holding fifteen sliding tiles numbered 11 to 1515 and one empty cell; a move slides one of the tiles adjacent to the empty cell into it. In the 1890s Sam Loyd popularized the puzzle by offering $1000 to anyone who could exchange the tiles 1414 and 1515 and return every other tile to its place. Nobody ever collected, and this weekend problem proves both halves of the reason: the signature of Theorem 1.21 forbids Loyd’s exchange, and — the harder, constructive half — everything the signature allows is genuinely solvable. The full statement is the Johnson–Story theorem (1879).

The solved configuration and Sam Loyd’s 14–15 configuration. The $1000 question: can legal slides turn the right tray into the left one? The solved configuration and Sam Loyd’s 14–15 configuration. The $1000 question: can legal slides turn the right tray into the left one?
The solved configuration and Sam Loyd’s 14141515 configuration. The $1000 question: can legal slides turn the right tray into the left one?

Problem 1.1

Weekend problem — the Johnson–Story solvability theorem

Number the cells 11 to 1616 in reading order (left to right, top to bottom), so that cell kk sits in row ii and column jj with k=4(i1)+jk = 4(i - 1) + j. Cell 1616 (bottom right) is the home of the empty cell; we treat the empty cell as a sixteenth tile, written bb and identified with the number 1616. A configuration is a bijection σ ⁣:[ ⁣[1,16] ⁣][ ⁣[1,16] ⁣]\sigma \colon \intint1{16} \to \intint1{16}, cell \mapsto content; the solved configuration is σ=id\sigma = \mathrm{id}. Throughout, ε\varepsilon is the signature of Theorem 1.21 and two cells are adjacent when they share an edge of the tray.

Part I — Configurations, moves, signatures.

  1. Justify that the configurations are exactly the elements of S16\mathfrak{S}_{16}, so there are 16!=2092278988800016! = 20\,922\,789\,888\,000 of them, and that the number of legal moves from a given configuration is 22, 33 or 44, according to whether the empty cell lies in a corner, on an edge, or in the interior.
  2. Let σ\sigma be a configuration, p=σ1(16)p = \sigma^{-1}(16) the cell of the blank, and cc a cell adjacent to pp. Show that sliding the tile of cc into pp produces the configuration σ=στ\sigma' = \sigma \circ \tau with τ=(p c)\tau = (p\ c), and deduce that every move flips the signature: ε(σ)=ε(σ)\varepsilon(\sigma') = -\varepsilon(\sigma).
  3. Checkerboard the tray: χ(k)=(1)i+j\chi(k) = (-1)^{i+j} for the cell kk in row ii, column jj. Show that every move flips χ(cell of the blank)\chi(\text{cell of the blank}), and deduce that a sequence of moves returning the blank to its starting cell has even length.
  4. Show that

    I(σ)=ε(σ)χ(σ1(16))I(\sigma) = \varepsilon(\sigma)\, \chi\bigl(\sigma^{-1}(16)\bigr)

    is invariant under every legal move, and compute I(id)I(\mathrm{id}).

Part II — Loyd’s bounty: the invariant at work.

  1. Loyd’s configuration σL\sigma_L agrees with the solved one except that cells 1414 and 1515 hold tiles 1515 and 1414. Compute I(σL)I(\sigma_L) and conclude that no sequence of moves links σL\sigma_L to the solved configuration: Loyd’s $1000 was never in danger.
  2. Show that exactly half of all configurations satisfy I=+1I = +1: {σ:I(σ)=+1}=16!/2\abs{\{\sigma : I(\sigma) = +1\}} = 16!/2. (For a fixed blank cell, pair configurations by composing with one fixed transposition of two other cells.)
  3. Show that every move is undone by a legal move, that “σ\sigma' is reachable from σ\sigma by legal moves” is an equivalence relation, and that the class RR of the solved configuration satisfies R{I=+1}R \subseteq \{I = +1\}. Conclude that there are at least two classes.
  4. Suppose the blank is home: σ(16)=16\sigma(16) = 16. Show that I(σ)=ε(ρ)I(\sigma) = \varepsilon(\rho) where ρS15\rho \in \mathfrak{S}_{15} is the restriction of σ\sigma to the cells 1,,151, \dots, 15, and that any configuration can be carried by legal moves to one with the blank home. Conclude: to prove R={I=+1}R = \{I = +1\} it suffices to realize every even permutation of the fifteen non-home cells by a sequence of moves starting and ending with the blank home.

Part III — Blank tours and the program group. A program is a finite sequence of legal moves, started from a configuration with the blank home, whose final configuration again has the blank home. Its effect is the permutation π\pi of the cells defined by: the content of cell xx ends in cell π(x)\pi(x).

  1. Show that a program run from σ\sigma ends at σπ1\sigma \circ \pi^{-1}; that running two programs in succession composes their effects; and that the set HH of all effects is a subgroup of S15\mathfrak{S}_{15} (permutations of the cells 1,,151, \dots, 15) contained in the alternating group A15A_{15}.
  2. (The elementary tour) From the blank at home, slide the blank around the bottom-right 2×22 \times 2 block: cells 161211151616 \to 12 \to 11 \to 15 \to 16. Show the effect is the 33-cycle (11 12 15)(11\ 12\ 15), and that the reverse tour gives (11 15 12)(11\ 15\ 12). Both lie in HH.
  3. (The grand tour) Verify that

    161514139512348761011121616 \to 15 \to 14 \to 13 \to 9 \to 5 \to 1 \to 2 \to 3 \to 4 \to 8 \to 7 \to 6 \to 10 \to 11 \to 12 \to 16

    is a closed walk through all sixteen cells (adjacent steps only), and that its effect is the 1515-cycle

    ζ=(15 12 11 10 6 7 8 4 3 2 1 5 9 13 14).\zeta = (15\ 12\ 11\ 10\ 6\ 7\ 8\ 4\ 3\ 2\ 1\ 5\ 9\ 13\ 14) .

    Writing x0=15x_0 = 15, x1=12x_1 = 12, x2=11x_2 = 11, …, x14=14x_{14} = 14 for its cycle order, check that the reverse elementary tour of question 10 is exactly (x0 x1 x2)(x_0\ x_1\ x_2).

  4. Prove the conjugation formula in any Sn\mathfrak{S}_n: for a permutation gg and a 33-cycle,

    g(a b c)g1=(g(a) g(b) g(c)),g\,(a\ b\ c)\,g^{-1} = \bigl(g(a)\ g(b)\ g(c)\bigr),

    and note that HH, being a group, is closed under conjugation by its own elements.

  5. Deduce that HH contains all fifteen consecutive 33-cycles of the grand tour:

    st=(xt xt+1 xt+2)(tZ/15Z, indices mod 15).s_t = (x_t\ x_{t+1}\ x_{t+2}) \qquad (t \in \Z/15\Z, \text{ indices mod } 15).

Part IV — Generating the alternating group.

  1. (Lemma A) Let ss and tt be 33-cycles whose supports share exactly two points, say supports {a,b,c}\{a, b, c\} and {b,c,d}\{b, c, d\}. Show that, after replacing ss or tt by its inverse if necessary (which changes nothing to the generated subgroup), the product stst is a double transposition; show that A4A_4 contains no subgroup of order 66 (a subgroup of index 22 contains every square; count the 33-cycles among squares); and conclude that s,t\langle s, t\rangle is the whole alternating group of the four letters {a,b,c,d}\{a, b, c, d\}.
  2. (Lemma B) Let XX be a set of k4k \geq 4 letters, wXw \notin X, and let GG be a subgroup of some Sn\mathfrak{S}_n containing every even permutation of XX and one 33-cycle (u v w)(u\ v\ w) with u,vXu, v \in X. Show that for all distinct a,bXa, b \in X there is an even permutation gg of XX with g(u)=ag(u) = a, g(v)=bg(v) = b, and deduce (a b w)G(a\ b\ w) \in G.
  3. Deduce that the group GG of Lemma B contains every even permutation of X{w}X \cup \{w\} (use Exercise 1.6: the 33-cycles generate). Then, chaining Lemmas A and B along the consecutive 33-cycles s0,s1,,s12s_0, s_1, \dots, s_{12} of question 13, prove that s0,,s12=A15\langle s_0, \dots, s_{12}\rangle = A_{15}.
  4. Conclude that H=A15H = A_{15}: every even rearrangement of the fifteen tiles is achievable by a program, and HH has 15!/2=65383718400015!/2 = 653\,837\,184\,000 elements.
  5. (The Johnson–Story theorem, 1879) Assemble questions 6, 7, 8 and 17: the configurations reachable from the solved one are exactly the 16!/2=1046139494400016!/2 = 10\,461\,394\,944\,000 configurations with I=+1I = +1; and reachability has exactly two classes, the class of the solved configuration and the class of Loyd’s σL\sigma_L. (For the second point, relabel the tiles 1414 and 1515: show σ(14 15)σ\sigma \mapsto (14\ 15) \circ \sigma maps move sequences to move sequences and exchanges {I=+1}\{I = +1\} with {I=1}\{I = -1\}.)

Part V — Criteria, variants, and the view from above.

  1. (The practical criterion) Read the fifteen tiles in reading order of their cells, skipping the blank, and let NN be the number of inversions of this list; let rr be the row of the blank counted from the bottom. Show that I(σ)=(1)N+r+1I(\sigma) = (-1)^{N + r + 1}, so that σ\sigma is solvable if and only if N+rN + r is odd.
  2. (Group actions) An action of a group GG on a set XX is a map G×XXG \times X \to X, (g,x)gx(g, x) \mapsto g \cdot x, with ex=xe \cdot x = x and g(hx)=(gh)xg \cdot (h \cdot x) = (gh) \cdot x; the orbit of xx is GxG \cdot x, and the action is free when gx=xg \cdot x = x forces g=eg = e. Show that hσ=σh1h \cdot \sigma = \sigma \circ h^{-1} defines a free action of HH on the set of blank-home configurations, that its orbits are exactly the classes of mutual reachability by programs, and recover from the orbit count that these configurations split into exactly 15!/H=215!\,/\,\abs H = 2 classes.
  3. (The 3×33 \times 3 obstruction) Show that the 3×33 \times 3 board admits no closed walk visiting every cell exactly once: the grand-tour strategy of Part III fails for the eight puzzle. (Checkerboard the nine cells.)
  4. (The repair) On the 3×33 \times 3 board with cells 11 to 99 in reading order and home 99: compute the effects of the perimeter tour 9874123699 \to 8 \to 7 \to 4 \to 1 \to 2 \to 3 \to 6 \to 9 (a 77-cycle ζ\zeta' fixing the center 55) and of the corner tour 965899 \to 6 \to 5 \to 8 \to 9 (a 33-cycle through the center). Conjugating the latter by the powers of ζ\zeta' and chaining Lemmas A and B, prove that the eight puzzle’s program group is all of A8A_8, hence that exactly 9!/2=1814409!/2 = 181\,440 of the 9!=3628809! = 362\,880 configurations are solvable.
  5. (A poor board) Now let the board be a single cycle of n4n \geq 4 cells carrying n1n - 1 tiles. Show that the cyclic order of the tiles is invariant, that each reachability class has exactly n(n1)n(n - 1) configurations (the classes are the orbits of a cyclic group of order lcm(n,n1)=n(n1)\operatorname{lcm}(n, n-1) = n(n-1)), and that there are (n2)!(n - 2)! classes — for n5n \geq 5 far more than 22: on a thin board the parity invariant captures almost nothing, and geometry rules.
  6. Two verdicts by the criterion of question 19: the fully reversed tray (tiles 15,14,,115, 14, \dots, 1 in cells 11 to 1515, blank home) and the tray with the blank in cell 11 followed by the tiles 15,14,,115, 14, \dots, 1 in cells 22 to 1616. Which one is solvable?
  7. (Synthesis) The proof has two independent pillars: an invariant (II, built from the signature morphism) showing at most half the configurations are reachable, and an explicit generation theorem (H=A15H = A_{15}) showing at least half are. In one sentence each, say where the following entered: the morphism property of ε\varepsilon; Lagrange’s theorem; the generation of AnA_n by 33-cycles; conjugation. State the meta-principle in one line.
Solution

Solution of Problem 1.1.

1. A configuration assigns to each of the 1616 cells one of the 1616 contents (tiles 111515 or the blank b=16b = 16), each exactly once: precisely a bijection [ ⁣[1,16] ⁣][ ⁣[1,16] ⁣]\intint1{16} \to \intint1{16}, an element of S16\mathfrak{S}_{16}; there are 16!=2092278988800016! = 20\,922\,789\,888\,000 of them. A legal move slides one tile adjacent to the blank, so the number of moves is the number of neighbours of the blank’s cell: 22 for the four corner cells, 33 for the eight edge cells, 44 for the four interior cells.

2. After the slide, cell pp holds the former content of cc and cell cc holds the blank; all other cells are untouched: σ(p)=σ(c)\sigma'(p) = \sigma(c), σ(c)=σ(p)=16\sigma'(c) = \sigma(p) = 16, σ=σ\sigma' = \sigma elsewhere. That is exactly σ=σ(p c)\sigma' = \sigma \circ (p\ c). Since ε\varepsilon is a morphism and ε((p c))=1\varepsilon\bigl((p\ c)\bigr) = -1: ε(σ)=ε(σ)\varepsilon(\sigma') = -\varepsilon(\sigma).

3. Adjacent cells differ by one step in exactly one of the two coordinates, so i+ji + j changes parity: χ\chi takes opposite values on adjacent cells. A move transfers the blank from pp to the adjacent cc, flipping χ(blank cell)\chi(\text{blank cell}). Along a closed walk of the blank, χ\chi is flipped once per move and returns to its initial value: the number of moves is even.

4. By questions 2 and 3, one move flips both factors of I(σ)=ε(σ)χ(σ1(16))I(\sigma) = \varepsilon(\sigma)\chi(\sigma^{-1}(16)); their product is unchanged. For the solved configuration: ε(id)=+1\varepsilon(\mathrm{id}) = +1 and the blank is at cell 1616, row 44, column 44: χ(16)=(1)8=+1\chi(16) = (-1)^{8} = +1, so I(id)=+1I(\mathrm{id}) = +1.

5. σL\sigma_L is the transposition (14 15)(14\ 15) of cells: ε(σL)=1\varepsilon(\sigma_L) = -1; its blank is home, χ(16)=+1\chi(16) = +1: I(σL)=1+1=I(id)I(\sigma_L) = -1 \neq +1 = I(\mathrm{id}). Since II is preserved by every move, no sequence of moves joins σL\sigma_L and id\mathrm{id}. The prize was structurally safe.

6. Fix a cell pp and two other cells cdc \neq d distinct from pp, and set τ0=(c d)\tau_0 = (c\ d). On the set of configurations with blank at pp, the map σστ0\sigma \mapsto \sigma \circ \tau_0 is an involution (it preserves σ(p)=16\sigma(p) = 16 since τ0\tau_0 fixes pp) and flips ε\varepsilon, hence flips II: it pairs the configurations with I=+1I = +1 bijectively with those with I=1I = -1. So each of the 1616 blank positions contributes 15!/215!/2 configurations with I=+1I = +1, and

{I=+1}=1615!2=16!2.\abs{\{I = +1\}} = 16 \cdot \frac{15!}{2} = \frac{16!}{2}.

7. The move sliding the tile of cc into pp is undone by sliding that same tile (now in pp) back into cc: composing with (p c)(p\ c) twice is the identity. Hence: reflexivity (empty sequence), symmetry (reverse the sequence, undoing each move), transitivity (concatenate): an equivalence relation. Every σR\sigma \in R has I(σ)=I(id)=+1I(\sigma) = I(\mathrm{id}) = +1 by question 4, so R{I=+1}R \subseteq \{I = +1\}; and σLR\sigma_L \notin R gives a second class.

8. If σ(16)=16\sigma(16) = 16, then σ\sigma permutes the cells 1,,151, \dots, 15; call ρ\rho this restriction. Appending a fixed point changes neither the cycle type nor the signature (decompose ρ\rho into transpositions; the same product works in S16\mathfrak{S}_{16}), so ε(σ)=ε(ρ)\varepsilon(\sigma) = \varepsilon(\rho), and χ(16)=+1\chi(16) = +1 gives I(σ)=ε(ρ)I(\sigma) = \varepsilon(\rho). Any configuration can be carried to a blank-home one: the grid is connected, so walk the blank along a path of adjacent cells to cell 1616 (each step is a legal move). Now suppose every even ρS15\rho \in \mathfrak{S}_{15} is realized by a program. Given σ\sigma with I(σ)=+1I(\sigma) = +1: walk the blank home to reach σ~\widetilde\sigma (equivalent to σ\sigma), with I(σ~)=+1I(\widetilde\sigma) = +1, i.e. its restriction ρ\rho is even; the program realizing ρ\rho carries σ~\widetilde\sigma to σ~ρ1=id\widetilde\sigma \circ \rho^{-1} = \mathrm{id} (see question 9). By transitivity σR\sigma \in R, whence {I=+1}R\{I = +1\} \subseteq R and equality.

9. Single move: the content of cc ends in pp and the blank in cc: the effect is π=(p c)\pi = (p\ c), and indeed σ=σ(p c)=σπ1\sigma' = \sigma \circ (p\ c) = \sigma \circ \pi^{-1}. Induction: if a sequence has effect π1\pi_1 and carries σ\sigma to σπ11\sigma \circ \pi_1^{-1}, following it with a move of effect π2=(p c)\pi_2 = (p'\ c') yields (σπ11)π21=σ(π2π1)1(\sigma \circ \pi_1^{-1}) \circ \pi_2^{-1} = \sigma \circ (\pi_2\pi_1)^{-1}, and contents move by π2π1\pi_2 \circ \pi_1 (first π1\pi_1, then π2\pi_2). So effects compose, and a program run from σ\sigma ends at σπ1\sigma \circ \pi^{-1}. Subgroup: the empty program has effect id\mathrm{id}; concatenation gives products; reversing a program (question 7) gives inverses. A program’s effect fixes cell 1616 (blank starts and ends home), so HS15H \leq \mathfrak{S}_{15}. Evenness: a program of kk moves has kk even (question 3), and ε(σπ1)=(1)kε(σ)\varepsilon(\sigma \circ \pi^{-1}) = (-1)^k\varepsilon(\sigma) forces ε(π)=+1\varepsilon(\pi) = +1: HA15H \subseteq A_{15}.

10. Track the four slides from the blank at 1616: move 161216 \to 12 sends the content of 1212 to 1616; move 121112 \to 11 sends the content of 1111 to 1212; move 111511 \to 15 sends the content of 1515 to 1111; move 151615 \to 16 sends the content parked in 1616 (originally in 1212) to 1515. Net: 111211 \mapsto 12, 121512 \mapsto 15, 151115 \mapsto 11, blank home: the effect is (11 12 15)(11\ 12\ 15). The reverse tour undoes it: effect (11 12 15)1=(11 15 12)(11\ 12\ 15)^{-1} = (11\ 15\ 12). Both are effects of programs, hence in HH.

11. Adjacency of consecutive cells: within each listed pair the cells differ by 11 in the same row (161516{-}15, 151415{-}14, 141314{-}13; 121{-}2, 232{-}3, 343{-}4; 878{-}7, 767{-}6; 101110{-}11, 111211{-}12) or by 44 within a column (13913{-}9, 959{-}5, 515{-}1; 484{-}8; 6106{-}10; 121612{-}16): a closed walk through all 1616 cells, of length 1616. Effect: as in question 10, writing the visited cells c0=16,c1=15,,c15=12c_0 = 16, c_1 = 15, \dots, c_{15} = 12: the content of cic_i moves to ci1c_{i-1} for i=2,,15i = 2, \dots, 15, and the content of c1c_1, parked in 1616 after the first move, is carried to c15c_{15} by the last move. So the effect maps 151215 \mapsto 12, and 141514 \mapsto 15, 131413 \mapsto 14, 9139 \mapsto 13, 595 \mapsto 9, 151 \mapsto 5, 212 \mapsto 1, 323 \mapsto 2, 434 \mapsto 3, 848 \mapsto 4, 787 \mapsto 8, 676 \mapsto 7, 10610 \mapsto 6, 111011 \mapsto 10, 121112 \mapsto 11: exactly the 1515-cycle ζ\zeta. Its cycle order starts x0=15x_0 = 15, x1=12x_1 = 12, x2=11x_2 = 11, and (x0 x1 x2)=(15 12 11)(x_0\ x_1\ x_2) = (15\ 12\ 11) maps 1512111515 \mapsto 12 \mapsto 11 \mapsto 15 — which is precisely (11 15 12)(11\ 15\ 12), the reverse elementary tour.

12. Let γ=(a b c)\gamma = (a\ b\ c) and x[ ⁣[1,n] ⁣]x \in \intint1n. If x=g(a)x = g(a): gγg1(x)=g(γ(a))=g(b)g\gamma g^{-1}(x) = g(\gamma(a)) = g(b); likewise g(b)g(c)g(b) \mapsto g(c) and g(c)g(a)g(c) \mapsto g(a). If x{g(a),g(b),g(c)}x \notin \{g(a), g(b), g(c)\}, then g1(x){a,b,c}g^{-1}(x) \notin \{a,b,c\} is fixed by γ\gamma, so xx is fixed. Hence gγg1=(g(a) g(b) g(c))g\gamma g^{-1} = (g(a)\ g(b)\ g(c)). And for g,hHg, h \in H, ghg1Hghg^{-1} \in H by the subgroup axioms.

13. ζH\zeta \in H (question 11) and s0=(x0 x1 x2)Hs_0 = (x_0\ x_1\ x_2) \in H (questions 10–11). Since ζ(xi)=xi+1\zeta(x_i) = x_{i+1} (indices mod 1515), question 12 gives

ζts0ζt=(ζt(x0) ζt(x1) ζt(x2))=(xt xt+1 xt+2)=stH(t=0,1,,14).\zeta^{t}\,s_0\,\zeta^{-t} = \bigl(\zeta^t(x_0)\ \zeta^t(x_1)\ \zeta^t(x_2)\bigr) = (x_t\ x_{t+1}\ x_{t+2}) = s_t \in H \qquad (t = 0, 1, \dots, 14).

14. Up to inverting, assume s=(a b c)s = (a\ b\ c) and t=(b c d)t = (b\ c\ d) (a 33-cycle on {a,b,c}\{a,b,c\} is (a b c)(a\ b\ c) or its inverse; likewise on {b,c,d}\{b,c,d\}; replacing a generator by its inverse leaves s,t\langle s, t\rangle unchanged). Then, applying tt first,

st ⁣:ab,ba,cd,dc,i.e.st=(a b)(c d),st \colon a \mapsto b,\quad b \mapsto a,\quad c \mapsto d,\quad d \mapsto c, \qquad\text{i.e.}\quad st = (a\ b)(c\ d),

a double transposition. The subgroup G=s,tG = \langle s, t\rangle consists of even permutations of the four letters, so GA4G \leq A_4 and G12\abs G \mid 12; it contains an element of order 33 and one of order 22, so 6G6 \mid \abs G (Lagrange, Theorem 1.14, applied to the two cyclic subgroups). If A4A_4 had a subgroup KK of order 66, it would have index 22, and then g2Kg^2 \in K for every gA4g \in A_4: for gKg \in K this is clear; for gKg \notin K the only cosets are KK and gKgK, so the coset g2Kg^2K is KK or gKgK, and g2K=gKg^2K = gK would force gKg \in K. So every square lies in KK. But every 33-cycle γ\gamma is a square, γ=(γ2)2\gamma = (\gamma^2)^2, and A4A_4 contains eight 33-cycles: 8>68 > 6, contradiction. Hence G=12\abs G = 12: G=A4G = A_4.

15. Extend uau \mapsto a, vbv \mapsto b to a bijection g0g_0 of XX (send the remaining k2k - 2 letters bijectively anywhere onto the complement of {a,b}\{a, b\}). If g0g_0 is odd, pick two distinct letters s1,t1X{u,v}s_1, t_1 \in X \setminus \{u, v\} (possible: k4k \geq 4) and replace g0g_0 by g0(s1 t1)g_0 \circ (s_1\ t_1), which is even and still maps uau \mapsto a, vbv \mapsto b. Extend by the identity off XX: an even permutation gGg \in G (it is an even permutation of XX). Then question 12:

g(u v w)g1=(g(u) g(v) g(w))=(a b w)G,g\,(u\ v\ w)\,g^{-1} = (g(u)\ g(v)\ g(w)) = (a\ b\ w) \in G,

using g(w)=wg(w) = w.

16. Every 33-cycle of X{w}X \cup \{w\} lies in GG: those supported in XX are even permutations of XX; one with support {a,b,w}\{a, b, w\} is (a b w)(a\ b\ w) or (b a w)(b\ a\ w), both delivered by question 15. By Exercise 1.6, the 33-cycles of the (k+1)(k+1)-element set X{w}X \cup \{w\} generate its alternating group, so GG contains every even permutation of X{w}X \cup \{w\}. Chaining: let G=s0,,s12G = \langle s_0, \dots, s_{12}\rangle. Lemma A applied to s0=(x0 x1 x2)s_0 = (x_0\ x_1\ x_2) and s1=(x1 x2 x3)s_1 = (x_1\ x_2\ x_3) (supports share {x1,x2}\{x_1, x_2\}) gives all even permutations of X4={x0,x1,x2,x3}X_4 = \{x_0, x_1, x_2, x_3\}. If GG contains all even permutations of Xm={x0,,xm1}X_m = \{x_0, \dots, x_{m-1}\} (4m144 \leq m \leq 14), then sm2=(xm2 xm1 xm)s_{m-2} = (x_{m-2}\ x_{m-1}\ x_m) has u=xm2,v=xm1Xmu = x_{m-2}, v = x_{m-1} \in X_m and new letter w=xmw = x_m: Lemma B and the first part give all even permutations of Xm+1X_{m+1}. Induction up to m=14m = 14: GA15G \supseteq A_{15} (even permutations of all fifteen cells), and GA15G \subseteq A_{15} since each sts_t is even: s0,,s12=A15\langle s_0, \dots, s_{12}\rangle = A_{15}.

17. Questions 13 and 16: A15=s0,,s12HA_{15} = \langle s_0, \dots, s_{12}\rangle \subseteq H; question 9: HA15H \subseteq A_{15}. So H=A15H = A_{15}, of order 15!/2=65383718400015!/2 = 653\,837\,184\,000: every even rearrangement of the fifteen tiles is the effect of a program.

18. Question 8 reduced R={I=+1}R = \{I = +1\} to realizing every even ρS15\rho \in \mathfrak{S}_{15} by a program: done by question 17. With question 6, R=16!/2=10461394944000\abs R = 16!/2 = 10\,461\,394\,944\,000. Two classes: let t0=(14 15)t_0 = (14\ 15) act on contents: φ(σ)=t0σ\varphi(\sigma) = t_0 \circ \sigma. A legal move from σ\sigma is a legal move from φ(σ)\varphi(\sigma) (the blank cell is unchanged: (t0σ)1(16)=σ1(t0(16))=σ1(16)(t_0\sigma)^{-1}(16) = \sigma^{-1}(t_0(16)) = \sigma^{-1}(16), and the moved cell is the same), and φ(στ)=φ(σ)τ\varphi(\sigma \circ \tau) = \varphi(\sigma) \circ \tau: φ\varphi maps move sequences to move sequences, bijectively (it is an involution). It flips II: ε(t0σ)=ε(σ)\varepsilon(t_0\sigma) = -\varepsilon(\sigma), same blank cell. Hence φ\varphi maps the class R={I=+1}R = \{I = +1\} of id\mathrm{id} bijectively onto the class of φ(id)=σL\varphi(\mathrm{id}) = \sigma_L, which is therefore all of {I=1}\{I = -1\}: exactly two classes. This is the Johnson–Story theorem.

19. Index the cells in reading order and let k=4(i1)+jk = 4(i - 1) + j be the blank’s cell. Count the inversions of σ\sigma (pairs of cells x<yx < y with σ(x)>σ(y)\sigma(x) > \sigma(y)): pairs of two tile cells contribute NN; pairs involving the blank: cells after the blank all hold tiles <16< 16, each inverted (16k16 - k pairs), cells before it are never inverted. So ε(σ)=(1)N+16k=(1)N+k\varepsilon(\sigma) = (-1)^{N + 16 - k} = (-1)^{N + k}. Since k=4(i1)+jj(mod2)k = 4(i-1) + j \equiv j \pmod 2,

I(σ)=(1)N+j(1)i+j=(1)N+i=(1)N+r+1I(\sigma) = (-1)^{N + j}\,(-1)^{i + j} = (-1)^{N + i} = (-1)^{N + r + 1}

using i=5ri = 5 - r. By question 18, σ\sigma is solvable iff I(σ)=+1I(\sigma) = +1 iff N+rN + r is odd. Check: solved, N=0N = 0, r=1r = 1: odd, solvable; Loyd, N=1N = 1, r=1r = 1: even, unsolvable.

20. Action: eσ=σid=σe \cdot \sigma = \sigma \circ \mathrm{id} = \sigma and g(hσ)=σh1g1=σ(gh)1=(gh)σg \cdot (h \cdot \sigma) = \sigma \circ h^{-1} \circ g^{-1} = \sigma \circ (gh)^{-1} = (gh) \cdot \sigma; and σh1\sigma \circ h^{-1} is again a blank-home configuration (hh fixes cell 1616). Free: σh1=σ\sigma \circ h^{-1} = \sigma gives h1=idh^{-1} = \mathrm{id} (compose with σ1\sigma^{-1}). Orbits = program classes: question 9 says the configurations reachable from σ\sigma by programs are exactly the σπ1\sigma \circ \pi^{-1}, πH\pi \in H: the orbit HσH \cdot \sigma. Count: freeness makes hhσh \mapsto h \cdot \sigma injective, so every orbit has H=15!/2\abs H = 15!/2 elements; the 15!15! blank-home configurations therefore split into 15!/(15!/2)=215!\,/\,(15!/2) = 2 orbits — the blank-home shadow of the two Johnson–Story classes.

21. The 3×33 \times 3 grid is bipartite for the checkerboard colouring: every step of a walk changes colour, so every closed walk has even length. A closed walk visiting each of the 99 cells exactly once would have length 99, odd: impossible. The grand-tour construction of Part III is therefore unavailable on the eight puzzle.

22. Perimeter tour 9874123699 \to 8 \to 7 \to 4 \to 1 \to 2 \to 3 \to 6 \to 9 (all steps adjacent; length 88, even): by the bookkeeping of question 11 with c1=8,c2=7,c3=4,c4=1,c5=2,c6=3,c7=6c_1 = 8, c_2 = 7, c_3 = 4, c_4 = 1, c_5 = 2, c_6 = 3, c_7 = 6, the effect is

ζ=(8 6 3 2 1 4 7),\zeta' = (8\ 6\ 3\ 2\ 1\ 4\ 7),

a 77-cycle fixing the center 55 (content of 77 moves to 88, of 44 to 77, of 11 to 44, of 22 to 11, of 33 to 22, of 66 to 33, and of 88 to 66). Corner tour 965899 \to 6 \to 5 \to 8 \to 9: effect (6 8 5)(6\ 8\ 5) (content of 55 moves to 66, of 88 to 55, of 66 — parked at 99 — to 88). Set yt=ζt(8)y_t = \zeta'^{\,t}(8): y0=8,y1=6,y2=3,y3=2,y4=1,y5=4,y6=7y_0 = 8, y_1 = 6, y_2 = 3, y_3 = 2, y_4 = 1, y_5 = 4, y_6 = 7. Conjugation (question 12):

ζt(6 8 5)ζt=(yt+1 yt 5)=:TtH3×3,\zeta'^{\,t}\,(6\ 8\ 5)\,\zeta'^{-t} = (y_{t+1}\ y_t\ 5) =: T_t \in H_{3\times3},

since ζ\zeta' fixes 55. The supports of T0=(y1 y0 5)T_0 = (y_1\ y_0\ 5) and T1=(y2 y1 5)T_1 = (y_2\ y_1\ 5) share exactly {y1,5}\{y_1, 5\}: Lemma A gives all even permutations of {y0,y1,y2,5}\{y_0, y_1, y_2, 5\}. Then T2=(y3 y2 5)T_2 = (y_3\ y_2\ 5) adjoins y3y_3 by Lemma B (its letters y2,5y_2, 5 lie in the current set, k=4k = 4), and T3,T4,T5T_3, T_4, T_5 adjoin y4,y5,y6y_4, y_5, y_6 in turn: all even permutations of the eight non-home cells lie in the program group, which also consists of even permutations (the argument of question 9 is board-independent). So H3×3=A8H_{3\times3} = A_8, and the reasoning of questions 6, 8, 18 — also board-independent — shows the reachable configurations are exactly those with I=+1I = +1: half of 9!9!, i.e. 181440181\,440.

23. Label the cells 0,,n10, \dots, n-1 around the cycle. A move swaps the blank with one of its two neighbours. Read the tiles in cyclic order starting just after the blank: a word ww listing the n1n - 1 tiles. Moving the blank one step forward replaces (p,w)(p, w) by (p+1,ρw)(p + 1, \rho w), where pp is the blank cell and ρ\rho cyclically rotates the word by one; the backward move is the inverse. The cyclic order of the tiles (the word up to rotation) is thus invariant. The reachable class of (p,w)(p, w) is the orbit of the map g ⁣:(p,w)(p+1,ρw)g \colon (p, w) \mapsto (p+1, \rho w), an element of order lcm(n,n1)=n(n1)\operatorname{lcm}(n, n-1) = n(n-1) in the product of the two cyclic groups (translations of Z/nZ\Z/n\Z and rotations of the n1n-1 word positions), the lcm being n(n1)n(n-1) because gcd(n,n1)=1\gcd(n, n-1) = 1: each class has exactly n(n1)n(n-1) configurations, all with the same necklace. Classes: n!/(n(n1))=(n2)!n!\,/\,\bigl(n(n-1)\bigr) = (n-2)!. For n5n \geq 5, (n2)!>2(n-2)! > 2: the parity invariant (two classes at best) is blind to almost all of the obstruction; the wealth of the 4×44 \times 4 board — where parity is the only obstruction — is a genuinely geometric fact, not a formal one.

24. Both trays have the tiles in fully reversed order, so N=(152)=105N = \binom{15}{2} = 105 in both cases (every pair of tiles is inverted). Blank home: r=1r = 1, N+r=106N + r = 106 even: unsolvable. Blank in cell 11: the blank is in the top row, r=4r = 4, N+r=109N + r = 109 odd: solvable. Two trays that differ only by where the hole sits fall on opposite sides of the wall.

25. Morphism property: it converts “one move = one transposition” into “one move = one sign flip” (questions 2, 4), making II computable move by move. Lagrange: it forced 6s,t6 \mid \abs{\langle s, t\rangle} in Lemma A and sized the cosets in the order-66 exclusion (question 14). Generation by 33-cycles: it converted “HH contains enough 33-cycles” into “HH contains all of A15A_{15}” (question 16). Conjugation: it manufactured the fifteen consecutive 33-cycles from a single 2×22 \times 2 tour transported by the grand tour (questions 12–13), and the 33-cycles (a b w)(a\ b\ w) in Lemma B. Meta-principle: an invariant proves impossibility, an explicit construction proves possibility, and a problem is fully solved exactly when the two bounds meet — here, at one half.