NumberOfDerangements

NumberOfDerangements[n]

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

Details

See Also

DerangementQ  Derangements

Tutorials