To build on my understanding from this question, I was wondering what is the expected number of tosses required to obtain the sequence H-T-H-T-T-H, given that the coin is fair and independent?
Edit: The way I was thinking about it, which I am not sure makes sense. Let $e$ be the expected number of coin tosses. Then, if we get a Tail immediately, expected number is $e+1$. If we get a H and another H, then the expected number is $e+2$. For the third toss, if we have a H,T,T then it is $e+3$ and for the fourth, fifth and sixth it is $e+4$, $e+5$ and $e+6$ respectively.
So, we have the equation
$$e=\frac{1}{2}(e+1)+\frac{1}{4}(e+2)+\frac{1}{8}(e+3)+\frac{1}{16}(e+4)+\frac{1}{32}(e+5)+\frac{1}{64}(e+6)+\frac{1}{64}(6).$$
I get that $e = 126$ which appears to be wrong compared to @Did's Answer.