Maths Olympiad Prep

Library / /44 of 62

, 2020

Combinatorics Difficulty 5.8 AIME, harder Prove it United States

Problem:
A fair coin is flipped eight times in a row. Let pp 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 p=abp=\frac{a}{b}, where a,ba, b are relatively prime positive integers, compute 100a+b100 a+b.

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 22, and all other blocks have length 11. The same statement applies to blocks of tails. Thus, if there are kk blocks in total, there are k2k-2 blocks of length 11 and 22 blocks of length 22, leading to k+2k+2 coins in total. We conclude that k=6k=6, meaning that there are 33 blocks of heads and 33 blocks of tails.

The blocks of heads must have lengths 1,1,21,1,2 in some order, and likewise for tails. There are 32=93^{2}=9 ways to choose these two orders, and 22 ways to assemble these blocks into a sequence, depending on whether the first coin flipped is heads or tails. Thus the final probability is 18/28=9/12818 / 2^{8} = 9 / 128.

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.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.