Mathematics (JEE)HardCodeforces Div2 D
How many 5-tuples of integers (x1, ..., x5) satisfy x1 + ... + x5 = 25 with 1 <= xi <= 8 for every i?
- A. 10626
- B. 826
- C. 2826
- D. 2226
Correct answer: D. 2226
Shift each xi by subtracting 1 to get yi in [0,7] with sum 20; inclusion-exclusion over the variables exceeding 7 gives 2226.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many integer pairs (x, y) satisfy x + y = 7 with -10 <= x <= 10 and -10 <= y <= 10?
- How many ordered triples of integers (a, b, c) satisfy a + b + c = 7 with 0 <= a, b, c <= 4?
- How many partitions of 80 have at most 4 parts? (Order of parts is ignored.)
- How many partitions of 50 into exactly 4 distinct positive parts exist? (Order of parts is ignored.)
- How many partitions of 30 use only triangular numbers 1, 3, 6, 10, 15, 21, 28 as parts, with repetition allowed?
- How many partitions of 42 use only the part sizes 2, 3 and 7, with repetition allowed?