Mathematics (JEE)HardCodeforces Div2 D
How many 8-tuples of integers (y1, ..., y8) satisfy y1 + ... + y8 = 15 with 1 <= yi <= 3 for every i?
- A. 3432
- B. 8
- C. 5328
- D. 1016
Correct answer: D. 1016
Shift each xi by subtracting 1 to get yi in [0,2] with sum 7; inclusion-exclusion over the variables exceeding 2 gives 1016.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many 5-tuples of non-negative integers (x1, ..., x5) satisfy x1 + ... + x5 = 30 with every xi <= 12?
- How many integer pairs (x, y) satisfy x + y = 30 with 3 <= x <= 20 and 3 <= y <= 20?
- How many partitions of 70 have no part equal to 1? (Order of parts is ignored.)
- How many partitions of 36 into exactly 6 positive parts exist? (Order of parts is ignored.)
- How many partitions of 45 into distinct parts, each part at least 2, exist? (Order of parts is ignored.)
- How many partitions of 48 use only powers of 2 as parts (1, 2, 4, 8, 16, 32, ...) with repetition allowed?