Suppose that two teams are playing a series of games, each of which is independently won by team with probability p and by team B with probability 1-p.
The winner of the series is the first team to win i games.
(a) If i=4, find the probability that a total of 7 games are played.
(b) From the question (a), show that this probability is maximized when p=0.5