Mathematics (JEE)HardGATE CS

How many ordered triples of integers (a, b, c) satisfy a + b + c = 7 with 0 <= a, b, c <= 4?

  1. A. 36
  2. B. 18
  3. C. 6
  4. D. 12

Correct answer: B. 18

Shift each xi by subtracting 0 to get yi in [0,4] with sum 7; inclusion-exclusion over the variables exceeding 4 gives 18.

More Permutations, Combinations and Probability questions

Exams that ask this topic