GATE Computer ScienceHardGATE CS (PYQ pattern)
How many ordered 5-tuples of positive odd integers, each at most 9, sum to 25?
- A. 1001
- B. 371
- C. 391
- 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
- Eight people A, B, C, D, E, F, G, H sit around a round table (arrangements that differ by rotation are the same). In how many arrangements…
- How many permutations of {1, …, 6} have no increasing subsequence of length 4 and no decreasing subsequence of length 3?
- How many relations on {1, 2, 3} are reflexive and transitive (preorders) but are neither symmetric nor antisymmetric?
- A tree has 3 vertices of degree 4, 2 vertices of degree 3 and every other vertex is a leaf (degree 1). How many vertices does the tree have?
- The wheel W₉ consists of a hub joined to every vertex of a 9-cycle. What is its chromatic number?
- What is the maximum number of edges in a simple graph on 13 vertices that contains no K₄ (complete graph on 4 vertices)?