Mathematics (JEE)ModerateGATE CS

How many binary strings of length 8 contain no three consecutive equal bits?

  1. A. 254
  2. B. 68
  3. C. 128
  4. D. 96

Correct answer: B. 68

Such a string is a sequence of runs, each of length 1 or 2. Compositions of 8 into parts 1 and 2 number F(9) = 34; choose the first bit in 2 ways: 2 × 34 = 68.

More Permutations, Combinations and Probability questions

Exams that ask this topic