Let $X_i$, $i\geq 0$ be independent and identically distributed random variables with probability mass function $$ p(j) = P\{X_i=j\},\; j=1,...,m,\;\sum^{m}_{j=1}P(j)=1 $$ Find $E[N]$, where $N=\min\{n>0:X_n=X_0\}$.
I am totally confused by this question. What does $N=\min\{n>0:X_n=X_0\}$ even mean? Any help would be greatly appreciated.
$\{n:n>0,X_n=X_0\}$ is the set of non-zero indices ($n$) of random values ($X_n$) which are equal to $X_0$. The minimum value is the least such index; the first in the list.
$\begin{align} \mathsf E[N] & = \mathsf E[\min\{n:n>0, X_n=X_0\}] \\ & = \sum_{n=1}^\infty n \mathsf P(n=\min\{n:n>0, X_n=X_0\}) \\ & = \sum_{n=1}^\infty n \mathsf P(X_n=X_0\bigcap_{k=1}^{n-1}X_k\neq X_0) \\ & \ddots \end{align}$
Can you take it from here?