2 Sets and functions

2.14 Products of disjoint cycles

2.14.1 Every permutation is a product of disjoint cycles

To prove the theorem in the section title, we need a lemma on multiplying permutations.

Lemma 2.14.1.

Let a0,a1,,am be distinct numbers. Then

(a0,a1)(a1,a2,,am)=(a0,a1,,am).

For example, you should check by calculating the two row notation for both sides that

(1,2)(2,3) =(1,2,3)
(2,3)(3,1,4,5) =(2,3,1,4,5)
(7,2)(2,8,9,6,4) =(7,2,8,9,6,4).
Proof.

Let

r =(a0,a1,,am)
t =(a0,a1)
s =(a1,a2,,am)

so that we have to show r(s)=t(s(x)) for all integers x. If x is not one of the ai then r(x)=x, s(x)=x, and t(x)=x so r(x)=t(s(x))=x. We only need to do the case when x is equal to ai for some 0im.

  • Let i=0. Then r(a0)=a1, and s(a0)=a0 and t(a0)=a1 so t(s(a0))=a1=r(a0).

  • Let i=1, so r(a1)=a2. We have s(a1)=a2 and t(a2)=a2, so t(s(a1))=a2=r(a1).

  • Let 2i<m, so, r(ai)=ai+1, s(ai)=ai+1, t(ai+1)=ai+1, so t(s(ai))=t(ai+1)=ai+1=r(ai).

  • Finally r(am)=a0, s(am)=a1, t(a1)=a0, so t(s(am))=a0=r(am). ∎

Theorem 2.14.2.

Every sSn equals a product of disjoint cycles.

Proof.

By induction on n. It is certainly true for n=1 when the only permutation in S1 is the identity (which equals the one-cycle (1)) and for n=2 when the only two permutations are the identity and (1,2).

Now let sSn and suppose that every permutation in Sn1 is a product of disjoint cycles. If s(n)=n then we can consider s as a permutation of 1,2,,n1, so it equals a product of disjoint cycles by the inductive hypothesis. If s(n) is equal to something other than n, say s(n)=k, then consider the permutation

t=(n,k)s.

t(n)=n, so we can consider t as a permutation in Sn1 and therefore by induction we can write t as a product of disjoint cycles

t=c1c2cr.

where the cycles c1,,cr only contain the numbers 1,2,,n1.

Since (n,k)(n,k) is the identity permutation, we can compose both sides of the previous equation on the left with (n,k) to get

(n,k)(n,k)s =(n,k)c1c2cr
s =(n,k)c1c2cr.

None of the cycles ci contain n. If none of them contain k then this is an expression for s as a product of disjoint cycles, so we are done. If one of them contains k, then because disjoint cycles commute by Theorem 2.13.1 we can assume that it is c1. 44 4 For example, if s=(n,k)c1c2c3 and c2 was the cycle containing k, you could use the fact that c1c2=c2c1 to get s=(n,k)c2c1c3 and then just renumber the cycles.

Recall from 2.13.3 that we can write c1 starting with any one of its elements. We choose to write it starting with k, so that for some numbers a1,,am

c1=(k,a1,,am).

By Lemma 2.14.1,

(n,k)c1 =(n,k)(k,a1,,am)
=(n,k,a1,,am)

and therefore

s=(n,k,a1,,am)c2c3cr.

This is a product of disjoint cycles since neither k nor n belongs to any of c2,,cr, so we are done. ∎

Definition 2.14.1.

An expression for a permutation s as a product of disjoint cycles c1, c2, …, cr

s=c1c2cr

is called a disjoint cycle decomposition of s.

We’ve just proved that every permutation has at least one disjoint cycle decomposition. In fact a permutation can have lots of disjoint cycle decompositions, e.g.

(1,2)(3,4)=(3,4)(1,2)=(4,3)(1,2)=

2.14.2 How to find a disjoint cycle decomposition

To find a disjoint cycle decomposition for an element of Sn:

  1. 1.

    Pick a number that doesn’t yet appear in a cycle.

  2. 2.

    Compute its image, and the image of that, and so on, until you have a cycle. Write down that cycle.

  3. 3.

    If all elements of 1,,n are in one of your cycles, stop, else go back to step 1.

Example 2.14.1.

Let s=(12345677631254). We pick a number not yet in a cycle, say 1. 1 goes to 7, 7 goes to 4, 4 goes to 1. We are back to the number we started with, so our first cycle is (1,7,4). Now we pick another number not in a cycle, say 2. s sends 2 to 6, 6 to 5, and 5 to 2. That’s another cycle, so we have (1,7,4)(2,6,5). Now we pick another number not yet in a cycle — the only one left is 3. s sends 3 to 3, so this is immediately a cycle. We have s=(1,7,4)(2,6,5)(3).

As we saw when we defined cycles in Definition 2.13.1, any 1-cycle is equal to the identity function. For that reason (and because 1-cycles look confusingly like what we write when we evaluate a function) we usually omit 1-cycles like (3) from disjoint cycle decompositions, so we’d write the permutation s of the previous example as (1,7,4)(2,6,5).

2.14.3 Composing permutations given as products of disjoint cycles

Example 2.14.2.

Let’s work out a disjoint cycle decomposition for στ where

σ =(4,2,6,1,5)
τ =(5,4,7,3,8)

are elements of S8.

Remember that στ means do τ, then do σ. Keeping that in mind, all we have to do is follow the instructions from before. Start with 1:

σ(τ(1)) =σ(1)=5
σ(τ(5)) =σ(4)=2
σ(τ(2)) =σ(2)=6
σ(τ(6)) =σ(6)=1

…and we have our first cycle, (1,5,2,6). Continuing with a number not yet in a cycle, say 3, we get

σ(τ(3)) =σ(8)=8
σ(τ(8)) =σ(5)=4
σ(τ(4)) =σ(7)=7
σ(τ(7)) =σ(3)=3

…and we have our next cycle, (3,8,4,7). There are no numbers left, so

στ=(1,5,2,6)(3,8,4,7).

You should do τσ now. You’ll find that your disjoint cycle decomposition has two 4-cycles again, but isn’t the same as the decomposition we got for στ.

Example 2.14.3.

Let’s find a disjoint cycle decomposition for (1,2,3,4)(2,3,4,5). Write a=(1,2,3,4),b=(2,3,4,5). Starting with 1 as usual,

a(b(1)) =a(1)=2
a(b(2)) =a(3)=4
a(b(4)) =a(5)=5
a(b(5)) =a(2)=3
a(b(3)) =a(4)=1

and so ab=(1,2,4,5,3).