Question:
Four men go into a restaurant and leave their umbrellas at the door. On their way out, each man picks up an umbrella and they discover when they get outside that no man has his own umbrella. In how many different ways can this situation arise?
My logic: total no - the combination that four men take their own umbrella.
first one: 1/4 prob choose her's umbrella. second one: 1/3 prob...third 1/2...last 1/1
but it sounds my answer is not correct ...
Is there anyone can help? The answer should be 9.
I'll give the general solution. Let $D_n$ be the number you want to count when there are n men. Assume first man(Let's denote him $m_1$.) takes the k'th men(Let's denote him $m_k$.)'s umbrella.(k will be $2,\cdots,n$. So you have to multiply $n-1$ at the last) Then there are two cases.
(1) $m_k$ takes $m_1$'s umbrella. (2) $m_k$ takes other one's umbrella.
For the first case, then you only have to count the case that none of remaining $n-2$ men takes his own umbrella. It's $D_{n-2}$.
For the second case, assume $m_1$ exchange $m_k$'s umbrella and his own umbrella. (Note that this exchange doesn't affect the counting.) It means now, $m_1$ has his umbrella, and no other one has his own umbrella. It's $D_{n-1}$.
Now you get the difference equation of $D_n$. $$ D_n=(n-1)(D_{n-1}+D_{n-2}) $$
And $D_1=0$, $D_2=1$. I'll skip how to get general term of $D_n$. You can find it by googling Derangement.