GATE Computer ScienceHardGATE CS (PYQ pattern)

In how many ways can 60 be written as an unordered sum of 2s, 3s and 7s (order of the summands does not matter)?

  1. A. 52
  2. B. 49
  3. C. 56
  4. D. 31

Correct answer: A. 52

This is the coefficient of x⁶⁰ in 1/((1 − x²)(1 − x³)(1 − x⁷)); the DP over the three denominations gives 52.

More Discrete Mathematics questions

Exams that ask this topic