Example

The proof actually shows how to find the disjoint cycles decomposition of a permutation. Consider the permutation (in list notation) g = [8, 4, 1, 6, 7, 2, 5, 3] in S8. The following steps lead to the disjoint cycles decomposition.

Note that the three cycles (1, 8, 3), (2, 4, 6), (5, 7) commute, so that g can also be written as (5, 7)(1, 8, 3)(2, 4, 6) or as (2, 4, 6)(5, 7)(1, 8, 3), etc.