3.4  Permutations and Cycle Notation

Shuffle three cards, then shuffle them again. Two shuffles in a row are a shuffle, every shuffle can be undone, and the order of the two shuffles matters. This is the group of bijections of a finite set (Example (Groups) (c)), and it is the one group of this chapter studied in detail, because every determinant in linear algebra is built from it. This section gives it a compact notation, cycle notation, learns to multiply in it, counts its elements, and proves that every permutation breaks into independent loops: follow the orbit, then peel it off.

3.4.1. Permutations and two-line notation

Section 3.1 showed that the bijections of a set form a group under composition. On the set {1,…,n} they are the rearrangements of n objects, and they get a name of their own.

A permutation is a rearrangement: a bijection of a set to itself.

Definition 3.4.1 (Permutations and the Symmetric Group)

Let X be a set. A permutation of X is a bijection X→X. The permutations of X, with the operation στ:=σ∘τ, form the group SX of Example (Groups) (c). For n∈N, the symmetric group is Sn:=S{1,…,n}, where {1,…,n} is empty for n=0. The support of σ∈SX is the set of points it moves, suppσ:={x∈X:σ(x)≠x}.

In words: SX is not a new group. It is the group of bijections of X, with the product written as juxtaposition. Its identity is idX, written id when X is clear, and the inverse of σ is the inverse function σ−1 (Sets, Relations, and Cardinality, Definition 1.5.2). The support of id is empty, and the support is empty only for id: if σ(x)=x for every x, then σ=idX (Sets, Relations, and Cardinality, Proposition 1.4.1).

The product is read right to left. In SX the product στ is the composite σ∘τ: first apply τ, then σ, exactly as g∘f applies f first (Sets, Relations, and Cardinality, Definition 1.4.2). So (στ)(x)=σ(τ(x)), and a longer product σ1σ2⋯σr applies σr first and σ1 last.

Two-line notation. A permutation σ∈Sn is given by its values, and we write them under the points: σ=(12⋯nσ(1)σ(2)⋯σ(n)). This array is a table of values, not a matrix. For example, (12343124)∈S4 sends 1↦3, 2↦1, 3↦2 and fixes 4; its support is {1,2,3}. The bottom row of a permutation lists each of 1,…,n exactly once: once at least, because σ is surjective, and at most once, because it is injective.

The smallest symmetric groups. S0 has one element, the empty function ∅→∅ (Sets, Relations, and Cardinality, Proposition 1.4.2 (a)), which is a bijection because there is nothing to check; it is the trivial group. S1 has one element, id, since the only function {1}→{1} sends 1↦1. S2 has two elements, id and the permutation swapping 1 and 2: a bijection of {1,2} either fixes 1, and then also 2, or sends 1↦2, and then 2↦1. These degenerate cases are where inductions on n start, here and in Section 3.5.

3.4.2. Cycles

Two-line notation lists every value, even the values of points that do not move. Most permutations met in practice move a few points around a loop and leave the rest alone, and a notation that records only the loop is shorter and shows more.

A cycle moves a list of distinct points one step along the list, the last back to the first, and fixes everything else.

Definition 3.4.2 (Cycle, Transposition)

Let n∈N and k≥2, and let i1,…,ik∈{1,…,n} be distinct. The k-cycle (i1 i2 ⋯ ik)∈Sn is the permutation γ with γ(ij):=ij+1  for 1≤j<k,γ(ik):=i1, and γ(x):=x for every x∈{1,…,n} not among i1,…,ik. A 2-cycle (i j) is a transposition. Two cycles are disjoint if their supports are disjoint.

In words: i1↦i2↦⋯↦ik↦i1, and the points off the list stay put. A transposition (i j) swaps i and j.

Well-definedness. Because the entries are distinct, each point of {1,…,n} receives exactly one value from the rule, so γ is a function. It is a bijection: the cycle (ik ⋯ i2 i1), the list read backwards, undoes it point by point (ij+1↦ij and i1↦ik, and the other points are fixed by both), so it is a two-sided inverse and Sets, Relations, and Cardinality, Theorem 1.5.4 applies. Hence (i1 i2 ⋯ ik)−1=(ik ⋯ i2 i1). Every entry is moved, since ij+1≠ij and i1≠ik by distinctness and k≥2; so supp(i1 ⋯ ik)={i1,…,ik}. A transposition is its own inverse: (i j)(i j)=id.

Examples. In S4, (1 2 3) sends 1↦2, 2↦3, 3↦1 and fixes 4; in two-line notation it is (12342314). The same cycle may be written starting at any of its entries: (1 2 3)=(2 3 1)=(3 1 2), since all three describe the loop 1↦2↦3↦1. But (1 3 2) is a different permutation: it sends 1↦3. The cycles (1 2) and (3 4) are disjoint; (1 2) and (2 3) are not.

