Let $X_1, X_2, \dots$ independent and identically distributed random variables $\sim Bernoulli(p)$. $\ T = \inf (n : X_{n-1}+X_{n}=1)$, calculate 1) P(T=n) ; 2) E(T).
But I don't know how to resolve it because I don't know how to interpret T
Can anyone help me? thank you very much!