← Math problems

The coupon collector's problem A 50-sticker album. You'll need to buy about 225.

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.

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 in round 5.

Round 1 · Guess

How many stickers for a 50-slot album?

Lock in your answer before reading on. It shows how far intuition misses.

70
50200350500

Your answer will be compared with the right one here.

Round 2 · Fill an album

Open packs until the album is full

Each pack gives 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.

Split it into stages

Each new sticker costs more than the last

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 gives it with chance 1/50. You wait 50 tries on average for such an event, as many as there are slots. That one sticker alone costs what the naive estimate gives for the whole album.

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 harmonic number. It grows very slowly, roughly as ln n + 0.5772. So you need a little more than n · ln n stickers.

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 every sticker were new, which is why it answers "about 50". Out of 225 stickers bought, 175 are duplicates on average.

For formula lovers

The exact formula, an approximation and the spread

E[T] = n/n + n/(n−1) + n/(n−2) + … + n/1 = n · Hₙ
Hₙ = 1 + 1/2 + 1/3 + … + 1/n ≈ ln n + γ + 1/(2n),  γ ≈ 0.5772
n = 50:  50 · H₅₀ = 50 · 4.4992 = 224.96
Var[T] = n² · (1 + 1/4 + … + 1/n²) − n · Hₙ  →  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 has proved 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.

Discussion

What do you think?

Share your own explanation, an objection or a variant of the puzzle. Commenting needs a GitHub account.

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.