Two players $A$ and $B$ are flipping a fair coin alternatively, with $A$ starting first. The first player to obtain head wins the game. Then the probability that $A$ wins this game is $\frac{2}{3}.$
The answer above can be obtained easily by using recursion: Let $p$ be the probability that $A$ wins. Then $$p = \frac{1}{2} +\frac{1}{2}(1-p).$$ Solving the equation above leads to $p = \frac{2}{3}.$
Another extended question:
The same setting as above. The game ends if there is a head followed by a tail and the player who obtains tail wins the game. Then the probability that $A$ wins the game is $\frac{4}{9}.$
The answer above can be obtained in this post.
I notice that the answer to the second question is just a square of the first question. I wonder whether there is a generalization. More precisely,
Fixed a natural number $n.$ Two players $A$ and $B$ flip a fair coin alternatively, with $A$ starting first. The game ends if there exists a subsequence $HTHT...HT$ with length $n$ and the player who obtains the last toss in the subsequence wins the game. What is the probability that $A$ wins?
Note that if $n$ is odd, then the last toss is $H$ and $n$ is even, the last toss is $T$.