{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}”No results found for “{{searchWords}}”× back to contents
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.
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$.