AMC 12 Mock Exam 3 Problem 16
Problem 16 of 25
A string of letters, each or , is called odd-blocked if every maximal block of consecutive identical letters has odd length. For example, and are odd-blocked, but is not. How many odd-blocked strings of length are there?
Answer choices
Show solution
Solution
An odd-blocked string is determined by its first letter ( choices) and the ordered list of its block lengths, which is a composition of into odd parts (the letters then alternate).
Let be the number of compositions of into odd parts. If the last part is , removing it leaves a composition of ; if the last part is at least , reducing it by leaves a composition of ; both maps are bijections. So with , the Fibonacci numbers: . The answer is .
Tagged: recursive counting: strings with odd runs