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?

  1. A. 81
  2. B. 1
  3. C. 80
  4. D. 380

Correct answer: A. 81

The unbounded knapsack over the seven triangular part sizes gives 81 partitions of 30.

More Permutations, Combinations and Probability questions

Exams that ask this topic