Placement AptitudeVery hardTCS NQT · Infosys · Accenture

How many ordered triples (x, y, z) of integers satisfy x + y + z = 12 with 1 ≤ x, y, z ≤ 6?

  1. A. 29
  2. B. 25
  3. C. 18
  4. D. 38

Correct answer: B. 25

Unrestricted positive solutions: C(11,2) = 55. Subtract those with a variable ≥ 7: 3 × C(5,2) = 30 (two variables cannot both be ≥ 7). 55 − 30 = 25.

More Advanced Quantitative Ability (Placement) questions

Exams that ask this topic