Take a test Sign in 中文
← Exercise 448 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
AIME Contents · by chapter
Basic Counting (90)
---- (44)
Probability (91)

Exercises and their solutions

Exercise 448
There are $2^{9} = 512$ possible $9$-letter strings in which each letter is either an A or a B. Find the number of such strings that do not have more than $3$ adjacent letters that are identical.
← Back to Problem 448
Solution
  1. Count compositions of $9$ into runs of length $1$, $2$, or $3$ (tribonacci-type: $1,2,4,7,13,24,44,81,149$ for lengths $1,\dots,9$), and double for the starting letter: $2\cdot149=298$.
  2. The answer is $\boxed{298}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year
1985 (1 problems)
1984 (1 problems)