Placement AptitudeHardCAT · TCS NQT Advanced

How many solutions in non-negative integers does x + 2y + 3z = 12 have?

  1. A. 19
  2. B. 91
  3. C. 12
  4. D. 25

Correct answer: A. 19

Go through z = 0, 1, 2, 3, 4: then x + 2y = 12, 9, 6, 3, 0, which has 7, 5, 4, 2, 1 solutions. Total 19. 91 = C(14, 2) wrongly treats it as x + y + z = 12.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic