Browse · MathNet
PrintNational Olympiad of Argentina
Argentina algebra
Problem
1000 balls of mass and 5000 balls of mass must be packed in boxes. A box can contain any collection of balls with total mass at most . Find the minimum number of boxes needed.
Solution
There can be , or balls of mass in a box since . In these three cases the box can contain at most , and balls with mass respectively. If looking for the minimum number of boxes, we may therefore assume that there are only boxes of three kinds: with heavy and light balls; with heavy and light balls; with heavy and light balls. Let there be , and boxes of each kind respectively. In order that all balls be packed, it is necessary and sufficient that and . Multiply the second inequality by and add it to the first one. This gives , hence . Because is an integer, it follows that . So boxes are necessary.
Now let , , . Then , and . These relations show that boxes are sufficient. The answer is .
Now let , , . Then , and . These relations show that boxes are sufficient. The answer is .
Final answer
577
Techniques
Combinatorial optimizationFloors and ceilings