A and B alternately toss a fair coin, A first. The instant a head is immediately followed by a tail, the game stops and whoever tossed that tail wins. What is the probability that A wins?
Reveal solutionHide solution
#The states that matter
Going into a toss, only two things matter, the last symbol and whose turn it is. The whole game lives in two states, last tail (which includes the start) and last head.
graph LR
T["last tail or start"] -->|heads| H["last head"]
T -->|tails| T
H -->|heads| H
H -->|tails| W["this tosser wins"]#Win chances by symmetry
Write for the chance the player about to toss eventually wins from last tail, and from last head. By symmetry these do not depend on which player it is.
From last head, the mover tosses tails and wins outright with chance , or tosses heads and hands a last-head position to the opponent, winning with chance . So
From last tail, no toss can end the game this step, and the mover passes either a last-head or a last-tail position to the opponent,
#The answer
A moves first from the start, a last-tail state, so
B keeps the edge at , since A is the one who tends to lay down the head that B finishes.