PROJECT EULER · #0232
The Race
Two players share an unbiased coin and take it in turns to play The Race.
On Player 1's turn, the coin is tossed once. If it comes up Heads, then Player 1 scores one point; if it comes up Tails, then no points are scored.
On Player 2's turn, a positive integer,
Player 1 goes first and the winner is the first to 100 or more points.
Player 2 will always select the number,
What is the probability that Player 2 wins?
Give your answer rounded to eight decimal places in the form 0.abcdefgh.
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.