NumberOfDerangements

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

DetailsDetails