I am working my way through Feller (3rd ed, vol. 1), and I got stuck on the following problem (IX.9 problem 19a):
A man with n keys wants to open his door and tries the keys independently and at random. Find the mean and variance of the number of trials if unsuccessful keys are not eliminated from further selection. (Assume that only one key fits the door.)Computing the mean presented no difficultly. I've worked out the variance to be . However, I am not sure how to compute the sum, and would appreciate any hints.