The Harmonic Series in Puzzles
The harmonic series, 1 + 1/2 + 1/3 + ..., diverges even though its terms shrink to zero, and that surprising fact underlies a family of classic puzzles about coupon collecting, worm-on-a-rubber-band problems, and expected waiting times.
The harmonic series is . Its terms shrink toward zero, so it's tempting to guess the sum settles down to some finite number, it doesn't. Grouping terms in doubling blocks, , and the next block of four terms similarly exceeds , and so on forever, infinitely many blocks each contributing at least means the sum grows without bound, just extremely slowly (it takes roughly terms to exceed 100).
That slow divergence, , is exactly what makes the coupon collector's problem work: if there are distinct coupon types and you draw one at random each time, the expected number of draws to collect all is . Each new coupon gets harder to find in exact proportion to how many you're still missing, and summing those expected waiting times across all stages produces a harmonic sum.
The same structure appears in the "worm on a rubber band" puzzle (a worm crawls 1cm per day along a band stretched uniformly by 1m per day; whether it ever reaches the end depends on the harmonic series diverging) and in expected-comparisons arguments for algorithms like quicksort.
The harmonic series diverges despite its terms shrinking to zero, growing like , the reason coupon-collector-style waiting-time puzzles have an expected value proportional to , not just .
Discussion
💡 Discussion rules
- Ask and answer about this concept. Off-topic gets removed.
- No homework dumps. Show what you tried first.
- Corrections are welcome. Cite a source when you claim an error.
Loading discussion…
Related concepts
Practice in interviews
Further reading
- Concrete Mathematics, Graham, Knuth & Patashnik