[Math] Suppose that each of $n$ men at a party throws his hat into the center of the room…

derangementsprobability

Suppose that each of $n$ men at a party throws his hat into the center of the room. The hats are mixed up and then each man randomly selects a hat. What is the probability that at least one of the men selects his own hat?

Best Answer

It has to do with derangements: $n!-D(n)$.

Look here: https://en.wikipedia.org/wiki/Derangement