Placement AptitudeHardCAT · TCS NQT Advanced

In how many ways can 10 be written as an ordered sum of 3 positive integers, each at most 5 (for example 5 + 3 + 2 and 2 + 3 + 5 count as different)?

  1. A. 36
  2. B. 18
  3. C. 21
  4. D. 15

Correct answer: B. 18

Without the limit there are C(9, 2) = 36. A part above 5 can be written 5 + t with t ≥ 1, and then t + a + b = 5 in positive integers has C(4, 2) = 6 solutions; this can happen in any of the 3 places (never two at once). So 36 − 3 × 6 = 18.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic