A permutation cycle is a subset of a permutation whose elements trade places with one another. Permutations cycles are called "orbits" by Comtet (1974, p. 256). For example, in the permutation group , (143) is a 3-cycle and (2) is a 1-cycle. Here, the notation (143) means that starting from the original ordering , the first element is replaced by the fourth, the fourth by the third, and the third by the first, i.e., .
There is a great deal of freedom in picking the representation of a cyclic decomposition since (1) the cycles are disjoint and can therefore be specified in any order, and (2) any rotation of a given cycle specifies the same cycle (Skiena 1990, p. 20). Therefore, (431)(2), (314)(2), (143)(2), (2)(431), (2)(314), and (2)(143) all describe the same permutation. The following table gives the set of representations for each element of the symmetric group on three elements, , sorted in lowest canonical order (first by cycle length, and then by lowest initial order of elements).
permutation of | notation |
(1)(2)(3) | |
(1)(23) | |
(3)(12) | |
(123) | |
(132) | |
(2)(13) |
The cyclic decomposition of a permutation can be computed in the Wolfram Language with the function PermutationCycles[p] and the permutation corresponding to a cyclic decomposition can be computed with PermutationList[c]. Here, the individual cycles are represented using the function Cycles. In previous versions, the cyclic decomposition could be computed less efficiently using ToCycles[p] in the Wolfram Language package Permutations` and the permutation corresponding to a cyclic decomposition could be computed using FromCycles[c1, ..., cn] in the Wolfram Language package Permutations` . According to Vardi (1991), the Wolfram Language code for ToCycles is one of the most obscure ever written.
Every permutation group on symbols can be uniquely expressed as a product of disjoint cycles (Skiena 1990, p. 20). A cycle decomposition of a permutation can be viewed as a class of a permutation group.
The number of -cycles in a permutation group of order is given by
(1)
|
where are the Stirling numbers of the first kind. More generally, let be the number of permutations of having exactly cycles all of which are of length . are sometimes called the associated Stirling numbers of the first kind (Comtet 1974, p. 256). The quantities appear in a closed-form expression for the coefficients of in Stirling's series (Comtet 1974, p. 257 and 267). The following table gives the triangles for .
Sloane | ||
1 | A008275 | 1; 1, 1; 2, 3, 1; 6, 11, 6, 1; 24, 50, 35, 10, 1; ... |
2 | A008306 | 1; 2; 6, 3; 24, 20; 120, 130, 15; 720, 924, 210; ... |
3 | A050211 | 2; 6; 24; 120, 40; 720, 420; 5040, 3948; 40320, ... |
4 | A050212 | 6; 24; 120; 720; 5040, 1260; 40320, 18144; ... |
5 | A050213 | 24; 120; 720; 5040; 40320; 362880, 72576; ... |
The functions are given by the recurrence relation
(2)
|
where is the falling factorial, combined with the initial conditions
(3)
| |||
(4)
|
(Riordan 1958, p. 85; Comtet 1974, p. 257).