GATE Computer ScienceVery hardGATE CSE
How many integer solutions does x₁ + x₂ + x₃ + x₄ + x₅ = 30 have if 3 ≤ xᵢ ≤ 10 for every i?
- A. 3876
- B. 4035
- C. 4200
- D. 2226
Correct answer: D. 2226
Put yᵢ = xᵢ − 3: Σyᵢ = 15 with 0 ≤ yᵢ ≤ 7; inclusion–exclusion C(19,4) − 5·C(11,4) + 10·C(3,4)... gives 2226 (confirmed by polynomial DP).
More Discrete Mathematics questions
- A path runs from (0,0) to (7,7) using unit steps right (+1,0) or up (0,+1). It must satisfy y ≤ x at every lattice point visited and must…
- What is the value of 7^(7^7) mod 100 (the last two digits of 7 raised to the power 7⁷)?
- How many equivalence relations on the set {1, 2, 3, 4, 5, 6, 7} have exactly 3 equivalence classes?
- What is the maximum number of regions into which 6 circles can divide the plane (any two circles meet in at most 2 points)?
- Over the domain {1, …, 60}, let P(a, b) mean "a divides b". How many x satisfy ∀y ∀z [(P(y,x) ∧ P(z,x)) → (P(y,z) ∨ P(z,y))], i.e. all…
- How many labelled simple graphs on the vertex set {1,…,7} are 2-regular (every vertex has degree exactly 2)?