Let X be the random variable whose value is n if the first success occurs on the nth trial when independent Bernoulli trials are performed, each with probability of success p.
a) Find a closed formula for the probability generating function GX.
b) Find the expected value and the variance of X using Exercise 57 and the closed form for the probability generating function found in part (a).