There are $n$ letters addressed to $n$ different people. The $n$ addresses are typed on $n$ envelopes. A disgruntled secretary shuffles the letters and puts them in the envelopes in random order, one letter per envelope.
We are to find the probability that at least one letter is put in a correctly addressed envelope.
I tried to solve this problem in the following way:
- I calculated that there are $n!$ possibilities of inserting the letters into the envelopes.
- I thought of the envelopes as boxes. So if the letter is put in the correct box that implicates that the letter will be given to the proper person.
So now:
- imagine one person gets the right letter, that gives us: $${{n} \choose {1}} (n-1)!$$ different situations. ${n\choose1}$ because people are different,
- imagine two people get the right letter, this case leads to: $${{n} \choose {2}} (n-2)!$$ And so on...
The results above suggest that the searched probability is equal to:
$$P(A) = \frac{\sum_{k=1}^n{n\choose k}(n-k)!}{n!}$$
The answer is of course wrong. I've wondered why and I think that the problem lies in calculating the number of people who will be given the right letter, because when we imagine that one person gets the right one and we write ${n \choose 1}(n-1)!$ it doesn't mean that he or she is the ONLY person who gets the right letter, does it?
What is the right answer? Is it:
$\sum_{i=1}^n\binom{n}{i}(n-i)!(-1)^{i+1}$? If yes, why?