Maths Olympiad Prep

Library / /294 of 299

Combinatorics Difficulty 7.8 National Olympiad, round 2 Prove it Iran

A local supermarket is responsible for the distribution of 100100 supply boxes. Each box is ought to contain 1010 kilograms of rice and 3030 eggs. It is known that a total of 10001000 kilograms of rice and 30003000 eggs are in these boxes, but in some of them the amount of either item is more or less than the amount required. In each step, supermarket workers can choose two arbitrary boxes and transfer any amount of rice or any number of eggs between them. At least how many steps are required so that, starting from any arbitrary initial condition, after these steps the amount of rice and the number of eggs in all these boxes is equal?

Solution

The answer is 9999. First consider the initial condition that all of eggs are in just one of boxes. In each step, we can transfer eggs to at most one new box and so we need at least 9999 steps. We claim that 9999 steps is always enough. For this end, we call a box containing exactly 3030 eggs and 1010 kilograms of rice a good box, and a box which is not good a bad box! In each step, consider one of bad boxes containing the most number of eggs and one of bad boxes containing the most amount of rice. If these two boxes were the same, consider another arbitrary bad box (note that if all other boxes were good, this box also must be good and there is nothing to prove). Evidently, we have at least 3030 number of eggs and 1010 kilograms of rice in these two boxes. So by transferring eggs and rice between them, we can make one of them a good box. Therefore, after 9999 steps we have at least 9999 good boxes and so the last box is also good and we are done.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.