A Board of Stacks That Folds Into a Cube
Stack i + j - 1 cubes on every square of a 20 by 20 board and the total is 8000, which is 20 cubed. Folding the board across the squares that are exactly 20 deep pairs every stack with a mirror stack, and each pair adds to 40, so the average depth is 20. The double sum gets the same answer and is merely slow, and the main diagonal is the fold that proves nothing.
Take a board of 20 squares by 20. On the square in column and row , put a stack of unit cubes. The near corner gets one cube, the far corner gets 39, and everything else gets something in between. How many cubes are on the board?
The total is 8000, which is . That is not a coincidence and it is not an arithmetic accident. The pile of stacks can be rearranged into a solid cube of side 20, and once you see how, the answer needs no summation at all.
What the stacks actually build
Write for the depth of the stack on square , with both coordinates running from 1 to .
At that is 1 and at it is , so for a board of side 20 the depths run from 1 to 39. The solid is a staircase that rises steadily as you walk in either direction, and its highest ridge runs along the far corner.
The slow route is a correct route
The obvious move is to write the double sum and grind it out. That works. Split the summand and sum each piece over the whole board. Each of and runs over once for every value of the other index, so each contributes , and the constant contributes .
Nothing about that is wrong. It is worth being blunt on this point, because the temptation when presenting a slicker method is to strike the slow one out, and a strike means the thing is false. The double sum is exact. Its only cost is your time, and under a clock that cost is real, which is a different criticism entirely.
Folding along the squares that are exactly 20 deep
Here is the route that needs no algebra. Pick out the squares whose stack is exactly deep. By (1) those are the squares with , and there are of them, running corner to corner across the board. Now reflect the board across that line.
The reflection across the line is an involution of the board, meaning . It sends the depth to , so a stack of depth is always paired with a stack of depth . Its fixed points are exactly the squares with , each of depth .
The consequence is a one-line identity. Any square and its mirror image carry depths that add to the same constant, whatever square you started from.
On the 20 by 20 board every mirror pair adds to 40. The two marked squares in Fig. 1 are 16 deep and 24 deep, and 16 plus 24 is 40. Since the pairing covers the board, with the fold line matched to itself, the depths average exactly and the total is squares times deep.
There is a physical version of the same statement that is worth carrying, because it is what makes the word fold honest. Slice the solid flat at height . Some stacks poke above the slice and some fall short of it, and the shortfall at a square is exactly the overhang at its mirror image:
So the material sitting above the slice, moved square by square onto the mirror squares, fills every hole below it with nothing left over and nothing missing. What remains is a slab by by .
The fold that proves nothing
A square board has two diagonals and only one of them works, which is where this argument is usually botched. The reflection across the main diagonal is , and it leaves alone. So pairs every square with a square of the same depth. That is a true symmetry of the solid and it tells you nothing about the total, because pairing equal numbers gives you back the average you were trying to find.
The useful map is the one that reverses depth, and there are two ways to describe it. Either reflect across the anti-diagonal as in the definition above, or rotate the board a half turn, . Both send a depth of to , so either will do. The instruction fold along the diagonal is ambiguous, and half the time it points at the wrong line, which is why it is better to say fold along the squares that are exactly deep.
A third route: look at the depths themselves
The mean of over is , and the same for , so the mean depth over the board is
Multiply by the squares and you get again. This is the fold argument stripped of geometry: what the fold really establishes is that the distribution of depths is symmetric about , and a symmetric distribution has its mean at the centre of symmetry.
The counts in that figure are readable directly from (1). The number of squares with is the number of ways to write as a sum of two indices in range, which is while and after that. They total , as they must.
The general statement, and the absence of exceptions
Equations (2), (3) and (6) are all statements about a general , so the identity that the stacks fill a cube is not a fact about 20. It holds for every positive integer , including , where the board is a single square carrying a single cube and . At the depths are 1, 2, 2, 3, which sum to 8. Nothing needs excluding and no side condition needs stating, which is unusual enough in this kind of problem to be worth saying.
What does change if you perturb the setup is the shape of the answer. Put on a rectangular board and the mean depth becomes , so the total is , which is only a cube when . Put on the square board instead and the total is , since every one of the squares gains a cube. The cube appears because the depth function is linear in both coordinates and centred so that its average lands on exactly.
Sources and further reading
- The sum used twice in equation (2) — Arithmetic progression
- The pairing argument as a general technique — Double counting and Involution
- The number the total turns out to be — Cube (algebra)
- Why the two diagonals behave differently — Reflection
The total was checked three ways before publication. Symbolic algebra closes the double sum in (2) to for a general . Exhaustive enumeration of every square on every board from to agrees with in each case, and on each of those boards the fold was verified to be an involution whose fixed points are exactly the squares of depth , with every matched pair summing to . Finally the physical version of (4) was carried out: after moving each overhang onto its mirror square, all squares were confirmed to stand exactly deep.
Comments · 0
Be the first to comment.