2026-05-13

Problem — 2026-05-13

Medium

MediumProbability

You play a game where you flip a fair coin repeatedly. You win 2n2^n dollars if the first heads appears on flip nn. What is the expected payout of this game?

Enter 'infinity' if the expected value diverges, or a number

Show solution
The first heads on flip nn has probability (1/2)n(1/2)^n and pays 2n2^n. The expected payout is ∑n=1∞2n⋅(1/2)n=∑n=1∞1=∞\sum_{n=1}^{\infty} 2^n \cdot (1/2)^n = \sum_{n=1}^{\infty} 1 = \infty. This is the famous St. Petersburg paradox — the expected value is infinite despite the fact that most outcomes pay very little.