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.
Introduced in 2010
(8.0)