Number of Derangements on Finite Set

Historical Note
This problem was first solved by.

Later, independently, rediscovered the solution.