Second readingWhy a cycle has at least two entries

The identity is not a cycle. The definition asks for k≥2: a “1-cycle” (i) would be the identity, and so would every one of them, so the notation would not be telling us anything. The identity is instead the empty product of cycles (Definition 3.1.2), and that is how it will appear in the decomposition theorem below.

Quick check. Which of these are equal in S4: (2 4 1), (1 2 4), (1 4 2)? Write the one that differs in two-line notation.

Solution. (2 4 1) is the loop 2↦4↦1↦2, and (1 2 4) is the same loop started at 1: both send 1↦2, 2↦4, 4↦1 and fix 3. So they are equal. (1 4 2) runs the loop backwards: it sends 1↦4, 4↦2, 2↦1, so it differs from the other two at 1. In two-line notation it is (12344132); it is the inverse of the other two.

Products of cycles are computed by following each point through the factors, from right to left.

Example (Computing with Cycles)

In S3, compute (1 3)(1 2) and (1 2)(1 3). In S5, write σ=(1234535124) as a product of cycles.

Solution. For (1 3)(1 2), follow each point through (1 2) first, then (1 3): 1↦2↦2, 2↦1↦3, 3↦3↦1. So (1 3)(1 2)=(1 2 3). For (1 2)(1 3): 1↦3↦3, 3↦1↦2, 2↦2↦1. So (1 2)(1 3)=(1 3 2). The two products differ, so S3 is not abelian. For every n≥3, the same two transpositions lie in Sn, the same computation applies at 1,2,3, and both products fix every point ≥4; so Sn is not abelian for every n≥3.

For σ, start at 1 and follow: 1↦3↦1, a loop (1 3). The smallest point not yet used is 2: 2↦5↦4↦2, a loop (2 5 4). Every point is now used, so σ=(1 3)(2 5 4). To check, follow each point through (2 5 4) first, then (1 3): 1↦1↦3, 2↦5↦5, 3↦3↦1, 4↦2↦2, 5↦4↦4, which is the bottom row 3,5,1,2,4. The two cycles move disjoint sets of points, and the product in the other order, (2 5 4)(1 3), is also σ, as the same check shows.

Second readingThe small symmetric groups are abelian

For Sn with n≤2 the situation is different: S0, S1 and S2 have at most two elements, and any two of their elements commute, since one of them is id or both are equal. So Sn is abelian exactly when n≤2.

Warning. Mind the order. στ applies τ first, as g∘f applies f first. Reading a product of cycles from left to right gives a wrong answer: read that way, (1 3)(1 2) would send 1↦3↦3, 3↦1↦2, 2↦2↦1, that is, “(1 3 2)”; but the example computed (1 3)(1 2)=(1 2 3). The left-to-right reading computes the product in the other order.

Section 3.1 noted that the power law (gh)n=gnhn of Proposition 3.1.3 (d) needs gh=hg. In S3 it fails without that hypothesis.

Warning. (στ)2=σ2τ2 is false in general. Take σ=(1 2) and τ=(1 3). By the example, στ=(1 3 2), and (1 3 2)(1 3 2) sends 1↦3↦2, 2↦1↦3, 3↦2↦1, so (στ)2=(1 2 3). But transpositions are their own inverses, so σ2τ2=id⋅id=id. Here στ≠τσ, and the law fails.

Quick check. Compute (1 2 3)(1 2) in S3.

Solution. Apply (1 2) first: 1↦2↦3, 2↦1↦2, 3↦3↦1. So 1 and 3 are swapped and 2 is fixed: (1 2 3)(1 2)=(1 3).

3.4.3. Counting permutations

How many permutations does Sn have? There are n choices for σ(1), then n−1 for σ(2), and so on, which suggests n!. We make this precise by induction on n, and the induction needs one structural fact: the permutations of {1,…,n+1} that fix the last point are, in effect, the permutations of {1,…,n}. Section 3.5 uses the same fact for a different induction.

Lemma 3.4.1 (Permutations Fixing the Last Point)

Let n∈N, and let S′:={σ∈Sn+1:σ(n+1)=n+1}, a subgroup of Sn+1.

  • (a) For σ∈S′, the restriction σ′ of σ to {1,…,n}, with codomain {1,…,n}, is a permutation of {1,…,n}.
  • (b) The map S′→Sn, σ↦σ′, is an isomorphism. Its inverse sends ρ∈Sn to its extension ρ¯∈S′, defined by ρ¯(i):=ρ(i) for i≤n and ρ¯(n+1):=n+1.

