AMC 10 Step by Step

2019 AMC 10B Problem 21

P21-25~6 minPrint

Debra flips a fair coin repeatedly, keeping track of how many heads and how many tails she has seen in total, until she gets either two heads in a row or two tails in a row, at which point she stops flipping. What is the probability that she gets two heads in a row but she sees a second tail before she sees a second head?

Log in to save your progress.
Show solution without answering

Key insight

The first four flips are forced to be T, H, T, H. After that, list the ways to finish with two heads and add their probabilities.

Solution

The game stops at the first repeat, so until the end the flips must alternate. Let us see what the conditions force, one flip at a time.

Step 1: the first four flips are forced.

  1. Flip 1 must be T. If it were H, the next flips would go H, T, H, ... and the second head (flip 3) would come before the second tail. The only other options are HH or HTT, which stop too early or end with tails.
  2. Flip 2 must be H. A second T would give TT and end with tails.
  3. Flip 3 must be T. An H would give THH: two heads in a row, but only one tail seen. The second tail would never come before the second head.
  4. Flip 4 must be H. A T would give THTT and end with tails.

After T, H, T, H she has seen the second tail (flip 3) before the second head (flip 4). That part of the condition is now settled. The chance of this start is (12)4=116\left(\frac12\right)^4 = \frac1{16}.

Step 2: she must still finish with HH.

5. From here the flips keep alternating until a repeat. The winning sequences are
- THTH H (length 55, probability 132\frac{1}{32}),
- THTH TH H (length 77, probability 1128\frac{1}{128}),
- THTH THTH H (length 99, probability 1512\frac{1}{512}),
- and so on, each 14\frac14 as likely as the one before.
6. Add them up. Call the sum SS:
S=132+1128+1512+⋯S = \frac{1}{32} + \frac{1}{128} + \frac{1}{512} + \cdots
Multiplying by 44 gives 4S=18+S4S = \frac18 + S, so 3S=183S = \frac18 and S=124S = \frac{1}{24}.

The answer is (B) 124\boxed{\textbf{(B)}\ \frac{1}{24}}.

Why this works

In "flip until something happens" problems, the conditions often force the first few flips completely. Work out that forced start first. Then the rest of the game is a simple repeating pattern, and adding the probabilities of all the ways it can end is a sum where each term is a fixed fraction of the one before.

Alternative approach

After T, H, T, H, let pp be the chance of ending with HH, starting right after a head. The next flip is H (she wins, chance 12\frac12) or T. After a T, the next flip must be H to keep going (chance 12\frac12), and then she is in the same situation as before. So p=12+14pp = \frac12 + \frac14 p, which gives p=23p = \frac23. The answer is 116⋅23=124\frac1{16} \cdot \frac23 = \frac1{24}.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

Trace what the conditions force. Until she stops, the flips must alternate (a repeat ends the game).

  • Flip 1 must be TT: if it were HH, the second tail could only come after a second head or via HTTHTT, which stops with tails.
  • Flip 2 must be HH (a TT would end the game with TTTT).
  • Flip 3 must be TT: an HH gives THHTHH, ending with only one tail seen.
  • Flip 4 must be HH: a TT gives THTTTHTT, ending with tails.

After THTHTHTH, which has probability 116\frac{1}{16}, she has seen two tails and two heads, with the second tail (flip 3) before the second head (flip 4). The condition is met; she just needs to eventually finish with HHHH.

Let pp be the probability of finishing with HHHH when the last flip was HH and the game is still running. The next flip is HH (done, probability 12\frac12) or TT; after a TT, the following flip must be HH to survive (probability 12\frac12), returning to the same state. So
p=12+12⋅12⋅p⟹p=23.p = \frac12 + \frac12 \cdot \frac12 \cdot p \quad\Longrightarrow\quad p = \frac23.

The answer is 116⋅23=124\frac{1}{16} \cdot \frac23 = \frac{1}{24}, so (B) 124\boxed{\textbf{(B)}\ \frac{1}{24}}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.