Mathematics (JEE)HardICPC regional

How many 5-tuples of non-negative integers (x1, ..., x5) satisfy x1 + ... + x5 = 30 with every xi <= 12?

  1. A. 17151
  2. B. 46376
  3. C. 11901
  4. D. 22301

Correct answer: A. 17151

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

More Permutations, Combinations and Probability questions

Exams that ask this topic