GATE Computer ScienceVery hardGATE CS (PYQ pattern)

14 identical sweets are distributed among 4 children A, B, C, D so that each child gets at least 1 and at most 5. In how many distributions does A get strictly more than B?

  1. A. 34
  2. B. 28
  3. C. 68
  4. D. 40

Correct answer: B. 28

All distributions: with yᵢ = xᵢ − 1 ∈ [0, 4] summing to 10: C(13,3) − 4C(8,3) + 6C(3,3) = 286 − 224 + 6 = 68. Ties A = B = a need C + D = 14 − 2a with 1 ≤ C, D ≤ 5: a = 2, 3, 4, 5 give 1, 3, 5, 3 → 12. By symmetry A > B in (68 − 12)/2 = 28.

More Discrete Mathematics questions

Exams that ask this topic