That S′ is a subgroup is Example (Subgroups) (e), with X={1,…,n+1} and the chosen point n+1.

Idea. A permutation fixing n+1 cannot send any other point to n+1, since that value is taken; so it maps {1,…,n} into itself. It also reaches every point there, because whatever reaches j≤n cannot be n+1. Restricting and extending undo each other, and restriction respects composition.

Proof.

  • (a) Let σ∈S′ and i∈{1,…,n}. If σ(i)=n+1=σ(n+1), then i=n+1 by injectivity, which is false; so σ(i)∈{1,…,n}, and σ′:{1,…,n}→{1,…,n}, σ′(i):=σ(i), is a function. It is injective because σ is. It is surjective: for j∈{1,…,n} there is i∈{1,…,n+1} with σ(i)=j, since σ is surjective, and i≠n+1, since σ(n+1)=n+1≠j. So σ′∈Sn.

  • (b) Write R(σ):=σ′ and E(ρ):=ρ¯.

E maps into S′. The extension ρ¯ is a function on {1,…,n+1} with values in that set, and ρ−1― undoes it point by point: for i≤n, ρ−1―(ρ¯(i))=ρ−1(ρ(i))=i, and both fix n+1; the other composite is the same with ρ and ρ−1 exchanged. So ρ¯ is a bijection (Sets, Relations, and Cardinality, Theorem 1.5.4) fixing n+1.

R and E are mutually inverse. For σ∈S′, σ′― agrees with σ at every i≤n and at n+1, so E(R(σ))=σ (Sets, Relations, and Cardinality, Proposition 1.4.1). For ρ∈Sn, (ρ¯)′ agrees with ρ at every i≤n, so R(E(ρ))=ρ. Hence R is a bijection with inverse E (Sets, Relations, and Cardinality, Definition 1.5.2, Sets, Relations, and Cardinality, Theorem 1.5.4).

R is a homomorphism. Let σ,τ∈S′ and i≤n. By (a), τ(i)≤n, so (στ)′(i)=σ(τ(i))=σ′(τ′(i))=(σ′τ′)(i). So (στ)′=σ′τ′, and R is an isomorphism. Its inverse E is an isomorphism by Proposition 3.3.2 (b). This proves the lemma.

So inside Sn+1 sits a copy of Sn, the permutations that leave the last point alone. The factorial n! is that of Sets, Relations, and Cardinality, Definition 2.3.1, read in N: 0!=1 and (n+1)!=n!(n+1).

Proposition 3.4.2 (The Symmetric Group Has n! Elements)

For every n∈N, Sn is finite and has n! elements: |Sn|=n!.

Idea. Sort the permutations of {1,…,n+1} by where they send the last point. Those sending it to n+1 are a copy of Sn, by the lemma. Those sending it to k≤n are matched with the first kind by composing with the swap (k  n+1). So there are n+1 classes of n! permutations each.

Proof. We use induction on n (Logic and Proof, Axiom 4.2.1). For n=0, S0 has exactly one element, the empty function (Sets, Relations, and Cardinality, Proposition 1.4.2 (a)), and 0!=1.

Suppose Sn has n! elements. For k∈{1,…,n+1} let Ak:={σ∈Sn+1:σ(n+1)=k}. Every σ∈Sn+1 lies in exactly one Ak, namely for k=σ(n+1). So the sets A1,…,An+1 are pairwise disjoint and their union is Sn+1.

The class An+1. An+1 is the subgroup S′ of Lemma 3.4.1. By the induction hypothesis there is a bijection {1,…,n!}→Sn (Sets, Relations, and Cardinality, Definition 3.1.2); composing it with the bijection Sn→S′ of the lemma gives a bijection {1,…,n!}→An+1 (Sets, Relations, and Cardinality, Theorem 1.4.4 (c)). So An+1 has n! elements.

The classes Ak, k≤n. Let τ:=(k  n+1), a transposition with ττ=id. If σ∈Ak, then (τσ)(n+1)=τ(k)=n+1, so τσ∈An+1; if ρ∈An+1, then (τρ)(n+1)=τ(n+1)=k, so τρ∈Ak. The maps Ak→An+1, σ↦τσ, and An+1→Ak, ρ↦τρ, are mutually inverse, since τ(τσ)=(ττ)σ=σ by (G1), ττ=id and (G2), and likewise for ρ. So σ↦τσ is a bijection Ak→An+1 (Sets, Relations, and Cardinality, Theorem 1.5.4), and composing as before, Ak has n! elements.

