Skip to main content
OlympiadHQ

Browse · MathNet

Print

BMO 2022 shortlist

2022 counting and probability

Problem

A cube of side length is given. In how many ways can we place a cubelet on the border of this cube in such a way that the newly formed solid can be completely filled using , and cuboids, for some ?
Solution
Suppose that for some and some placed cubelet there is a valid filling. In each unit cubelet (of the original cube) with coordinates where , we assign the complex number where . We also assign the number in the additional cubelet in position .

Since , then the sum of numbers in any cuboid is equal to zero. So the sum of all assigned numbers is equal to This gives Thus which means that is equidistant from the numbers and . Since , this happens if and only if or . Then or which gives or . However . Since , if then . So in any case we have . Now (1) gives So . If we have a valid filling for , then we have a valid filling for every prime factor of . So we may assume that is prime and therefore . Assume without loss of generality that the additional cubelet is at the bottom of the cube, i.e. . Then . By symmetry, if we have a valid filling for , then we have a valid filling for . So we must also have and so . Since also we get for and for . We will now show that the above necessary conditions are also sufficient to have a valid filling. We claim first that a square defined by coordinates where , with a removed cell satisfying the above restrictions can be covered by rectangles. This is because such a square can be covered by four rectangles of sizes , , and , where each of these rectangles can be covered by rectangles. This follows since if and since if . Now we fill the cube with the added cubelet as follows: The lowest "layers" of the original cube of side are filled using the previous method together with a cuboid covering the holes in these layers and the additional cubelet. The remainder is the cuboid which can be easily filled by cuboids because . To complete the solution, we need to count the number of ordered pairs with , such that , or or . There are choices with and choices with . If but then one of must be congruent to and the other to . There are such choices. Finally, if but is not yet accounted for, then one of them is equal to and the other to . (Note that in this case the second one is definitely not congruent to .) There are such choices. In total we have choices for the pair . Therefore, because of symmetry, the total number of ways is .

---

Alternative solution.

Since there are a total of cubelets and each cuboid covers of them, we must have . We have as a product of prime factors. If we have a valid filling for , then we have a valid filling for every prime factor of . So we may assume that is prime and therefore . (The case is easily seen to be impossible.) We colour the cubelet at position for by the colour . So every cuboid covers 1 cubelet of each colour. If then it is easy to see that we have one more cubelet of the form than of the form . So assuming that the additional cubelet is in position , we must have as in Solution 1. If then, since it is each to cover all cubelets with cuboids except those of the form with , we see that there is one less cubelet of the form than of the form . So assuming that the additional cubelet is in position , we must have . Exploiting the symmetry as in Solution 1 we get . If then note that (since ) it is easy to cover all cubelets with cuboids except those of the form with . Note that exactly 19 of these cubicles have the colour . (3 when , 3 when , 4 when , 5 when and 4 when .) These are more than so one of these will remain uncovered. So is impossible. If then note that (since ) it is easy to cover all cubelets with cuboids except those of the form with . Note that only one of those cubelets has the colour . So even if the additional cubelet has the same colour it is still less than the which are expected in a proper covering. So is impossible. If then note that the square containing all cells of the form with and can be covered with rectangles and so contains equal number of cells of each colour (thinking of ). In the column with , the cells have in order the colours . So the colour appears one time less in that column and therefore one time more in the square of the form with . In the 'layer' above the extra colour is , then and so on until . So in the original cube all colours appear an equal number of times except which appear one time less and must be the colour of the additional cubelet . Thus . Exploiting the symmetry as in Solution 1 we get . So we get the same necessary conditions as in Solution 1. The sufficiency of these conditions is proved in a similar way as in Solution 1.
Final answer
13612182

Techniques

Coloring schemes, extremal argumentsInvariants / monovariantsFactorization techniquesPrime numbersRoots of unityComplex numbers