PermutationLength

PermutationLength[perm]
returns the number of integers moved by the permutation perm.

DetailsDetails

  • PermutationLength works with Cycles objects as well as with permutation lists.
  • The number of integers moved by a permutation is sometimes called its degree. Another common definition of permutation degree is the largest moved point.
New in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »