Introduction
Collecting every item in a set sounds like a simple counting task: if there are 100 different cards, perhaps 100 purchases should be enough. But each purchase can produce a duplicate, and duplicates become increasingly likely as the collection fills. The coupon collector problem explains why that final stretch takes so long, how to estimate the total, and why the average is much larger than the number of distinct items.
The basic coupon collector problem
Imagine that a packet contains one item chosen at random from a set of n equally likely types. Each packet is independent, and every type is equally likely each time. The question is: how many packets, on average, must be opened before at least one of every type has appeared?
This is called the coupon collector problem. Its central result is that the expected number of draws is n times the nth harmonic number:
Expected draws = n × (1 + 1/2 + 1/3 + … + 1/n).
The harmonic number is the sum inside the brackets. For a large collection, the result is approximately n times the natural logarithm of n, plus a smaller correction. In everyday terms, the expected total grows roughly like n log n, not just n. The extra logarithmic factor is why finishing the set usually takes substantially longer than a quick count suggests.
Why the first items arrive quickly
At the beginning, almost every draw is likely to be new. If none of the types has appeared, the next draw must add a new type. Once one type has been collected, the chance of finding a new one is (n − 1)/n. After two different types have appeared, it is (n − 2)/n.
With many types still missing, progress is steady. For example, if a collection has 100 equally likely types and only 20 have appeared, 80 of the 100 types can still add something new. A draw is therefore quite likely to expand the collection.
This early progress encourages a misleading expectation: if the first several items arrived quickly, perhaps the rest will, too. But the odds change with every new type. The collection gets harder to complete precisely because fewer unseen types remain.
The final missing types are the bottleneck
Suppose there are k types still missing. On any draw, the chance of getting one of those missing types is k/n. The average number of draws until a new type appears is therefore n/k. This follows from a basic probability result: if an event has probability p on each independent attempt, the expected wait for it is 1/p.
When half the types remain, a new type tends to arrive after about two draws. When only one type remains, the chance of finding it on any draw is 1/n, so the average wait for that specific final type is n draws. A long run of duplicates near the end is not a surprise or a sign that the process has stopped working. It is a natural consequence of the low chance of hitting the last few missing types.
The waits at each stage make the total easy to calculate. Starting with all n types missing, the average wait for the first type is 1 draw. The average wait for the second distinct type is n/(n − 1). The average wait for the third is n/(n − 2). Continuing until the final type gives:
1 + n/(n − 1) + n/(n − 2) + … + n/1
= n × (1 + 1/2 + 1/3 + … + 1/n).
The long waits at the end matter because they are added to all the earlier waits. The final type alone takes an average of n draws to find, and the stages just before it also contribute meaningful waiting time.
A simple example: ten types
Suppose a machine produces one of 10 equally likely symbols on each independent try. A first symbol arrives immediately. To get a second distinct one, the chance of success on each try is 9/10, so the average wait is 10/9 draws. For the next new symbol, the average wait is 10/8. Each later stage becomes slower.
Adding all the stage averages gives:
10 × (1 + 1/2 + 1/3 + … + 1/10), or about 29.3 draws.
There are only 10 symbols, yet the expected total is nearly three times that number. The difference comes from repeated symbols, especially after most of the set is already known. This is an average across many hypothetical runs, not a prediction that every run will take exactly 29 draws. Some finish sooner, while others take much longer.
Why the growth is n log n
The sum 1 + 1/2 + … + 1/n grows slowly, but it does not settle at a fixed value. For large n, it is approximately ln(n) + γ, where ln is the natural logarithm and γ is a constant, about 0.577. So the expected number of draws is approximately:
n ln(n) + γn.
The logarithm grows much more slowly than n, but it still increases as the collection grows. That is the mathematical reason the number of draws exceeds the number of types by a widening factor. Doubling the number of types does not simply double the expected time; the logarithmic part also rises.
The phrase “grows like n log n” describes the broad scale, not an exact answer for every set size. For a specific collection, the harmonic-number formula gives the more useful expected value. The approximation helps explain the pattern when the number of types is large.
The average is not a guaranteed finish time
An expected value summarizes repeated runs. It does not say how long a particular run will take, nor does it set a deadline by which the collection is likely to be complete. Random variation can produce a surprisingly quick finish or a long sequence of duplicates.
There is also an important distinction between collecting most of the set and collecting all of it. Missing just a small number of types may feel close to completion, but those types can take a long time to appear. The expected wait for a new type when k are missing is n/k, so each remaining item becomes harder to find as k shrinks.
For very large collections, probability theory gives a more detailed picture: completion tends to occur around n ln n draws, with uncertainty on the scale of n. This does not mean every run clusters tightly around one number. It means that the logarithmic term sets the main scale, while random variation remains significant.
Where the model is useful
The model applies whenever repeated random trials produce one of several possible outcomes and the goal is to see every outcome. Examples include collecting cards or stickers when each type is equally likely, observing categories in randomly generated data, or testing a system that randomly selects among a fixed set of options.
It can also clarify why “we have tried many times” is not the same as “we have probably seen everything.” If rare outcomes are part of the set, a large number of observations may be needed to encounter them all. In real data collection, the coupon collector model is most relevant when outcomes are independent and their probabilities are known or reasonably similar.
Those assumptions matter. If some types are more common than others, the equally likely formula no longer gives the exact expected time. Rare types can dominate the wait, making completion slower. If draws are made without replacement, or if the process is designed to avoid repeats, the model changes as well. The classic result describes random sampling with replacement, not every activity that involves collecting items.
Practical intuition: count missing types, not just draws
A useful way to think about progress is to ask how many distinct types remain, rather than how many attempts have already been made. Early on, many outcomes can advance the collection. Near the end, most attempts are likely to repeat something already seen.
This perspective helps explain why a collection can look nearly complete while still requiring substantial time. In a set of 100 types, finding 99 does not make the last one arrive on the next draw. If all types are equally likely, its chance on each draw remains 1 in 100, regardless of how many duplicates have occurred. Past misses do not make the next draw more favorable in the independent model.
That last point counters the idea that an outcome is “due.” If the draws are independent and equally likely, each draw has the same probabilities as the one before it. A long wait does not increase the chance of the missing type on the next attempt. The wait ends eventually with probability 1, but its expected length can still be substantial.
Conclusion
The coupon collector problem takes longer than intuition expects because each new type becomes harder to find as the set fills. The average wait for a new type rises from stage to stage, culminating in an average of n draws for the final one. Adding those waits produces an expected total of n times the nth harmonic number, approximately n log n. The result is a clear lesson: collecting every outcome is much harder than collecting most of them.

