Placement AptitudeHardCAT · TCS NQT Advanced

In how many ways can 20 be written as a sum of three DIFFERENT positive integers, if the order does not matter?

  1. A. 33
  2. B. 171
  3. C. 27
  4. D. 24

Correct answer: D. 24

Take x < y < z by the smallest part: x = 1 → y = 2..9 (8 ways), x = 2 → y = 3..8 (6), x = 3 → y = 4..8 (5), x = 4 → y = 5..7 (3), x = 5 → y = 6, 7 (2). Total 24. Allowing equal parts gives 33.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic