Combinatorica`
Combinatorica`

DerangementQ

DerangementQ[p]

tests whether permutation p is a derangement, that is, a permutation without a fixed point.

Details and Options