Mathematics (JEE)HardGATE CS

How many binary strings of length 7 have no two adjacent 1s and begin with 0?

  1. A. 34
  2. B. 13
  3. C. 21
  4. D. 20

Correct answer: C. 21

With the first digit fixed at 0, the remaining 6 digits must have no two adjacent 1s: F₈ = 21 such strings. Option 34 is the count for length 7 and forgets the fixed first digit.

More Permutations, Combinations and Probability questions

Exams that ask this topic