Combinatorica`
Combinatorica`

NumberOfDerangements

NumberOfDerangements[n]

counts the derangements on n elements, that is, the permutations without any fixed points.

Details and Options