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?
- A. 178
- B. 202
- C. 219
- 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
- In how many ways can 60 be written as an unordered sum of 2s, 3s and 7s (order of the summands does not matter)?
- a₀ = 1, a₁ = 3 and aₙ = 4aₙ₋₁ − 4aₙ₋₂ + 2ⁿ for n ≥ 2. What is a₁₀?
- aₙ = 3aₙ₋₁ − 4aₙ₋₃ with a₀ = 1, a₁ = 2, a₂ = 5. What is a₁₂?
- How many binary strings of length 14 contain neither 00 nor 111 as a substring?
- How many binary strings of length 14 contain neither 010 nor 101 as a substring?
- In how many ways can a 2 × 10 rectangle be tiled with 1 × 2 dominoes (placed either way) and 2 × 2 squares?