"coupon collector's problem" -- need help in final step of the solution
Problem:
Each box of cereal contains one of
different coupons (uniformly at random). Calculate the expectation of the number of boxes bought until at least one of each coupon is obtained.
Solution (from a textbook)
When we have exactly
coupons, the probability of obtaining a new one is
. Hence,
, and
.
By linearity of expectations, then, ![E[X]=\displaystyle\sum_{i=1}^nE[X_i] = \displaystyle\sum_{i=1}^n\frac{n}{n-i+1}](http://latex.codecogs.com/png.latex?E[X]=\displaystyle\sum_{i=1}^nE[X_i] = \displaystyle\sum_{i=1}^n\frac{n}{n-i+1})
And the final step of the solution from the textbook is:
![E[X]=\ldots= \displaystyle\sum_{i=1}^n\frac{n}{n-i+1}=n\,\displaystyle\sum_{i=1}^n\frac{1}{i}](http://latex.codecogs.com/png.latex?E[X]=\ldots= \displaystyle\sum_{i=1}^n\frac{n}{n-i+1}=n\,\displaystyle\sum_{i=1}^n\frac{1}{i})
How do I obtain this last expression? I haven't been able to figure this one out on my own. Not really a statistics question though, feel free to redirect me to another subforum..