Mathematics (JEE)Very hardGATE CS

How many binary strings of length 8 contain exactly four 1s and no three consecutive 1s?

  1. A. 20
  2. B. 45
  3. C. 42
  4. D. 56

Correct answer: B. 45

Enumerating the C(8,4) = 70 strings with four 1s and discarding those with 111 gives 45. Option 56 ignores the restriction on runs of 1s.

More Permutations, Combinations and Probability questions

Exams that ask this topic