Mathematics (JEE)Very hardCAT · MBA placement

How many strings of length 5 over {x, y} have exactly three x's and never contain three consecutive x's?

  1. A. 6
  2. B. 7
  3. C. 4
  4. D. 8

Correct answer: B. 7

Enumerating the C(5,3) = 10 strings with three x's, and excluding those containing xxx, gives 7. Option 10 counts strings without the restriction.

More Permutations, Combinations and Probability questions

Exams that ask this topic