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)?
- A. 27
- B. 5
- C. 9
- 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
- Binary strings of length 10 are written around a circle, and two are considered the same if one is a rotation of the other. How many such…
- How many permutations π of {1, …, 7} with π(7) = 7 have exactly 2 descents (positions i with πᵢ > πᵢ₊₁)?
- In how many ways can 6 non-attacking rooks be placed on a 6 × 6 board so that none stands on either main diagonal?
- In how many ways can a 2 × 6 board of unit squares be coloured with 3 colours so that squares sharing an edge get different colours?
- How many integer triples (x, y, z) with x, y, z all non-zero satisfy |x| + |y| + |z| = 10?
- Twenty seats are arranged around a round table, numbered 1 to 20. In how many ways can 6 seats be chosen so that no two chosen seats are…