Skip to content

Permutation Groups

In this lesson you’ll learn to compose permutations, write them in cycle notation, compute their orders, determine whether they’re even or odd, and see Cayley’s theorem: every group is secretly a group of permutations.

A permutation of a set is a bijection from the set to itself: a rearrangement that misses nothing and duplicates nothing.

The set of all permutations of {1,2,,n}\{1, 2, \dots, n\} under composition is the symmetric group SnS_n, with

Sn=n!|S_n| = n!

It’s a group: composing two bijections gives a bijection (closure), composition of functions is associative, the do-nothing permutation is the identity, and every bijection has an inverse.

SnS_n is non-abelian for n3n \ge 3, and it grows fast. S4=24|S_4| = 24, S10=3,628,800|S_{10}| = 3{,}628{,}800.

Two-row notation lists each input above its output. Cycle notation is shorter and reveals the structure.

To find the cycles, start anywhere and follow the map until you return. Then start again with an element you haven’t used. Elements mapping to themselves are fixed points and are usually omitted.

Two facts make cycle notation powerful:

  • Disjoint cycles commute. They move separate elements, so their order of application is irrelevant.
  • The order of a permutation is the lcm of its cycle lengths. A 3-cycle returns home every 3 steps and a 2-cycle every 2, so the whole thing returns after lcm(3,2)=6\operatorname{lcm}(3,2) = 6.

Cycle notation is not unique: (1 3 5)=(3 5 1)=(5 1 3)(1\ 3\ 5) = (3\ 5\ 1) = (5\ 1\ 3), since you can start anywhere in the loop. But the set of cycles is determined.

The standard convention is right to left, matching function composition: in στ\sigma\tau, apply τ\tau first.

Compute στ\sigma\tau where σ=(1 2 3)\sigma = (1\ 2\ 3) and τ=(1 2)\tau = (1\ 2), tracking each element:

  • 1τ2σ31 \xrightarrow{\tau} 2 \xrightarrow{\sigma} 3, so 131 \mapsto 3.
  • 2τ1σ22 \xrightarrow{\tau} 1 \xrightarrow{\sigma} 2, so 222 \mapsto 2.
  • 3τ3σ13 \xrightarrow{\tau} 3 \xrightarrow{\sigma} 1, so 313 \mapsto 1.

Result: (1 3)(1\ 3).

Now the other order, τσ\tau\sigma: 1σ2τ11 \xrightarrow{\sigma} 2 \xrightarrow{\tau} 1, so 11 is fixed; 2σ3τ32 \xrightarrow{\sigma} 3 \xrightarrow{\tau} 3; 3σ1τ23 \xrightarrow{\sigma} 1 \xrightarrow{\tau} 2. Result: (2 3)(2\ 3).

σττσ\sigma\tau \ne \tau\sigma, confirming S3S_3 is non-abelian. Some books compose left to right; check the convention before trusting an answer.

A transposition is a 2-cycle: it swaps two elements and fixes the rest.

Every permutation is a product of transpositions. A cycle decomposes as

(a1 a2  ak)=(a1 ak)(a1 ak1)(a1 a2)(a_1\ a_2\ \dots\ a_k) = (a_1\ a_k)(a_1\ a_{k-1})\cdots(a_1\ a_2)

which uses k1k - 1 transpositions.

The decomposition isn’t unique, but its parity is. A permutation is even if it needs an even number of transpositions and odd otherwise, and no permutation is both. That invariance is a genuine theorem, not a definition.

Quick rule: a kk-cycle has parity matching k1k-1. So 3-cycles are even, 2-cycles are odd, 4-cycles are odd. For a general permutation, add up (ki1)(k_i - 1) over its cycles.

The sign is +1+1 for even and 1-1 for odd, and signs multiply: even times odd is odd, and so on. This is the same parity that determines the sign of a term in a determinant expansion.

The even permutations form a subgroup AnA_n, the alternating group, with

An=n!2(n2)|A_n| = \frac{n!}{2} \quad (n \ge 2)

Half of all permutations are even. The odd ones do not form a subgroup: odd composed with odd is even, so closure fails immediately.

A5A_5 has order 60 and is the smallest non-abelian simple group, meaning it has no normal subgroups besides the trivial ones. That single fact is why the quintic has no solution formula, as the final lessons explain.

Here’s a striking result: every group is isomorphic to a subgroup of some symmetric group.

The construction is direct. For gGg \in G, define the map λg(x)=gx\lambda_g(x) = gx. It’s a bijection on GG (cancellation makes it injective, and g1yg^{-1}y is a preimage for yy), so it’s a permutation of the set GG. Sending gλgg \mapsto \lambda_g embeds GG into the permutations of its own elements.

So permutation groups are not a special case; they are the general case in disguise. Concretely, a group of order nn sits inside SnS_n. That’s not always the most efficient description, but it’s always available.

S₃ as symmetries of a triangle: r is a rotation, s a reflection
e r s rs r²s
e e r s rs r²s
r r e rs r²s s
e r r²s s rs
s s r²s rs e r
rs rs s r²s r e
r²s r²s rs s r e

The shaded block is the alternating group A₃, the three even permutations. Notice the table is not symmetric about the diagonal, so S₃ is non-abelian.

Identity: e. Cells holding it mark inverse pairs. Shaded: e, r, r² (the rotations A₃) - closed, every product stays inside .

Example 1: Write σ\sigma in cycle notation.

σ\sigma sends 141\to4, 262\to6, 333\to3, 454\to5, 515\to1, 626\to2.

Solution. Start at 1: 14511 \to 4 \to 5 \to 1. That’s (1 4 5)(1\ 4\ 5).

Next unused element is 2: 2622 \to 6 \to 2. That’s (2 6)(2\ 6).

Then 3 maps to itself, a fixed point.

σ=(1 4 5)(2 6)\sigma = (1\ 4\ 5)(2\ 6)

Order: lcm(3,2)=6\operatorname{lcm}(3, 2) = \mathbf{6}.

Parity: the 3-cycle is even (2 transpositions), the 2-cycle is odd (1 transposition), total 3 transpositions, so σ\sigma is odd.

Example 2: Compose two permutations.

Compute στ\sigma\tau for σ=(1 2 4)\sigma = (1\ 2\ 4) and τ=(2 3)(1 4)\tau = (2\ 3)(1\ 4) in S4S_4.

Solution. Right to left, so τ\tau first.

  • 1τ4σ11 \xrightarrow{\tau} 4 \xrightarrow{\sigma} 1. Fixed.
  • 2τ3σ32 \xrightarrow{\tau} 3 \xrightarrow{\sigma} 3. So 232 \mapsto 3.
  • 3τ2σ43 \xrightarrow{\tau} 2 \xrightarrow{\sigma} 4. So 343 \mapsto 4.
  • 4τ1σ24 \xrightarrow{\tau} 1 \xrightarrow{\sigma} 2. So 424 \mapsto 2.
στ=(2 3 4)\sigma\tau = (2\ 3\ 4)

Order 3, and even.

Example 3: Find the inverse of a cycle.

Solution. Reverse it. If σ=(1 3 5 2)\sigma = (1\ 3\ 5\ 2) then

σ1=(2 5 3 1)=(1 2 5 3)\sigma^{-1} = (2\ 5\ 3\ 1) = (1\ 2\ 5\ 3)

Check: σ\sigma sends 131 \to 3, and σ1\sigma^{-1} must send 313 \to 1. In (1 2 5 3)(1\ 2\ 5\ 3), indeed 313 \to 1. ✓

For a product, reverse the order as well as each factor: ((1 2)(3 4 5))1=(3 5 4)(1 2)((1\ 2)(3\ 4\ 5))^{-1} = (3\ 5\ 4)(1\ 2). Since these particular cycles are disjoint they commute, so the order doesn’t matter here, but it does in general.

Example 4: The order of a big permutation.

Find the order of σ=(1 2 3 4)(5 6 7)(8 9)\sigma = (1\ 2\ 3\ 4)(5\ 6\ 7)(8\ 9) in S9S_9.

Solution.

σ=lcm(4,3,2)=12|\sigma| = \operatorname{lcm}(4, 3, 2) = 12

Parity: (41)+(31)+(21)=3+2+1=6(4-1) + (3-1) + (2-1) = 3 + 2 + 1 = 6 transpositions, which is even, so σA9\sigma \in A_9.

Note that a permutation can have large order in a modest group: nothing about S9=362,880|S_9| = 362{,}880 suggests 12 in particular.

Example 5: Why the odd permutations aren’t a subgroup.

Solution. Take (1 2)(1\ 2) and (3 4)(3\ 4), both odd. Their product (1 2)(3 4)(1\ 2)(3\ 4) needs two transpositions, so it is even.

Closure fails. And the identity is even, so the odd permutations don’t contain it either. Two separate reasons, either one fatal.

The even permutations have no such problem: even plus even is even, the identity is even (zero transpositions), and the inverse of an even permutation is even. Hence AnSnA_n \le S_n.

Example 6: Cayley’s theorem on a small group.

Realize Z3={0,1,2}\mathbb{Z}_3 = \{0,1,2\} as a subgroup of S3S_3.

Solution. For each gg, write the permutation λg(x)=g+xmod3\lambda_g(x) = g + x \bmod 3 on the positions labelled 0,1,20, 1, 2.

λ0\lambda_0 fixes everything: the identity.

λ1\lambda_1: 010 \to 1, 121 \to 2, 202 \to 0, so λ1=(0 1 2)\lambda_1 = (0\ 1\ 2).

λ2\lambda_2: 020 \to 2, 101 \to 0, 212 \to 1, so λ2=(0 2 1)\lambda_2 = (0\ 2\ 1).

The image {e,(0 1 2),(0 2 1)}\{e, (0\ 1\ 2), (0\ 2\ 1)\} is a subgroup of S3S_3 of order 3, and it is exactly A3A_3. So Z3A3S3\mathbb{Z}_3 \cong A_3 \le S_3. ∎

Notice the embedding used only left multiplication and cancellation, so the same recipe works for any finite group.

Card shuffling. A shuffle of 52 cards is an element of S52S_{52}, a group with about 8×10678 \times 10^{67} elements. A perfect riffle shuffle is a specific permutation whose order is 8 for a 52-card deck: do it eight times and the deck returns exactly to its starting arrangement, which is a favourite magician’s trick and a straight consequence of cycle structure.

Rubik’s cube. The cube group is a subgroup of S48S_{48}, permuting the 48 movable stickers. Constraints on which permutations are achievable, such as the fact that you cannot flip a single edge, are statements about which subgroup it is. Parity arguments are what prove certain scrambles impossible.

Sorting networks and parallel algorithms. Any sorting algorithm computes a permutation, and lower bounds on comparison sorting come from counting: distinguishing n!n! possible orders needs at least log2(n!)\log_2(n!) comparisons, which is Θ(nlogn)\Theta(n \log n).

Determinants. The Leibniz formula for a determinant sums over all of SnS_n, weighting each term by the sign of the permutation. Parity is not an incidental detail there; it is what makes the determinant alternate, and hence what makes it detect linear dependence.

Chemistry. The symmetry operations of a molecule permute its atoms, so a molecular symmetry group is a subgroup of a symmetric group. Which subgroup determines the spectroscopic selection rules, and hence what an infrared spectrum looks like.

Cryptography. Block ciphers are permutations of the space of blocks, chosen to be efficiently computable and efficiently invertible while looking structureless. AES is a carefully engineered element of a symmetric group on 21282^{128} points.

What is the order of the permutation (1 2 3 4 5)(6 7) in S₇?
How many elements does S₅ have?
Is the permutation (1 2 3 4) even or odd?
Why do the odd permutations fail to form a subgroup of Sₙ?
Compute στ where σ = (1 2 3) and τ = (1 2), composing right to left.
What does Cayley's theorem say?