Mathematics (JEE)Very hardGATE CS

How many binary strings of length 10 contain no three consecutive 0s?

  1. A. 512
  2. B. 528
  3. C. 496
  4. D. 504

Correct answer: D. 504

Let t(n) count valid strings: t(n) = t(n−1) + t(n−2) + t(n−3), with t(0) = 1, t(1) = 2, t(2) = 4. The values run 7, 13, 24, 44, 81, 149, 274, 504, so t(10) = 504.

More Permutations, Combinations and Probability questions

Exams that ask this topic