GATE Computer ScienceVery hardNIELIT Scientist B
How many solutions does x₁ + x₂ + x₃ + x₄ = 15 have in integers with 0 ≤ xᵢ ≤ 6 for every i?
- A. 160
- B. 200
- C. 140
- D. 180
Correct answer: D. 180
Inclusion–exclusion: C(18,3) − 4·C(11,3) + 6·C(4,3) = 816 − 660 + 24 = 180.
More Discrete Mathematics questions
- How many subsets of {1, 2, …, 12} (including the empty set) contain no two consecutive integers?
- How many transitive relations (not necessarily reflexive or symmetric) exist on a 4-element labelled set?
- How many spanning trees does the 3-dimensional hypercube graph Q₃ (8 vertices, 12 edges, vertices adjacent when their 3-bit labels differ…
- In how many ways can the 10 (labelled) vertices of the Petersen graph be properly coloured using colours from a fixed set of 3 colours…
- How many perfect matchings does the 4 × 4 grid graph (16 vertices; horizontal and vertical neighbours adjacent) have?
- How many antichains (the empty antichain and singletons included) does the poset (P({1,2,3,4}), ⊆) have?