Placement AptitudeHardHCL · Tech Mahindra pattern
How many positive integer solutions does x + y + z = 15 have if each of x, y, z is at most 10?
- A. 70
- B. 73
- C. 85
- D. 78
Correct answer: B. 73
Positive solutions overall: C(14,2)=91. Those with some variable >=11 (set x'=x-10, keeping it positive): C(4,2)=6 per variable, 3 variables giving 18 (no overlap is possible). Valid = 91-18=73.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- In how many ways can 10 identical candies be distributed among 4 children so that each child gets at least 1 and at most 4 candies?
- In how many ways can 20 identical chocolates be distributed among 5 children so that each child gets at least 2 and at most 6 chocolates?
- In how many ways can 3 numbers be selected from 1 to 20 so that no two of them are consecutive?
- In how many ways can 16 identical balls be placed into 4 distinct boxes so that each box contains an odd number of balls?
- In how many ways can 10 be written as an ordered sum of 3 positive integers?
- In how many ways can 7 distinct toys be distributed among 3 children so that each child gets at least 1 toy?