Baltic Way 2020 · Problem 7
Combinatorics
A mason has bricks with dimensions and other bricks with dimensions . She also has a box with dimensions . The bricks and the box are all rectangular parallelepipeds. The mason wants to pack bricks into the box filling its entire volume and with no bricks sticking out. Find all possible values of the total number of bricks that she can pack.
When you’re ready
Review material becomes available with the next Daily.
Review
Topics
Pigeonhole and extremal arguments
Solutions
Solution
Answer: 24. Let the number of bricks in the box be , and the number of bricks . We must figure out the sum . The volume of the box is divisible by , and so is the volume of any brick. The volume of a brick is not divisible by , which means that must be divisible by .
The volume of the box is . The volume of the bricks in the box is . Since this volume cannot exceed the volume of the box, we must have
Since was divisible by , and certainly nonnegative, we conclude that must be , or . Let us explore each of these possibilities separately.
If we had , then the volume of the bricks, which is , would be equal to the volume of the box, which is . However, this is not possible since the volume of the bricks is divisible by three whereas the volume of the box is not. Thus must be or .
If we had , then equating the total volume of the bricks with the volume of the box would give
so that
However, again the left-hand side, the volume of the bricks, is divisible by three, whereas the right-hand side, , is not. Thus we cannot have either, and the only possibility is .
Since , equating the volumes of the bricks and the box gives
which in turn leads to
so that
Thus the number of bricks in the box can only be . Finally, for completeness, let us observe that bricks with dimensions can be used to fill a volume with dimensions , and bricks with dimensions can be used to fill a volume with dimensions , so that these bricks can indeed be packed in the box.
Contest context
Results from Baltic Way 2020
10 teams
- Mean score
- 4.5 / 5
- Scores of 4 or 5
- 9 / 10
- Estonia
- 5 / 5
Score distribution
All team scores
| Team | Score |
|---|---|
| Germany | 5 / 5 |
| Norway | 5 / 5 |
| Poland | 5 / 5 |
| Finland | 0 / 5 |
| Latvia | 5 / 5 |
| Estonia | 5 / 5 |
| Denmark | 5 / 5 |
| Sweden | 5 / 5 |
| Lithuania | 5 / 5 |
| Iceland | 5 / 5 |