Adding up. We prove, by Sets, Relations, and Cardinality, Theorem 2.2.1 with base 1 (read on ω by Number Systems: From N to R, Corollary 1.7.3 (b)), the statement P(j): “if j≤n+1, the union A1∪⋯∪Aj has jn! elements”. For j=1 this is the count of A1, and the step adds the n! elements of Aj+1, disjoint from A1∪⋯∪Aj, by Sets, Relations, and Cardinality, Proposition 3.1.5, with jn!+n!=(j+1)n!. For j=n+1, Sn+1 has (n+1)n!=(n+1)! elements. This completes the induction and proves the proposition.

So S3 has 6 elements, S4 has 24, and S10 already has 3628800. For S3 all six can be listed: id, the three transpositions (1 2), (1 3), (2 3), and the two 3-cycles (1 2 3), (1 3 2). These are six different permutations, so by the proposition they are all of S3: a proper subset of a 6-element set has fewer elements (Sets, Relations, and Cardinality, Proposition 3.1.6, Sets, Relations, and Cardinality, Corollary 3.1.4).

3.4.4. Disjoint cycles and the decomposition theorem

In Example (Computing with Cycles), σ came apart into the loops (1 3) and (2 5 4), which move disjoint sets of points, and the order of the two factors did not matter. Both observations hold in general. We start with the second: permutations moving disjoint sets of points do not interfere with each other.

Proposition 3.4.3 (Disjoint Permutations Commute)

Let n∈N and σ,τ∈Sn with suppσ∩suppτ=∅. Then στ=τσ. Moreover, every permutation σ maps suppσ onto itself: σ(suppσ)=suppσ.

In particular, disjoint cycles commute.

Idea. A point moved by σ is fixed by τ, and so is its image under σ, because σ keeps its moved points among its moved points. So on suppσ only σ acts, on suppτ only τ, and elsewhere neither: the order of application cannot matter.

Proof. σ maps its support onto itself. Let i∈suppσ. If σ(i)∉suppσ, then σ(σ(i))=σ(i), and injectivity gives σ(i)=i, against i∈suppσ. So σ(suppσ)⊆suppσ. Conversely, let j∈suppσ and i:=σ−1(j). If i∉suppσ, then j=σ(i)=i∉suppσ, a contradiction; so i∈suppσ and j=σ(i)∈σ(suppσ). Hence σ(suppσ)=suppσ.

Commuting. Let i∈{1,…,n}. There are three cases, since i lies in at most one of the disjoint supports.

Case 1: i∈suppσ. Then i∉suppτ, so τ(i)=i. Also σ(i)∈suppσ by the first part, so σ(i)∉suppτ and τ(σ(i))=σ(i). Hence (στ)(i)=σ(i)=(τσ)(i).

Case 2: i∈suppτ. The same argument with σ and τ exchanged gives (τσ)(i)=τ(i)=(στ)(i).

Case 3: i lies in neither support. Then σ(i)=i=τ(i), and both products send i to i.

So στ and τσ agree at every point, and στ=τσ (Sets, Relations, and Cardinality, Proposition 1.4.1). This proves the proposition.

The hypothesis “disjoint” cannot be dropped: (1 2) and (1 3) share the point 1, and Example (Computing with Cycles) shows that they do not commute. Exercise C1 looks at the dropped hypothesis more closely.

Now the main theorem. To break a permutation into loops, start at a point it moves and follow it until it comes back. The loop found is a cycle; remove it, and fewer points are moved, so induction finishes the job.

Theorem 3.4.4 (Disjoint Cycle Decomposition)

Let n∈N. Every σ∈Sn is a product σ=γ1γ2⋯γs, s∈N, of pairwise disjoint cycles, each with support contained in suppσ. For σ=id the product is empty (s=0).

The clause about supports is part of the statement because the induction needs it: it is what makes the new cycle disjoint from the old ones. The theorem says nothing about uniqueness; that the decomposition is unique up to the order of the factors is proved in Groups, the chapter “Symmetric Groups and the Sign of a Permutation”.

Idea. Induction on the number m of points that σ moves. ① Pick a moved point i and follow its orbit i,σ(i),σ2(i),…. There are only n points, so the orbit repeats, and it repeats first at i itself. ② The points before the return form a cycle γ on which σ acts exactly as γ does. ③ Peel it off: ρ:=γ−1σ fixes the orbit and everything σ fixes, so it moves fewer points, and the induction hypothesis decomposes it. Then σ=γρ.

Before reading on: why must the orbit of i return to i itself, and not to some later point?

Proof. We use strong induction (Logic and Proof, Theorem 4.2.2) on m∈N, for the statement: every σ∈Sn whose support has m elements is a product of pairwise disjoint cycles with supports in suppσ. Every support is a subset of {1,…,n}, which has n elements, so it is finite (Sets, Relations, and Cardinality, Proposition 3.1.6), and every σ is covered by the statement for some m.

