How many rolls of a fair N-sided die are required, on average, to observe every face at least once? Compute the value for N=100, rounded to the nearest integer.
Solution
Coupon Collector's Problem
High-level idea. Decompose the total waiting time into independent geometric stages, then apply linearity of expectation.
Stage decomposition
Let T be the total number of rolls of a fair N-sided die needed to observe every face at least once. Define stage k (k=1,…,N) as the period that begins the moment the (k−1)-th distinct face was first seen and ends when the k-th distinct face is first seen. Writing Tk for the number of rolls in stage k,
T=T1+T2+⋯+TN.
Distribution of each stage
At the start of stage k, exactly k−1 faces have been observed. Each roll independently reveals a previously unseen face with probability
pk=NN−(k−1)=NN−k+1.
Hence Tk∼Geometric(pk) (number of trials until first success), so
E[Tk]=pk1=N−k+1N.
Closed-form expected value
By linearity of expectation,
E[T]=k=1∑NN−k+1N.
Reindexing with j=N−k+1 (as k runs 1→N, j runs N→1):
E[T]=Nj=1∑Nj1=N⋅HN,
where HN=j=1∑Nj1 is the N-th harmonic number.
Numerical evaluation for N=100
Using the Euler–Maclaurin asymptotic expansion
HN=lnN+γ+2N1−12N21+120N41−⋯,
with γ=0.57721566490153… (Euler–Mascheroni constant):