Placement AptitudeVery hardTCS Digital · Infosys SP

In how many ways can 10 identical balls be placed into 4 distinct boxes so that every box has at least 1 ball and at most 4 balls?

  1. A. 84 ways
  2. B. 68 ways
  3. C. 40 ways
  4. D. 44 ways

Correct answer: D. 44 ways

With at least 1 each there are C(9,3)=84 ways. If one box has 5 or more (4 choices of box), write it as 4+u with u>=1: u+x+y+z=6 gives C(5,3)=10, so 40 bad ways; two boxes cannot both reach 5. Hence 84 - 40 = 44.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic