probability
Suppose you flip a biased coin until two of the most recent three
flips are heads. Theprobability that you see a head is p. X is the random variable that denotes the number of total flips. Ifthe first two flips are heads, then X = 2. Find the expected value of X.