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)?
- A. 52
- B. 49
- C. 56
- 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
- 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?
- Ten distinct lines are drawn in the plane so that exactly 4 of them are mutually parallel, no other two are parallel and no three lines…