Let σ∈Sn, let suppσ have m elements, and suppose the statement holds for every smaller number. If m=0, then suppσ=∅, so σ=id, the empty product (Definition 3.1.2). Let m≥1 and choose i∈suppσ.

Follow the orbit. Powers are taken in the group Sn (Definition 3.1.3). The map {0,1,…,n}→{1,…,n}, c↦σc(i), goes from a set of n+1 elements to a set of n elements, so it is not injective (Sets, Relations, and Cardinality, Corollary 3.1.3 (a)): σa(i)=σb(i) for some 0≤a<b≤n. Apply σ−a to both sides. By Proposition 3.1.3 (a), σ−aσa=σ0=id and σ−aσb=σb−a, so i=σb−a(i),b−a≥1. So the set of c∈Z>0 with σc(i)=i is non-empty and bounded below by 0, and it has a least element r (Number Systems: From N to R, Proposition 2.3.6). Since σ(i)≠i, r≥2.

The points i,σ(i),…,σr−1(i) are distinct. Indeed, if σc(i)=σd(i) with 0≤c<d≤r−1, the argument just given yields σd−c(i)=i with 0<d−c<r, against the minimality of r. Let O:={σc(i):0≤c≤r−1},γ:=(i  σ(i) ⋯ σr−1(i)), an r-cycle (Definition 3.4.2) with suppγ=O.

σ acts on O as γ does. For 0≤c<r−1, γ(σc(i))=σc+1(i)=σ(σc(i)), where σc+1=σσc by Proposition 3.1.3 (a). For c=r−1, γ(σr−1(i))=i=σr(i)=σ(σr−1(i)). So σ(x)=γ(x) for every x∈O. In particular σ moves every point of O, since γ does, and O⊆suppσ.

Peel it off. Let ρ:=γ−1σ. For x∈O, ρ(x)=γ−1(σ(x))=γ−1(γ(x))=x. For x∉suppσ, we have x∉O, so γ(x)=x and hence γ−1(x)=x; then ρ(x)=γ−1(x)=x. So ρ fixes every point of O and every point outside suppσ: suppρ⊆suppσ∖O. Since i∈O, the set suppσ∖O is a proper subset of suppσ, so it has fewer than m elements, and so does its subset suppρ (Sets, Relations, and Cardinality, Proposition 3.1.6, twice). By the induction hypothesis, ρ=γ1⋯γs with pairwise disjoint cycles γj and suppγj⊆suppρ⊆suppσ∖O. Each γj is therefore disjoint from γ, whose support is O.

Finally, γρ=γγ−1σ=σ, so by Proposition 3.1.2 (a) σ=γγ1⋯γs, a product of pairwise disjoint cycles, with suppγ=O⊆suppσ and suppγj⊆suppσ. This completes the induction and proves the theorem.

The answer to the prompt. The orbit returns to i itself because σ is injective; in the proof, that is the step “apply σ−a”. If the first repetition were σb(i)=σa(i) with a≥1, applying σ−1 would give the earlier repetition σb−1(i)=σa−1(i). For a function that is not injective this fails: f:{1,2}→{1,2} with f(1)=f(2)=2 has the orbit 1,2,2,2,…, which never comes back to 1.

The proof is an algorithm. Here it is run on one permutation.

A worked run. Let σ∈S6 send 1↦4, 2↦6, 3↦3, 4↦1, 5↦2, 6↦5. Its support is {1,2,4,5,6}. Start at 1: 1↦4↦1, so r=2 and γ=(1 4). Peel it off: ρ=(1 4)−1σ=(1 4)σ fixes 1 and 4 and agrees with σ elsewhere, with support {2,5,6}. Start again at 2: 2↦6↦5↦2, so r=3 and the next cycle is (2 6 5). Peeling it off leaves the identity, and the point 3, fixed by σ, never enters. So σ=(1 4)(2 6 5).

Quick check. Decompose (123456365412)∈S6 into disjoint cycles.

Solution. Start at 1: 1↦3↦5↦1, the cycle (1 3 5). The next moved point is 2: 2↦6↦2, the cycle (2 6). The point 4 is fixed. So the permutation is (1 3 5)(2 6), and by Proposition 3.4.3 also (2 6)(1 3 5).

By Proposition 3.4.3, two neighboring factors of a disjoint cycle decomposition may be exchanged; for instance (1 3 5)(2 6)=(2 6)(1 3 5). The next section breaks each cycle further, into transpositions.

3.4.5. Exercises

A. Check your understanding

