Placement AptitudeHardHCL · Tech Mahindra pattern

12 identical apples are shared among 4 children so that each child gets at least 1 and at most 5 apples. In how many ways can this be done?

  1. A. 81
  2. B. 125
  3. C. 165
  4. D. 85

Correct answer: D. 85

Give 1 to each: y₁ + … + y₄ = 8 with 0 ≤ yᵢ ≤ 4. Without the cap: 11C3 = 165. Remove the cases where some yᵢ ≥ 5: 4 × 6C3 = 80 (two children cannot both exceed 4). 165 − 80 = 85.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic