### Probability : Games Won

1. Suppose that two teams play a series of games that ends when one of the teams has one i number of games. Suppose that each game played is, independently, won by team A with probability p. Find the expected number of games that are played when (a) i = 2 and when (b) i = 3. Show also in both cases that this number is maximized