Exercise (A1)
  • (a) Compute (1 2 3 4)(2 4) and (2 4)(1 2 3 4) in S4, as products of disjoint cycles.
  • (b) Find the inverse of (1 5 2 7) in S7, written as a cycle starting at 1.
  • (c) Run the proof of Theorem 3.4.4 on σ=(1234525431)∈S5, starting at i=1: give the orbit of 1, the number r, the cycle γ, and ρ=γ−1σ; then finish the run. Which step of the proof uses that σ is injective?
  • (d) Compute ((1 2)(2 3))2 and (1 2)2(2 3)2 in S3.

Solution.

  • (a) For (1 2 3 4)(2 4), apply (2 4) first: 1↦1↦2, 2↦4↦1, 3↦3↦4, 4↦2↦3. So the product is (1 2)(3 4). For (2 4)(1 2 3 4), apply (1 2 3 4) first: 1↦2↦4, 4↦1↦1, 2↦3↦3, 3↦4↦2. So the product is (1 4)(2 3). The two orders give different permutations.

  • (b) By the inverse formula after Definition 3.4.2, (1 5 2 7)−1=(7 2 5 1), which, started at 1, is (1 7 2 5).

  • (c) The orbit of 1 is 1↦2↦5↦1, so r=3 and γ=(1 2 5), with γ−1=(5 2 1)=(1 5 2). Then ρ=γ−1σ sends 1↦2↦1, 2↦5↦2, 5↦1↦5, 3↦4↦4, 4↦3↦3: ρ=(3 4). Running the proof on ρ, starting at 3: 3↦4↦3, so the cycle is (3 4), and peeling it off leaves id. Hence σ=(1 2 5)(3 4). Injectivity is used where the orbit is shown to return to i itself: the step that applies σ−a to σa(i)=σb(i).

  • (d) (1 2)(2 3): 1↦1↦2, 2↦3↦3, 3↦2↦1, so it is (1 2 3), and its square sends 1↦2↦3, 3↦1↦2, 2↦3↦1: ((1 2)(2 3))2=(1 3 2). On the other hand (1 2)2(2 3)2=id, since transpositions are their own inverses. A second instance of the warning on (στ)2.

B. Practice

Exercise (B1: The table of S3)

List the six elements of S3 in cycle notation and write out the table whose entry in row x and column y is xy. Hence find all x∈S3 with x2=id, and all x that commute with every element of S3.

Solution. By the list after Proposition 3.4.2, the elements are id,(1 2),(1 3),(2 3),(1 2 3),(1 3 2). Computing each product right to left, as in Example (Computing with Cycles), the entry in row x, column y is xy:

xy id (1 2) (1 3) (2 3) (1 2 3) (1 3 2)
id id (1 2) (1 3) (2 3) (1 2 3) (1 3 2)
(1 2) (1 2) id (1 3 2) (1 2 3) (2 3) (1 3)
(1 3) (1 3) (1 2 3) id (1 3 2) (1 2) (2 3)
(2 3) (2 3) (1 3 2) (1 2 3) id (1 3) (1 2)
(1 2 3) (1 2 3) (1 3) (2 3) (1 2) (1 3 2) id
(1 3 2) (1 3 2) (2 3) (1 2) (1 3) id (1 2 3)

For example, the entry in row (1 2), column (2 3) is (1 2)(2 3): 1↦1↦2, 2↦3↦3, 3↦2↦1, which is (1 2 3).

Reading the diagonal, x2=id exactly for x=id,(1 2),(1 3),(2 3). An element x commutes with every element exactly when row x equals column x. This holds for id. It fails for every other element: (1 2)(1 3)=(1 3 2)≠(1 2 3)=(1 3)(1 2) handles (1 2) and (1 3); (2 3)(1 2)=(1 3 2)≠(1 2 3)=(1 2)(2 3) handles (2 3); and (1 2 3)(1 2)=(1 3)≠(2 3)=(1 2)(1 2 3) handles (1 2 3), while (1 3 2)(1 2)=(2 3)≠(1 3)=(1 2)(1 3 2) handles (1 3 2). Hence only id commutes with everything.

Exercise (B2: Counting cycles)

Let n∈N and 2≤k≤n. Show that Sn contains exactly n!(n−k)!k k-cycles. Check the formula for n=4 by listing the cycles of S4.

Solution. We use one counting fact: if a finite set is the union of N pairwise disjoint subsets with q elements each, it has Nq elements. This is Sets, Relations, and Cardinality, Proposition 3.1.5 applied N−1 times, by induction on N, as in the proof of Proposition 3.4.2.

