I'm failing to see the mistake in my reasoning for this problem. Here is the problem:
Problem
A man can only type two letters: M and O. He types M with probability $.4$ and types O with probability $.6$. What's the expected number of letters he'll type before getting MOO?
To me, this problem was essentially equivalent to a problem asking expected number of coinflips before a certain sequence is reached.
Thus, I used a similar approach. Here was my solution(that's wrong). It's mostly just repeated use of Law of Total Expectation.
My (Apparently Incorrect) Solution
$$\mathbb{E}[MOO] = 1 + .4(\mathbb{E}[MOO|M]) + .6(\mathbb{E}[MOO])$$ We now try and calculate $\mathbb{E}[MOO|M]$. Note that if we fail here, that means we don't get an O, but that doesn't reset our progress, and we already have the M in place.
$$\mathbb{E}[MOO|M] = 1 + .6(\mathbb{E}[MOO|MO]) + .4(\mathbb{E}[MOO|M])$$
Now, calculating $\mathbb{E}[MOO|MO]$
$$\mathbb{E}[MOO|MO] = 1 + .6(0) + .4(\mathbb{E}[MOO|M])$$ Plugging all of this back in to the original equation, we end up getting that $\mathbb{E}[MOO|M] = \frac{40}{9}$ and so $\mathbb{E}[MOO] = \frac{125}{18}$.
However, the correct solution is $9$. This was their reasoning
The Correct Solution
The probability of this sequence occurring in a row is $18/125$(by multiplying the probabilities together). Then suppose the man types $l$ letters. There's $l - 2$ spots for our sequence to start. The expected number of times our sequence shows up is $\frac{18}{125}(l-2)$. Then we have $$\frac{18}{125}(l-2) = 1 \implies l= 9$$
More Comments
This argument is also convincing. However, using this argument for the problem of finding the expected number of coin tosses until getting HHH, we get $$\frac{1}{8}(l - 2) = 1 \implies l = 10$$ But that's clearly wrong.
Are these two problems not identical? Am I missing something?
Any help would be much appreciated.
Thanks!