A gambler decides to participate in a special lottery. In this lottery the gambler plays a series of one or more games.
Each game costs pounds to play and starts with an initial pot of pound. The gambler flips an unbiased coin. Every time a head appears, the pot is doubled and the gambler continues. When a tail appears, the game ends and the gambler collects the current value of the pot. The gambler is certain to win at least pound, the starting value of the pot, at the cost of pounds, the initial fee.
The game ends if the gambler's fortune falls below pounds.
Let denote the probability that the gambler will never run out of money in this lottery given an initial fortune and the cost per game .
For example , and (note: for ).
Find and give your answer rounded to decimal places behind the decimal point in the form 0.abcdefg.
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.