Placement AptitudeHardHCL · Tech Mahindra pattern
7 different books are packed into 3 identical bags so that no bag is empty. In how many ways can this be done?
- A. 35
- B. 301
- C. 1806
- D. 210
Correct answer: B. 301
With identical bags we only split the 7 books into 3 non-empty groups: the Stirling number S(7,3) = (3⁷ − 3 × 2⁷ + 3)/3! = (2187 − 384 + 3)/6 = 301. 1806 = 301 × 3! would be the answer for 3 different bags.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- There are 4 closed doors and a prize is behind one. You pick a door. The host, who knows where the prize is, opens one of the other doors…
- A screening test detects a disease in 99% of people who have it, but also wrongly shows positive for 2% of healthy people. 1% of the…
- Four people are chosen at random. Assuming each is equally likely to be born on any day of the week, what is the probability that all four…
- How many three-digit numbers have digits that add up to 10?
- How many integers from 1 to 500 are divisible by 3 or by 7, but not by both?
- 10 chairs are arranged in a circle. In how many ways can 3 chairs be chosen so that no two chosen chairs are next to each other?