Mathematics (JEE)HardCodeforces Div2 D
How many partitions of 30 use only triangular numbers 1, 3, 6, 10, 15, 21, 28 as parts, with repetition allowed?
- A. 81
- B. 1
- C. 80
- D. 380
Correct answer: A. 81
The unbounded knapsack over the seven triangular part sizes gives 81 partitions of 30.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many partitions of 42 use only the part sizes 2, 3 and 7, with repetition allowed?
- How many compositions (ordered sequences of positive integers) of 10 use only the parts 1, 3 and 4?
- How many distinct arrangements of the letters of COMMITTEE have no two E's next to each other?
- How many distinct arrangements of the letters of SUCCESS have no two S's next to each other?
- How many distinct arrangements of the letters of PARALLEL have all three L's next to each other?
- How many distinct arrangements of the letters of AABBCC have no two identical letters next to each other?