A Coin Flipping Game

You and your friend play a game where you take turns flipping a fair coin. If it's tails, the other player gets to take a turn; if it's heads, the current player wins and the game is over.

If you go first, what is the probability that you will win?

If this probability can be expressed as a b \frac ab , where a a and b b are coprime positive integers, enter your answer as a + b a + b .


The answer is 5.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Let P 1 P_{1} be the probability that you win and P 2 P_{2} be the probability that your friend wins. If you toss tails, (probability 1 / 2 1/2 ), then if we imagine that the game was "reset" then your friend would win this "reset" game with probability P 1 P_{1} . This implies that P 2 = 1 2 × P 1 P_{2} = \dfrac{1}{2} \times P_{1} .

Now as one of you will win eventually we have that P 1 + P 2 = 1 P 2 = 1 P 1 1 2 × P 1 = 1 P 1 P 1 = 2 3 a + b = 2 + 3 = 5 P_{1} + P_{2} = 1 \Longrightarrow P_{2} = 1 - P_{1} \Longrightarrow \dfrac{1}{2} \times P_{1} = 1 - P_{1} \Longrightarrow P_{1} = \dfrac{2}{3} \Longrightarrow a + b = 2 + 3 = \boxed{5} .

Nice solution!

David Vreken - 3 years, 4 months ago

Log in to reply

Thanks! By a similar argument, if there are n n players involved then the probability that the person who plays first wins is 2 n 1 2 n 1 \dfrac{2^{n-1}}{2^{n} - 1} .

Brian Charlesworth - 3 years, 4 months ago

Log in to reply

It's the same probability formula if you keep the game to two players but require them to flip the coin n - 1 times per turn and a win is getting all heads on one turn. Wow!

David Vreken - 3 years, 4 months ago
David Vreken
Jan 24, 2018

The following probability tree can be constructed:

On the first coin flip, there is a 1 2 \frac{1}{2} probability that you will flip heads and win, but a 1 2 \frac{1}{2} probability that you will flip tails and the game will continue. If the game continues to a second coin flip, your friend has 1 2 1 2 = 1 4 \frac{1}{2} \cdot \frac{1}{2} = \frac{1}{4} overall probability that he will flip heads and win, but a 1 2 1 2 = 1 4 \frac{1}{2} \cdot \frac{1}{2} = \frac{1}{4} overall probability that he will flip tails and the game will continue. If the game continues back to your turn, the probabilities are the same as your first coin flip but at a 1 4 \frac{1}{4} ratio. Since the game could potentially continue on forever in this manner, the probability of you winning can be expressed as an infinite sum:

P = 1 2 + 1 4 ( 1 2 + 1 4 ( 1 2 + 1 4 ( . . . P = \frac{1}{2} + \frac{1}{4}(\frac{1}{2} + \frac{1}{4}(\frac{1}{2} + \frac{1}{4}(...

Substituting P P into the above equation gives:

P = 1 2 + 1 4 P P = \frac{1}{2} + \frac{1}{4}P

and solving this equation for P P gives P = 2 3 P = \frac{2}{3} , and 2 + 3 = 5 2 + 3 = \boxed{5} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...