Placement AptitudeModerateHCL · Tech Mahindra pattern
In how many ways can 8 identical chocolates be distributed among 3 children if a child may get none?
- A. 56
- B. 21
- C. 36
- D. 45
Correct answer: D. 45
Stars and bars: the number of non-negative solutions of a + b + c = 8 is (8 + 2)C2 = 10C2 = 45. 21 = 7C2 would be the count when every child must get at least one.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- 5 boys and 3 girls are to stand in a row so that no two girls are next to each other. How many arrangements are possible?
- How many rectangles (including squares) can be found in a grid of 5 columns × 3 rows of unit squares?
- A number is picked at random from 1 to 50. What is the probability that it is divisible by 4 or by 6?
- 6 students come back to a classroom and sit down at random, one per seat. In how many ways can they sit so that exactly one student is in…
- Five letters go at random into five addressed envelopes, one each. In how many ways do exactly two letters reach the correct envelope?
- In how many ways can 3 distinct numbers be chosen from 1, 2, …, 20 so that their sum is even?