2008 AIME I Problem 11
Problem 11 of 15HarderNumber TheoryCombinatorics
Consider sequences that consist entirely of ’s and ’s and that have the property that every run of consecutive ’s has even length, and every run of consecutive ’s has odd length. Examples of such sequences are and while is not such a sequence. How many such sequences have length
Your answer
Integer from 0 to 999
Show solution
Solution
Let and count valid sequences of length beginning with and with A sequence beginning with starts with followed by any valid sequence of length (possibly empty), so where the empty sequence counts once. A sequence beginning with starts either with a single followed by a sequence beginning with or with followed by a sequence beginning with so
Starting from and the pairs for are
The number of valid sequences of length is
Tagged: recursive counting · arrangements with restrictions · parity