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?
- A. 3951
- B. 1976
- C. 2012
- 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
- How many permutations of {1, 2, …, 8} have exactly 3 fixed points and no 2-cycles?
- In how many permutations of 1, 2, …, 8 does NO entry i appear immediately followed by i + 1 (so 1 2, 2 3, …, 7 8 never occur as…
- Five married couples sit at a round table with 10 seats, alternating man, woman, with the five men's seats already fixed. In how many ways…
- How many distinct bracelets of 6 beads use exactly two beads of each of 3 colours (rotations and reflections count as the same)?
- The six faces of a cube are coloured so that each of 3 given colours appears on exactly two faces. How many colourings are distinct up to…
- A lattice path from (0, 0) to (7, 7) uses unit steps right (R) and up (U) and never goes above the line y = x. How many such paths avoid…