GATE Computer ScienceVery hardGATE CS (PYQ pattern)

How many partitions of 20 (as an unordered sum of positive integers) have the property that no part appears more than twice?

  1. A. 178
  2. B. 202
  3. C. 219
  4. D. 64

Correct answer: B. 202

By Glaisher's bijection these equal the partitions of 20 into parts that are not multiples of 3, and a direct DP count gives 202. The distinct-parts (= odd-parts) count of 64 is a different restriction.

More Discrete Mathematics questions

Exams that ask this topic