I think I finally understand. It only takes one flip to get halfway there. You only need one more flip to get 2 in a row, you have a 50/50 chance, so on average it will take both of those flips to get 2 in a row = 3 flips.
This is correct.
So the equation is 2^n -1 like you said. (It would be 4 if we wanted specific Heads or Tails in a row, 3 if we do not care which one) Thanks!
It would actually be 6 if we wanted specifically 2 heads in a row. I'll try to explain why below.
Let the number of flips required to get 2 heads in a row be x. On any single flip, we have a probability of 0.5 of flipping heads, and a probability of 0.5 of flipping tails.
If we flip tails on the first flip, then we still need to flip x more times to get 2 heads, but we have already flipped once, so it becomes (x+1). Since the probability of this is 0.5, it becomes 0.5(x+1).
If we flip heads on the first flip and then tails on the second flip, again we are back where we started needing to flip x more times to get 2 heads, but we already flipped twice, so it becomes (x+2). The probability of flipping a heads then a tails is 0.25, so it becomes 0.25(x+2).
If we flip heads on the first flip and then heads on the second flip, we have succeeded. We have flipped twice, with a probability of 0.25, which becomes (0.25)2.
So, of all the possible outcomes:
x = 0.5(x+1) + 0.25(x+2) + (0.25)2
x = 0.5x + 0.5 + 0.25x + 0.5 + 0.5
x = 0.75x + 1.5
0.25x = 1.5
x = 6
lol, Now I am confused again.
I played that out, I understand 6 is all the possible combinations. But, in our "playing" case I think it is 4. IF we want 2 heads in a row, after our 1st flip is Tails, there is zero chance to get 2 heads in a row on next flip so we do not make those two additional plays. 6-2 =4.