I have a coin. When throwing there is a $p$ percent chance to get head and $(1-p)$ for tail. I throw it once and get head. What is the expected number of throws to get and even number of heads and tails for the first time.
Let $T$ be that event. Then I have
$E[T] = (1-p) + p(2 + E[T])$. Solving this for $E[T]$ gives $E[T] = (1+p)/p$.