TOPICS
Search

Permutation Index


The index of a permutation p is defined as the sum of all subscripts j such that p_j>p_(j+1), for 1<=j<=n. MacMahon (1960) proved that the number of permutations of size n having index k is the same as the number having exactly k inversions (Skiena 1990, p. 29). The permutation index can be computed as Index[p] in the Wolfram Language package Combinatorica` .


See also

Permutation

Explore with Wolfram|Alpha

References

Knuth, D. E. The Art of Computer Programming, Vol. 3: Sorting and Searching, 2nd ed. Reading, MA: Addison-Wesley, 1998.MacMahon, P. A. Combinatory Analysis, 2 vols. New York: Chelsea, 1960.Skiena, S. Implementing Discrete Mathematics: Combinatorics and Graph Theory with Mathematica. Reading, MA: Addison-Wesley, 1990.

Referenced on Wolfram|Alpha

Permutation Index

Cite this as:

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

Subject classifications