MathCastle
Counting & ProbabilityEasyInclusion–Exclusion, Derangements & Pigeonhole

Inclusion--Exclusion, Derangements & Pigeonhole · Easy problem

Four people hang up their hats, then each grabs a hat at random. In how many ways does no one get their own hat?