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

isDerangement -- whether a permutation is a derangement

Synopsis

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:

For the programmer

The object isDerangement is a method function.