GATE Computer ScienceModerateGATE CS (PYQ pattern)

In how many ways can 15 be written as a sum of exactly 4 DISTINCT positive integers (order does not matter)?

  1. A. 27
  2. B. 5
  3. C. 9
  4. D. 6

Correct answer: D. 6

With a < b < c < d the smallest possible sum is 1+2+3+4 = 10, so 5 extra units are spread keeping the parts distinct. Listing: 1+2+3+9, 1+2+4+8, 1+2+5+7, 1+3+4+7, 1+3+5+6, 2+3+4+6. That is 6.

More Discrete Mathematics questions

Exams that ask this topic