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?

  1. A. 35
  2. B. 301
  3. C. 1806
  4. 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.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic