Mathematics (JEE)Very hardJEE Advanced

How many binary strings of length 6 avoid three equal consecutive digits (no substring 000 or 111)?

  1. A. 42
  2. B. 32
  3. C. 64
  4. D. 26

Correct answer: D. 26

Split the string into runs of length 1 or 2: compositions of 6 into 1s and 2s number 13, and the first digit has 2 choices, giving 26. Option 64 is the unrestricted total 2⁶.

More Permutations, Combinations and Probability questions

Exams that ask this topic