GATE Computer ScienceVery hardGATE CS (PYQ pattern)

How many integer solutions does x₁ + x₂ + x₃ + x₄ + x₅ = 30 have with 2 ≤ xᵢ ≤ 10 for every i and x₁ even?

  1. A. 3951
  2. B. 1976
  3. C. 2012
  4. D. 2151

Correct answer: D. 2151

Put yᵢ = xᵢ − 2: y₁ + … + y₅ = 20 with 0 ≤ yᵢ ≤ 8 and y₁ even. For y₁ = 0, 2, 4, 6, 8, count y₂…y₅ ∈ [0, 8] with sum s = 20, 18, 16, 14, 12 via C(s+3,3) − 4C(s−6,3) + 6C(s−15,3): 375, 456, 489, 456, 375. Total 2151 (dropping the parity condition gives 3951).

More Discrete Mathematics questions

Exams that ask this topic