Number of Derangements on Finite Set

Historical Note
This problem was first solved by Nicolaus (I) Bernoulli.

Later, independently, Euler rediscovered the solution.