Skip to content

SymmetricGroup

The permutations of as a lazy indexed family, in one-line form.

SymmetricGroup(n)the permutations of .

Domain: Collections

Details
  • A lazy indexed collection: and unranks the -th permutation, so — over rows — pages as cheaply as a small one.
  • Each element is the image word ; the classical statistics (Descents, MajorIndex, Inversions, CycleCount, FixedPoints) are heads over that word.
  • The derangements — permutations with no fixed point — number . See Subfactorial.

Enumeration

See also: Factorial, Subfactorial, Count, At