Placement AptitudeVery hardTCS NQT · Infosys pattern
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?
- A. 375
- B. 406
- C. 396
- D. 381
Correct answer: D. 381
Let y_i=x_i-2>=0; then the sum of y_i=10 with each y_i<=4. Unrestricted: C(14,4)=1001. One variable >=5 (shift by 5, sum=5): C(9,4)=126 per child, 5 children giving 630. Two variables >=5 together (forced to exactly 5 each, rest 0): C(5,2)=10. By inclusion-exclusion: 1001-630+10=381.
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 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?
- In how many different ways can the letters of the word PLACE be arranged?
- A team of 3 has to be picked from 7 trainees. In how many ways can this be done?