How many flips until the gambler stops?
Asked at Jane Street, Citadel
You start with \20$1$100$100\tfrac15$.
What is the expected number of bets you make before stopping?
Show a hint
Let be the expected number of remaining bets from bankroll . Write a one-step recurrence: one bet happens now, then you are at or .