Question Details

Question No: 391

There are $2^{10} = 1024$ possible 10-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.

Answer must be a floating-point or integer value and precision error less than 10^-6 is allowed.


Editorial
Tags: Combinatorics