Mathematics (JEE)HardICPC regional

How many 6-tuples of integers (y1, ..., y6) satisfy y1 + ... + y6 = 12 with 0 <= yi <= 4 for every i?

  1. A. 6188
  2. B. 336
  3. C. 3431
  4. D. 1751

Correct answer: D. 1751

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

More Permutations, Combinations and Probability questions

Exams that ask this topic