Placement AptitudeVery hardTCS Digital · Infosys SP · Accenture

In how many ways can 10 identical balls be placed in 4 distinct boxes so that every box has at least 1 ball and no box has more than 5?

  1. A. 84
  2. B. 68
  3. C. 80
  4. D. 64

Correct answer: B. 68

Positive solutions of x1+...+x4 = 10 number C(9,3) = 84. Solutions with some xi >= 6: put xi' = xi - 5 (still positive) so the sum is 5, giving C(4,3) = 4 each, 16 in all (two boxes cannot both exceed 5). 84 - 16 = 68.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic