Mathematics (JEE)ModerateGATE CS
In how many ways can 12 be written as an ordered sum of 4 positive integers?
- A. 220
- B. 165
- C. 126
- D. 210
Correct answer: B. 165
Stars and bars: C(12 − 1, 4 − 1) = C(11,3) = 165. Option 220 is C(12,3), which treats the parts as non-negative.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many partitions of 15 have exactly 4 parts?
- How many partitions of 10 into 3 distinct parts are there?
- In how many ways can 8 identical candies be given to 3 children so that each child gets at least 1 and at most 4 candies?
- How many functions from {1, 2, 3, 4} to {1, 2, 3} are onto and satisfy f(1) ≠ f(2)?
- How many compositions (ordered sums) of 5 into exactly 2 positive parts are there?
- A set of 5 distinct elements is split into 2 non-empty blocks, each block containing at least 2 elements. How many such splits are there?