Placement AptitudeHardCAT · TCS NQT · Goldman Sachs OA

How many non-negative integer solutions does x₁ + x₂ + … + x3 = 18 have?

  1. A. 228
  2. B. 152
  3. C. 816
  4. D. 190

Correct answer: D. 190

Stars and bars: C(n+k−1, k−1) = C(20, 2) = 190.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic