Mathematics (JEE)Very hard

Binary strings of length 5 are formed using the digits 0 and 1. How many such strings do NOT contain three consecutive 1s?

  1. A. 24
  2. B. 29
  3. C. 28
  4. D. 26

Correct answer: A. 24

Count by a recurrence on the length. Enumerating all 32 strings and removing those containing 111 gives 24. A common slip is to subtract only the strings that start with 111.

More Permutations, Combinations and Probability questions

Exams that ask this topic