# De Bruijn's theorem

In a 1969 paper, Dutch mathematician Nicolaas Govert de Bruijn proved several results about packing congruent rectangular bricks (of any dimension) into larger rectangular boxes, in such a way that no space is left over. One of these results is now known as de Bruijn's theorem. According to this theorem, a "harmonic brick" (one in which each side length is a multiple of the next smaller side length) can only be packed into a box whose dimensions are multiples of the brick's dimensions.

## Example

De Bruijn was led to prove this result after his then-seven-year-old son, F. W. de Bruijn, was unable to pack bricks of dimension $1\cdot 2\cdot 4$ into a $6\cdot 6\cdot 6$ cube. The cube has a volume equal to that of $27$ bricks, but only $26$ bricks may be packed into it. One way to see this is to partition the cube into $27$ smaller cubes of size $2\cdot 2\cdot 2$ colored alternately black and white. This coloring has more unit cells of one color than of the other, but with this coloring any placement of the $1\cdot 2\cdot 4$ brick must have equal numbers of cells of each color. Therefore, any tiling by bricks would also have equal numbers of cells of each color, an impossibility. De Bruijn's theorem proves that a perfect packing with these dimensions is impossible, in a more general way that applies to many other dimensions of bricks and boxes.

## Boxes that are multiples of the brick

Suppose that a $d$-dimensional rectangular box (mathematically a cuboid) has integer side lengths $A_{1}\cdot A_{2}\cdot \dotso \cdot A_{d}$ and a brick has lengths $a_{1}\cdot a_{2}\cdot \dotso \cdot a_{d}$. If the sides of the brick can be multiplied by another set of integers $b_{i}$ so that $a_{1}b_{1},a_{2}b_{2},\dots a_{d}b_{d}$ are a permutation of $A_{1},A_{2},\dots ,A_{d}$, the box is called a multiple of the brick. The box can then be filled with such bricks in a trivial way with all the bricks oriented the same way.

## A generalization

Not every packing involves boxes that are multiples of bricks. For instance, as de Bruijn observes, a $5\cdot 6$ rectangular box can be filled with copies of a $2\cdot 3$ rectangular brick, although not with all the bricks oriented the same way. However, de Bruijn (1969) proves that if the bricks can fill the box, then for each $a_{i},$ at least one of the $A_{i}$ is a multiple. In the above example, the side of length $6$ is a multiple of both $2$ and $3$.

## Harmonic bricks

The second of de Bruijn's results, the one called de Bruijn's theorem, concerns the case where each side of the brick is an integer multiple of the next smaller side. De Bruijn calls a brick with this property harmonic. For instance, the most frequently used bricks in the USA have dimensions $2{\tfrac {1}{4}}\cdot 4\cdot 8$ (in inches), which is not harmonic, but a type of brick sold as "Roman brick" has the harmonic dimensions $2\cdot 4\cdot 12$.
De Bruijn's theorem states that, if a harmonic brick is packed into a box, then the box must be a multiple of the brick. For instance, the three-dimensional harmonic brick with side lengths 1, 2, and 6 can only be packed into boxes in which one of the three sides is a multiple of six and one of the remaining two sides is even. Packings of a harmonic brick into a box may involve copies of the brick that are rotated with respect to each other. Nevertheless, the theorem states that the only boxes that can be packed in this way are boxes that could also be packed by translates of the brick.
Boisen (1995) provided an alternative proof of the three-dimensional case of de Bruijn's theorem, based on the algebra of polynomials.

## Non-harmonic bricks

The third of de Bruijn's results is that, if a brick is not harmonic, then there is a box that it can fill that is not a multiple of the brick. The packing of the $2\cdot 3$ brick into the $5\cdot 6$ box provides an example of this phenomenon.
In the two-dimensional case, the third of de Bruijn's results is easy to visualize. A box with dimensions $A_{1}=a_{1}$ and $A_{2}=a_{1}\cdot a_{2}$ is easy to pack with $a_{1}$ copies of a brick with dimensions $a_{1},a_{2}$, placed side by side. For the same reason, a box with dimensions $A_{1}=a_{1}\cdot a_{2}$ and $A_{2}=a_{2}$ is also easy to pack with copies of the same brick. Rotating one of these two boxes so that their long sides are parallel and placing them side by side results in a packing of a larger box with $A_{1}=a_{1}+a_{2}$ and $A_{2}=a_{1}\cdot a_{2}$. This larger box is a multiple of the brick if and only if the brick is harmonic.