Mathematics (JEE)Very hardGATE CS

In how many ways can the 7 distinct balls 1, 2, ..., 7 be placed into 4 identical boxes so that no box is empty?

  1. A. 301
  2. B. 840
  3. C. 1050
  4. D. 350

Correct answer: D. 350

Identical non-empty boxes correspond to set partitions into 4 blocks, counted by S(7,4) = 350 (from S(n,k) = k*S(n-1,k) + S(n-1,k-1)).

More Permutations, Combinations and Probability questions

Exams that ask this topic