Skip to main content

1986 AIME Problem 13

Problem 13 of 15HarderCombinatorics

In a sequence of coin tosses, one can keep a record of instances in which a tail is immediately followed by a head, a head is immediately followed by a head, and so on. We denote these by TH,\mathrm{TH}, HH,\mathrm{HH}, and so on. For example, in the sequence HHTTHHHHTHHTTTT\mathrm{HHTTHHHHTHHTTTT} of 1515 coin tosses, there are two HH,\mathrm{HH}, three HT,\mathrm{HT}, four TH,\mathrm{TH}, and five TT\mathrm{TT} subsequences. How many different sequences of 1515 coin tosses contain exactly two HH,\mathrm{HH}, three HT,\mathrm{HT}, four TH,\mathrm{TH}, and five TT\mathrm{TT} subsequences?

Your answer

Integer from 0 to 999
Show solution

Solution

Since there are four TH\mathrm{TH} transitions and three HT\mathrm{HT} transitions, every valid sequence starts with T\mathrm{T} and ends with H.\mathrm{H}. It therefore has four T\mathrm{T}-runs and four H\mathrm{H}-runs, alternating. If the H\mathrm{H}-runs have total length h,h, then the number of HH\mathrm{HH} transitions is h−4.h-4. Thus h=6,h=6, and the positive lengths of the four H\mathrm{H}-runs can be chosen in (6−14−1)=(53)=10\binom{6-1}{4-1}=\binom53=10 ways. Similarly, five TT\mathrm{TT} transitions mean that the four T\mathrm{T}-runs have total length 9,9, giving (9−14−1)=(83)=56\binom{9-1}{4-1}=\binom83=56 choices. The alternating order is fixed, so the number of sequences is 10⋅56=560.10\cdot56=560.
AoPS wiki

Tagged: arrangements with restrictions · multiplication principle · stars and bars

More practice