Question: Suppose that we are given a fair die with 6 sides. On average, how many tosses are required to obtain a repeat number?
My attempt:
Let $X_n$ be the number of tosses to obtain a repeat number after $n$ distinct numbers showed up. Note that $0\leq n\leq 6$. For example, if we obtained $2,1,3,2$, then $X_3=4$. Then, $E(X_0 )=1$ and \begin{align*} E(X_n ) & =\frac{n}{6} (1)+ \frac{6-n}{6} (1+E(X_{n+1} )). \end{align*} I understand that the equation is not correct as it gives $E(X_1) = 0$ where it should be $2.$
Can anyone pinpoint error?