Mathematics (JEE)HardGATE CS

How many binary strings of length 8 contain no two consecutive 1s?

  1. A. 55
  2. B. 56
  3. C. 256
  4. D. 34

Correct answer: A. 55

Let a(n) be the count; a(n) = a(n−1) + a(n−2) with a(1) = 2, a(2) = 3. The sequence 2, 3, 5, 8, 13, 21, 34, 55 gives a(8) = 55.

More Permutations, Combinations and Probability questions

Exams that ask this topic