Placement AptitudeHardCapgemini · AMCAT

20 identical laptops are to be shared among three labs A, B and C. A lab may get none, but Lab A can store at most 5. In how many ways can the laptops be shared?

  1. A. 120
  2. B. 126
  3. C. 111
  4. D. 80

Correct answer: C. 111

Without the cap, x + y + z = 20 has 22C2 = 231 solutions; those with A ≥ 6 number 16C2 = 120. So 231 − 120 = 111. 120 is the excluded count itself; 126 uses A ≥ 7 (i.e. a cap of 6); 80 forbids empty labs.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic