Combinatorica`
Combinatorica`
NumberOfDerangements
counts the derangements on elements, that is, the permutations without any fixed points.
Details and Options
- To use NumberOfDerangements, you first need to load the Combinatorica Package using Needs["Combinatorica`"].