Lists. Let Tk be the set of lists (i1,…,ik) of distinct elements of {1,…,n}. Then Tk has n(n−1)⋯(n−k+1) elements, by induction on k: T0 has one element, the empty list, and Tj+1 is the disjoint union, over the lists t∈Tj, of the sets of lists extending t by a point x of the complement C of its entry set E. Here E has j elements, since the entries are distinct, so j+|C|=n (Sets, Relations, and Cardinality, Proposition 3.1.6, Sets, Relations, and Cardinality, Proposition 3.1.5, Sets, Relations, and Cardinality, Corollary 3.1.4) and C has n−j elements. By the counting fact, Tj+1 has (n−j) times as many elements as Tj. Since n(n−1)⋯(n−k+1)⋅(n−k)!=n!, this number is n!/(n−k)!.

Lists to cycles. Each list in Tk defines the k-cycle (i1 ⋯ ik), and every k-cycle arises this way. Two lists give the same cycle exactly when one is a rotation of the other. Indeed, rotations give the same cycle (the remark after Definition 3.4.2). Conversely, if (i1 ⋯ ik)=(j1 ⋯ jk)=γ, then j1 lies in the support {i1,…,ik}, say j1=ic, and then j2=γ(j1)=ic+1, and so on around the loop: the second list is the first rotated to start at ic. The k rotations of a list are k different lists, since their first entries differ. So the lists fall into pairwise disjoint classes of k elements, one class per k-cycle, and by the counting fact, with Nk the number of k-cycles, kNk=n!(n−k)!. Dividing by k gives the formula.

Check, n=4. Transpositions: 4!/(2!⋅2)=6, namely (1 2),(1 3),(1 4),(2 3),(2 4),(3 4). 3-cycles: 4!/(1!⋅3)=8, two for each of the four sets of three points: (1 2 3),(1 3 2),(1 2 4),(1 4 2),(1 3 4),(1 4 3),(2 3 4),(2 4 3). 4-cycles: 4!/(0!⋅4)=6, starting at 1 with the other three points in any of their 3!=6 orders: (1 2 3 4),(1 2 4 3),(1 3 2 4),(1 3 4 2),(1 4 2 3),(1 4 3 2).

Exercise (B3: The rotations of a square)

Label the corners of a square 1,2,3,4 in order around it. The quarter turn moves each label to the next corner, which is the permutation ρ=(1 2 3 4)∈S4 (Example (Groups) (e)).

  • (a) Compute ρ2 and ρ3 as products of disjoint cycles, and show ρ4=id.
  • (b) Show that ⟨ρ⟩={id,ρ,ρ2,ρ3}.
  • (c) Show that [k]↦ρk is a well-defined isomorphism (Z/4Z,+)→⟨ρ⟩.

Solution.

  • (a) ρ2=ρρ sends 1↦2↦3, 3↦4↦1, 2↦3↦4, 4↦1↦2: ρ2=(1 3)(2 4). Then ρ3=ρ2ρ sends 1↦2↦4, 4↦1↦3, 3↦4↦2, 2↦3↦1: ρ3=(1 4 3 2). Finally ρ4=ρ3ρ sends 1↦2↦1, 2↦3↦2, 3↦4↦3, 4↦1↦4: ρ4=id.

  • (b) By Definition 3.2.2, ⟨ρ⟩={ρk:k∈Z}. For k∈Z, divide by 4: k=4q+r with 0≤r<4 (Number Systems: From N to R, Theorem 3.1.2 (a)). By Proposition 3.1.3 (a) and (c), ρk=(ρ4)qρr=idqρr=ρr, where idq=(ρ0)q=ρ0=id, again by (c). So every ρk is one of ρ0=id,ρ,ρ2,ρ3, and all four lie in ⟨ρ⟩.

  • (c) Well defined. If [k]=[k′] in Z/4Z, then k′−k∈4Z (Number Systems: From N to R, Definition 3.4.2), so k′=k+4q for some q∈Z, and ρk′=ρk(ρ4)q=ρk as in (b). Homomorphism. [k]+[l]=[k+l]↦ρk+l=ρkρl by Proposition 3.1.3 (a). Bijective. The four distinct classes [0],[1],[2],[3], which are all of Z/4Z (Number Systems: From N to R, Theorem 3.4.3 (b)), go to id,ρ,ρ2,ρ3, which are four different permutations by (a) (they differ at the point 1: 1,2,3,4) and are all of ⟨ρ⟩ by (b). So the map is a bijection, hence an isomorphism, and the four rotations of the square form a copy of Z/4Z, as Section 3.1 announced.

C. Going deeper

Exercise (C1: Dropping “disjoint”)

