2 Sets and functions

2.13 Products of disjoint cycles

2.13.1 Every permutation is a product of disjoint cycles

Theorem 2.13.1.

Every sSn equals a product of disjoint cycles.

Proof.

Choose a number i and form the sequence i,s(i),s2(i),. Since these numbers belong to the set {1,2,,n} not all of them can repeat, that is, there exist p<q such that sp(i)=sq(i), and so sqp(i)=i. Choose the smallest positive number r such that sr(i)=i. Then all of the numbers

i,s(i),s2(i),,sr1(i) (2.4)

are different, since if there were numbers 0p<q<r such that sp(i)=sq(i) then we’d have sqp(i)=i and 0<qp<r contradicting r being the smallest such power. Observe that, on the numbers (2.4), s behaves exactly like the r-cycle (i,s(i),,sr1(i)).

If there is a number j{1,2,,n} that doesn’t belong to this cycle, we can repeat the procedure above to get another cycle containing j and such that s does the same thing as the cycle to its elements. This will be disjoint from the previous one since if sp(j)=sq(i) for some p,q then j=sqp(i) which belongs to the previous cycle, contradicting the choice of j.

By repeating this procedure until there are no longer any numbers between 1 and n not contained in one of our disjoint cycles; the product of these is s. ∎

Definition 2.13.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.13.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.13.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.12.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.13.3 Composing permutations given as products of disjoint cycles

Example 2.13.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 now find a disjoint cycle decomposition for τσ. You’ll find that it has two 4-cycles again, but isn’t the same as the decomposition we got for στ.

Example 2.13.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).