A gambler plays a game of chance where he wins $1 with probability and loses $1 with probability 1-P each time he plays. The number of games he plays in an hour,N , is a random variable with a geometric PMF ![](https://test.transtutors.com/qimg/4246416e-9a2c-48d2-a7a2-30bd89ba86cb.png)
(a) What is the PGF of the gambler's total winnings after playing for an hour?
(b) What is the probability that the gambler has not lost any money after an hour if ![](https://test.transtutors.com/qimg/f8987ef0-0a72-4684-b136-be29b33210e9.png)