Proposition 3.4.3 assumes that the supports are disjoint.

  • (a) Find two transpositions that share exactly one point and do not commute.
  • (b) Find two cycles in S3 with the same support that do commute.
  • (c) In the proof of Proposition 3.4.3, which step fails for the pair of (a)?

Solution.

  • (a) (1 2) and (2 3) share only the point 2. By the table of Exercise B1, (1 2)(2 3)=(1 2 3) and (2 3)(1 2)=(1 3 2), which differ (at 1: 2 versus 3).

  • (b) (1 2 3) and (1 3 2) both have support {1,2,3}. They are inverse to each other (the inverse formula after Definition 3.4.2), so both products are id: (1 2 3)(1 3 2)=id=(1 3 2)(1 2 3). More generally every permutation commutes with its inverse and with its own powers (Proposition 3.1.3 (a)). So disjointness is sufficient for commuting, not necessary.

  • (c) Case 1 at the point i=1∈supp(1 2): the proof needs σ(i)=2∉suppτ, so that τ fixes it. Here τ=(2 3) moves 2, so (τσ)(1)=τ(2)=3, while (στ)(1)=σ(1)=2.

Exercise (C2: Powers of disjoint cycles)
  • (a) Let σ=(i1 ⋯ ik)∈Sn be a k-cycle and m∈Z>0. Prove that σm=id if and only if k∣m.
  • (b) Let σ be a k-cycle and τ an l-cycle in Sn, disjoint. Prove that, for every m∈Z>0, (στ)m=id if and only if k∣m and l∣m.
  • (c) Deduce that the least m≥1 with (στ)m=id is the least positive common multiple of k and l.
  • (d) Find the least m≥1 with ((1 2)(3 4 5))m=id in S5.

Solution (Hint 1). For (b): a power of τ fixes every point that τ fixes.

Solution (Hint 2). Converse of (b): evaluate σmτm=id at a point of suppσ.

Solution.

  • (a) Read the indices of the entries modulo k: for j∈Z let ij:=it, where t∈{1,…,k} and j≡t(modk). Write j−1=kq+s with 0≤s<k (Number Systems: From N to R, Theorem 3.1.2 (a)) and take t:=s+1; t is unique because s is. Then σ(ij)=ij+1 for every j, which is Definition 3.4.2. By induction on m∈N (Logic and Proof, Axiom 4.2.1), σm(ij)=ij+m for every j: for m=0 both sides are ij, and σm+1(ij)=σ(σm(ij))=σ(ij+m)=ij+m+1, using σm+1=σσm (Proposition 3.1.3 (a)). Every point off the cycle is fixed by σ, hence by σm. So σm=id if and only if ij+m=ij for every j. Since the entries i1,…,ik are distinct, ij+m=ij holds exactly when j+m≡j(modk), that is, when k∣m.

  • (b) The supports are disjoint, so στ=τσ (Proposition 3.4.3), and (στ)m=σmτm by Proposition 3.1.3 (d). If k∣m and l∣m, then σm=τm=id by (a), so (στ)m=id. Conversely, suppose σmτm=id. Let x∈suppσ. Then x∉suppτ, so τ(x)=x, and by induction on m (Logic and Proof, Axiom 4.2.1) τm(x)=x (Hint 1). Hence σm(x)=σm(τm(x))=x. Also σm fixes every x∉suppσ, since σ does. So σm=id, and then τm=σmτm=id. By (a), k∣m and l∣m.

  • (c) By (b), the m≥1 with (στ)m=id are exactly the positive common multiples of k and l. This set contains kl, and so it has a least element (Number Systems: From N to R, Proposition 2.3.6), the least positive common multiple of k and l. By Exercise (C3: Inclusions and intersections), the common multiples of k and l are exactly the multiples of that number.

  • (d) (1 2) and (3 4 5) are disjoint, of lengths 2 and 3. The positive common multiples of 2 and 3 start 6,12,… (a common multiple of 2 is even, and 3∤2,4), so the least m is 6.

Marking scheme. (10 points) - 3: (a) the formula σm(ij)=ij+m with indices modulo k, proved by induction, and the points off the cycle fixed. - 1: (a) from distinctness of the entries to k∣m, in both directions. - 2: (b) commuting from disjointness, cited, and (στ)m=σmτm with the reason. - 3: (b) the converse: from σmτm=id, uses disjointness of the supports to get σm=id and τm=id. - 1: (c) and (d), the least element named.

Second route: σm=τ−m, with suppσm⊆suppσ and suppτ−m⊆suppτ, and these are disjoint, so both are id; this earns the same 3 points if both inclusions are justified.

Fatal errors (0 for the step): (στ)m=σmτm without using that the cycles commute; “σmτm=id so σm=τ−m, hence both are id” with no use of disjointness.