GATE Computer ScienceHardGATE CS (PYQ pattern)

How many ordered 5-tuples of positive odd integers, each at most 9, sum to 25?

  1. A. 1001
  2. B. 371
  3. C. 391
  4. D. 381

Correct answer: D. 381

Write xᵢ = 2yᵢ + 1 with 0 ≤ yᵢ ≤ 4: y₁ + … + y₅ = 10. Inclusion–exclusion on yᵢ ≥ 5: C(14,4) − 5·C(9,4) + C(5,2)·C(4,4) = 1001 − 630 + 10 = 381.

More Discrete Mathematics questions

Exams that ask this topic