Expected Flips for Consecutive Heads

Expectation · Medium · Free problem
You have a fair coin. Let $X_i$ be the number of flips required to see $i$ consecutive heads for the first time. Compute $\mathbb{E}[X_1]$, $\mathbb{E}[X_2]$, and $\mathbb{E}[X_3]$. For each, set up a recursive equation and solve it. Can you spot the pattern and conjecture a formula for general $\mathbb{E}[X_k]$?

Open the full interactive solver, hints, and worked solution →