ChallengeMedium
Challenge · Medium problem
You start with $2 and repeatedly bet $1 on a biased coin you win with probability each round (a win gains $1, a loss costs $1). You stop upon reaching $0 or $5. If the expected number of rounds played is in lowest terms, find .