Mathematics (JEE)ModerateGATE CS

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

  1. A. 5985
  2. B. 1330
  3. C. 420
  4. D. 780

Correct answer: B. 1330

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

More Permutations, Combinations and Probability questions

Exams that ask this topic