TOPICS
Search

Permutation Cycle


A permutation cycle is a group orbit of the cyclic group generated by a permutation of a finite set, with the cyclic order induced by that permutation. Permutation cycles are called "orbits" by Comtet (1974, p. 256). For example, in the permutation (4,2,1,3), (143) is a 3-cycle and (2) is a 1-cycle. Here, the notation (143) means that starting from the original ordering {1,2,3,4}, the first element is replaced by the fourth, the fourth by the third, and the third by the first, i.e., 1->4->3->1.

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, S_3, sorted in lowest canonical order (first by cycle length, and then by lowest initial order of elements).

permutation of {1,2,3}notation
{1,2,3}(1)(2)(3)
{1,3,2}(1)(23)
{2,1,3}(3)(12)
{2,3,1}(123)
{3,1,2}(132)
{3,2,1}(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 of n elements can be expressed as a product of disjoint cycles, uniquely up to their order and cyclic rotation within each cycle (Skiena 1990, p. 20). The lengths of the cycles determine the conjugacy class of the permutation in the symmetric group S_n.

The number d_1(n,k) of permutations of n elements having exactly k cycles is given by

 d_1(n,k)=(-1)^(n-k)S_1(n,k)=|S_1(n,k)|,
(1)

where S_1(n,m) are the Stirling numbers of the first kind. More generally, for a positive integer r and nonnegative integers n and k, let d_r(n,k) count permutations of n elements having exactly k cycles, each of length at least r. d_2(n,k) are sometimes called the associated Stirling numbers of the first kind (Comtet 1974, p. 256). The quantities d_3(n,k) appear in a closed-form expression for the coefficients in Stirling's series (Comtet 1974, p. 257 and 267). The following table gives the triangles for d_r(n,k).

rSloaned_r(n,k)
1A1305341; 1, 1; 2, 3, 1; 6, 11, 6, 1; 24, 50, 35, 10, 1; ...
2A0083061; 2; 6, 3; 24, 20; 120, 130, 15; 720, 924, 210; ...
3A0502112; 6; 24; 120, 40; 720, 420; 5040, 3948; 40320, ...
4A0502126; 24; 120; 720; 5040, 1260; 40320, 18144; ...
5A05021324; 120; 720; 5040; 40320; 362880, 72576; ...

The functions d_r(n,k) satisfy, for n>=r and k>=1, the recurrence relation

 d_r(n,k)=(n-1)d_r(n-1,k)+(n-1)_(r-1)d_r(n-r,k-1),
(2)

where (n)_k is the falling factorial. The initial conditions are d_r(0,0)=1 and d_r(n,0)=0 for n>0, together with

d_r(n,k)=0  for n<=kr-1
(3)
d_r(n,1)=(n-1)! for n>=r.
(4)

(Riordan 1958, p. 85; Comtet 1974, p. 257).


See also

Conjugacy Class, Golomb-Dickman Constant, Group Orbit, Permutation, Permutation Group, Stirling Number of the First Kind, Stirling's Series, Subset

Explore with Wolfram|Alpha

References

Biggs, N. Discrete Mathematics, rev. ed. Oxford, England: Clarendon Press, 1993.Comtet, L. Advanced Combinatorics: The Art of Finite and Infinite Expansions, rev. enl. ed. Dordrecht, Netherlands: Reidel, p. 257, 1974.Graham, R. L.; Knuth, D. E.; and Patashnik, O. Concrete Mathematics: A Foundation for Computer Science, 2nd ed. Reading, MA: Addison-Wesley, 1994.Knuth, D. E. The Art of Computer Programming, Vol. 1: Fundamental Algorithms, 3rd ed. Reading, MA: Addison-Wesley, 1997.Riordan, J. An Introduction to Combinatorial Analysis. New York: Wiley, 1958.Skiena, S. "The Cycle Structure of Permutations." §1.2.4 in Implementing Discrete Mathematics: Combinatorics and Graph Theory with Mathematica. Reading, MA: Addison-Wesley, pp. 20-24, 1990.Sloane, N. J. A. Sequences A008306, A050211, A050212, A050213, and A130534 in "The On-Line Encyclopedia of Integer Sequences."Stanton, D. and White, D. Constructive Combinatorics. New York: Springer-Verlag, 1986.Vardi, I. Computational Recreations in Mathematica. Redwood City, CA: Addison-Wesley, p. 223, 1991.

Referenced on Wolfram|Alpha

Permutation Cycle

Cite this as:

Weisstein, Eric W. "Permutation Cycle." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/PermutationCycle.html

Subject classifications