Maths WorkshopMaths problems with full solutions
Exercise 532Combinatorics › Pigeonhole principleHigh schoolAdded 3 Nov 2026

Balls in boxes

#generalized pigeonhole#ceil#balls

Statement

How many balls must be placed in 77 boxes to guarantee that some box contains at least 44 balls?

Hint

If every box has ≤3\le 3 balls, at most 7⋅3=217\cdot 3=21 balls fit.

Show solutionHide solution

Solution

Maximum without guarantee. Each box has ≤3\le3: total ≤21\le21.

Guarantee. With 2222 balls, by generalized pigeonhole some box has at least ⌈22/7⌉=4\lceil 22/7\rceil=4 balls.

Conclusion. 2222 balls.