Problem:
A fair coin is flipped eight times in a row. Let be the probability that there is exactly one pair of consecutive flips that are both heads and exactly one pair of consecutive flips that are both tails. If , where are relatively prime positive integers, compute .
, 2020
Solution
Solution:
Separate the sequence of coin flips into alternating blocks of heads and tails. Of the blocks of heads, exactly one block has length , and all other blocks have length . The same statement applies to blocks of tails. Thus, if there are blocks in total, there are blocks of length and blocks of length , leading to coins in total. We conclude that , meaning that there are blocks of heads and blocks of tails.
The blocks of heads must have lengths in some order, and likewise for tails. There are ways to choose these two orders, and ways to assemble these blocks into a sequence, depending on whether the first coin flipped is heads or tails. Thus the final probability is .
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.