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 and so on. For example, in the sequence of coin tosses, there are two three four and five subsequences. How many different sequences of coin tosses contain exactly two three four and five subsequences?
Your answer
Integer from 0 to 999
Show solution
Solution
Since there are four transitions and three transitions, every valid sequence starts with and ends with It therefore has four -runs and four -runs, alternating.
If the -runs have total length then the number of transitions is Thus and the positive lengths of the four -runs can be chosen in ways. Similarly, five transitions mean that the four -runs have total length giving choices. The alternating order is fixed, so the number of sequences is
Tagged: arrangements with restrictions · multiplication principle · stars and bars