GATE Computer ScienceVery hardGATE CS
How many ordered triples (a, b, c) of non-negative integers satisfy 2a + 3b + 5c = 40?
- A. 31
- B. 34
- C. 36
- D. 38
Correct answer: B. 34
For c = 0, 1, ..., 8 the remaining sum 40 − 5c = 40, 35, 30, 25, 20, 15, 10, 5, 0 has 7, 6, 6, 4, 4, 3, 2, 1, 1 solutions of 2a + 3b = N respectively (b must have the parity of N). The total is 34.
More Discrete Mathematics questions
- A relation R on {1, 2, …, 8} contains exactly the pairs (1,2), (2,3), (3,1), (3,4), (5,6), (6,7), (7,5), (4,8), (8,8). How many ordered…
- How many walks of length 12 are there from vertex 0 to the antipodal vertex 4 in the cycle graph C₈ (vertices 0 to 7, i adjacent to i ± 1…
- In how many permutations of 1, 2, …, 7 does no entry i + 1 immediately follow the entry i (that is, there is no adjacent pair i, i + 1 in…
- How many pairwise non-isomorphic simple graphs (not necessarily connected) have 6 vertices and exactly 7 edges?
- A necklace has 8 beads, each coloured with one of 3 colours so that adjacent beads (including the last and first) have different colours…
- What is the value of Σ{k=1}^{100} gcd(k, 100)?