$n$ people are at party and they each have an identical hat. They do the following: they throw their hats toward the center of the room and then pick them up. People who got their own hats back leaves the room and the rest continue. What is the expected number of times $n$ people do "that", namely throw their hats and then pick them up, in order for all of them to leave?
So let $E(X_n)$ denotes the expected number of times that $n$ people has to throw the hats. Then $E(X_n)$ is $\sum_{i=0 \to n} E(X_{n-i})*P(F_i)$. Here $F_i$ denoted the number of people who got their hats back in the first round. Is this correct? or is this $E(X_n)$ is $\sum_{i=0 \to n} E(X_{n-i}+1)*P(F_i)$ correct? then what's next?