There are $N$ numebered seats in a cinema hall. Each seat has been assigned to a specific spectator. However, the first $N-1$ spectators arrive early and occupy the seats completely randomly. The last spectator wishes to occupy her allotted seat though. So she goes to her allotted seat and then there are two cases
- if the seat is vacant, occupies it
- if the seat is occupied then asks the person sitting there to vacate it. The person asked to vacate follows the same pattern : goes to their allotted seat and either sits there if it is vacant or asks the person sitting there to move if occupied. This goes on till everyone is in their correct seats.
What is the expected number of displacements caused in this process?
Let $\mu_k$ denote the expected number of displacements if there are $k$ specators.
Then: $$\mu_k=\frac{k-1}k\cdot(1+\mu_{k-1})=\frac{k-1}k+\frac{k-1}k\mu_{k-1}$$
One step further we find:$$\mu_k=\frac{k-1}k+\frac{k-1}k\mu_{k-1}=\frac{k-1}k+\frac{k-1}k\left(\frac{k-2}{k-1}+\frac{k-2}{k-1}\mu_{k-2}\right)=\frac{k-1}k+\frac{k-2}{k}+\frac{k-2}{k}\mu_{k-2}$$This makes us suspect that for $n<k$:$$\mu_k=\frac1k\sum_{i-1}^n(k-i)+\frac{k-n}k\mu_{k-n}$$ and this can be verified by induction.
This leads to $$\mu_N=\frac1N((N-1)+\cdots+1)+\frac1N\mu_1=\frac12(N-1)+0=\frac12(N-1)$$