Solve the following:
Q: A woman has n keys, of which one will open her door. (a) if she tries the keys at random, discarding those that do not work, what is the probability that she will open the door one her kth try? (b) what if she does not discard previously tried keys?