You wish to use a fair coin to simulate occurrence or not of an event A that happens with probability 1/3. One method is to start by tossing the coin twice. If you see HH say that A occurred, if you see HT or TH say that A has not occurred, and if you see TT then repeat the process. Show that this enables you to simulate the event using an expected number of tosses equal to 8/3.
I would calculate the probability of having $${\frac{n(HH)+n(BB)}{N-n(HT)-n(TH)}}={\frac{1}{3}}$$ at the 2Nth toss, but I must also eliminate the probability, given this event, that it happens for other M<N: how to calculate such probability?
Edit: so I misunderstood the problem, since I thought the event to be simulated meant that we end tossing when ${\frac{n(HH)}{n(HH)+n(TH)+n(HT)}}={\frac{1}{3}}$, while it simply meant that one outcome representing the event (anything different from TT) happens.