An unfair coin has probability $\frac{2}{3}$ of landing heads. The coin is flipped repeatedly until its sequence of flips includes at least one heads and at least one tails. What is the expected number of flips untils this happens?
My approach:
Let, $N$ be the number of tosses until we get at least one heads and at least one tails.
$E[N]= E[N | $ we tosses a heads first $ ] + E[N | $ we tosses a tail first $]$
$ (N | $ we tosses a heads first$]) $ follows $ Geom(\frac{1}{3}) $
$ (N | $ we tosses a tails first$]) $ follows $ Geom(\frac{2}{3}) $
$E[N] = \frac{2}{3} \times (1+3) + \frac{1}{3} \times (1+\frac{3}{2}) $
$$E[N] = \frac{21}{6} = 3.5 $$
Is my approach correct?