Mathematics (JEE)HardICPC regional
How many 5-tuples of non-negative integers (x1, ..., x5) satisfy x1 + ... + x5 = 30 with every xi <= 12?
- A. 17151
- B. 46376
- C. 11901
- 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.
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 = 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?
- How many compositions of 12 exist using only parts 1 and 2? Sequences that differ in order count as different.