Macaulay2 » Documentation
Packages » Permutations :: isDerangement
next | previous | forward | backward | up | index | toc

isDerangement -- whether a permutation is a derangement

Description

A permutation $p$ is a derangement if it has no fixed points.

i1 : p = permutation {3,1,2,5,4}

o1 = Permutation{3, 1, 2, 5, 4}

o1 : Permutation
i2 : isDerangement p

o2 = true

See also

Ways to use isDerangement:

  • isDerangement(Permutation)

For the programmer

The object isDerangement is a method function.


The source of this document is in /build/reproducible-path/macaulay2-1.25.06+ds/M2/Macaulay2/packages/Permutations/Documentation/mainDocs.m2:394:0.