A coin, having probability p of landing heads, is continually flipped until at least one head and one tail have been flipped.

a)find the expected number of flips needed.

b)Repeata)in the case where flipping is continued until a total of at least two heads and one tail have been flipped.

c)Repeata)in the case where flipping is continued until a total of at least two heads and two tail have been flipped.

a)I would think it would if then the expected number of flips would be , and if then .

b)

assuming there are n flips then you would have:

combining it all together you would get :

c)This one I'm not sure, but I think it would be something like:

where

where

where

at which point I'm stuck.