Mathematics (JEE)ModerateGATE CS

How many 7-tuples of integers (x1, ..., x7) satisfy x1 + ... + x7 = 10 with 0 <= xi <= 3 for every i?

  1. A. 2128
  2. B. 8008
  3. C. 161
  4. D. 77

Correct answer: A. 2128

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

More Permutations, Combinations and Probability questions

Exams that ask this topic