Math paradoxes

The coupon collector's problem A 50-sticker album. How many will you need to buy?You'll need to buy about 225.

An album has 50 slots, and the stickers in the packs are random. On average, how many stickers do you have to buy to fill the whole album? Lock in your answer, then check it with your own album, a simulation and five explanations.

How many stickers do you have to buy to fill an album? It feels like a bit more than the number of slots. In fact a 50-sticker album takes 225 stickers on average, and most of them go on the last few empty slots. Check it with your own album, a simulation and five explanations.

Make a guess
225stickers for a 50-slot album
50purchases for the last sticker alone
The puzzle

Picture this: a new 50-sticker album

In probability theory this is the coupon collector's problem. It comes in many forms: album stickers, toys in chocolate eggs, cards in packs of gum. The answer is always the same: the end of the collection costs the most.

  1. 1

    The album

    The album has 50 numbered slots. Each slot has its own sticker.

  2. 2

    The stickers

    Stickers come in sealed packs. You can't see which one you get: each of the 50 is equally likely, and every purchase is independent of the ones before.

  3. 3

    Duplicates

    If you already have a sticker, it becomes a duplicate and goes on a pile. For now there is nobody to swap with.

  4. 4

    The question

    On average, how many stickers do you need to buy to fill the whole album?

Intuition says

"There are 50 slots, so a bit more than 50 stickers, maybe 70"

In fact it takes 225 stickers on average, 4.5 times the number of slots. The first half of the album fills fast, and every remaining empty slot costs more than the one before.

Model assumptions

  • All 50 stickers are equally common.
  • Purchases are independent of each other.
  • No swapping and no buying specific stickers.

Swapping, rare stickers and buying the last ones directly are covered in round 5.

Round 1 · Guess

How many stickers for a 50-slot album?

Lock in your answer before reading on. That way you'll see how far off intuition is.

Your answer will be compared with the right one here.

Hints

Hard to decide? Open the hints one at a time: the easy one first, then stronger ones.

Next: the solution

Next comes the explanation, with spoilers

The next rounds show how many stickers an album takes: you fill an album, then 10,000 albums and the explanation. Answer round 1 first, or go on?

You chose to always show all rounds.

Round 2 · Fill an album

Open packs until the album is full

Each pack holds a few random stickers. New ones take their slot, repeats go on the duplicates pile. Watch the chart on the right: the album grows fast at first, and near the end almost every sticker is a duplicate.

Stickers bought0
Packs0
Duplicates0
Missing0

The number in a slot's corner shows how many duplicates of that sticker are on the pile.

How the album fills up

your album on average

Round 3 · Simulation

10,000 albums in a second

The computer fills thousands of albums and records how many stickers each one took. The bars are the simulation; the line is the exact distribution.

simulation exact distribution
–
Theory: n·Hₙ
–

Stickers needed for albums of different sizes

intuition: n n·ln n exact: n·Hₙ, dots are simulated

Round 4 · Five explanations

Why the last stickers cost so much

The key is that the chance of a new sticker keeps falling. When only one is missing, just one purchase in 50 is the right one. Here are five ways to see it.

In plain wordspictures, analogies, small numbers

“In plain words” is hidden on all puzzles.

The last sticker

Half the album is cheap, the end is expensive

The first 25 stickers34purchases on average
The last 10 stickers146purchases on average

When one sticker is missing, each purchase has a 1 in 50 chance of being it. On you wait 50 tries for that, as many as there are slots. That one sticker alone costs what the naive estimate gives for the whole album.

Where duplicates come from

The fuller the album, the more repeats

The chance that the next sticker is new equals the share of empty slots. When the album is 90% full, nine purchases out of ten are duplicates. Intuition counts as if almost every sticker were new, which is why it answers "a bit over 50". Out of 225 stickers bought, 175 are duplicates on average.

Rigoroustables, charts, formulas

“Rigorous” is hidden on all puzzles.

Split it into stages

Each new sticker costs more than the last

Harmonic numbers

The sum 1 + 1/2 + … + 1/n grows like a logarithm

nHₙln n + 0.5772n·Hₙ

Add up all the stages and you get n · (1/n + 1/(n−1) + … + 1/1) = n · Hₙ. The number Hₙ is called a . It grows very slowly, roughly like ln n + 0.5772. So you need a little more than n · ln n stickers.

For formula lovers

The exact formula, an approximation and the spread

The average number of purchases to fill the album: each stage waits for a new sticker, and the stage averages add up.

E[T]=nn+nn−1+nn−2+…+n1 =n·Hn

Hₙ is the sum of reciprocals from 1 to n. It is handy to approximate it with the natural .

Hn=1+12+13+…+1n ≈ln⁡n+γ+12n,γ≈0.5772

For an album with 50 slots.

n=50:50·H50=50·4.4992=224.96

The spread around the average: the and the standard deviation σ.

Var[T]=n2·(1+14+…+1n2)−n·Hn n=50:σ≈62

Stage k starts when the album already has k−1 stickers. Each purchase is then new with probability (n−k+1)/n, so the wait for one takes n/(n−k+1) tries on average. The stage averages simply add up. The spread is wide: for 50 slots half of all albums are done within 214 stickers, while about one in twenty needs more than 340.

Round 5 · Scaling up

Big albums, swaps and rare stickers

Real albums can have hundreds of stickers. Let's see how many packs they take and what actually helps: packs without repeats, swapping with friends, or buying the last stickers directly.

Album size, packs of 5 stickers

Stickers on average
Packs
Duplicates

This size also applies to every block below.

Packs needed to reach each level

Variant 1

Packs with no repeats inside

Some publishers promise that no pack contains the same sticker twice. How much does that save?

Pack typePacks, exactSimulated

Variant 2

Swapping duplicates with friends

Variant 3

Buy the last stickers directly

Publishers often let you order a few specific stickers. You buy packs until m slots are left, then order the rest.

Stickers from packs
Saved

Variant 4

Rare stickers

Some stickers turn up less often than the rest. What does the album cost then?

Stickers on average
All equally common

Bonus · Fun facts

Things to tell your friends

1700s

An old problem

Abraham de Moivre studied the problem in the 18th century, and Pierre-Simon Laplace later on. In the 20th century George Pólya returned to it, as did Paul Erdős and Alfréd Rényi, who described exactly how the results spread around the average.

0.5772

The Euler–Mascheroni constant

The gap between the harmonic number Hₙ and ln n tends to the constant γ ≈ 0.5772. It has been known for centuries, yet nobody knows whether it is irrational.

34 / 191

"Almost done"

For a 50-slot album the first half of the stickers takes 34 purchases on average, and the second half 191. That's why collections stay "almost done" for so long: the last few slots eat most of the money.

128

The last sticker in a big album

In a 640-slot album the last sticker takes 640 purchases on average. That's 128 packs of 5 stickers for a single empty slot.

325

Two albums aren't twice the price

If two friends fill 50-slot albums together and pass each other their duplicates, the pair needs 325 stickers on average, not 450. This version is known as the double dixie cup problem.

n ln n

In computer science

The same estimate appears when you ask how many random tests it takes to hit each of n cases at least once, or how many random throws until each of n bins holds something. In every case the answer is about n · ln n.

Fifty Challenging Problems in Probability

Frederick Mosteller

1965 · problem 14

Understanding Probability

Henk Tijms

2004 · section 3.2

All books →
Discussion

What do you think?

Share your own explanation, an objection or a variant of the puzzle. You need a GitHub account to comment.

Is “Advanced” the right level for this puzzle?

Thank you! This helps set the levels right.

Newsletter

New puzzles, explanations and discussions

I keep adding new puzzles, new ways to explain them and write-ups of the discussions they start. Leave your email and I'll write when something new is out. No spam, one-click unsubscribe.

The sign-up form will appear here soon.