The A4 paper puzzle
Note: this article makes use of MathML, the standard XML markup for math formulas. Sadly, this is not properly supported on some allegedly ‘modern’ and ‘feature-rich’ browsers. If the formulas don't make sense in your browser, consider reporting the issue to the respective developers and/or switching to a standard-compliant browser.
Introduction
I first heard about this problem from the Stand-up Maths video on the topic and I found it utterly fascinating. I'm going to present here the problem, the solution, and finally discuss a more general version.
The problem
The problem is quite simple. Find the length of the perimeter of the following plane figure:
The shape is obtained by folding an A4 piece of paper (whose sides have lengths in a ratio of ) two times: on one corner until the short side reaches the adjacent long side, and then again on the corner of the leftover rectangle, until the leftover on the long side touches the folded short side. Check Matt's video if you're confused, or consider the following picture: from the initial rectangle, fold diagonally to bring to and then to :
The solution
The solution to the problem is quite straightforward: we simply need to add up the lengths of the segments composing the perimeter of our figure.
We'll take as reference for the length the short side of the sheet of A4 paper, so the bottom segment , which is the long side of the sheet, has length .
The long diagonal segment is the diagonal of a square , whose side is the short side of the sheet: the side has length , and therefore the diagonal length is .
The short diagonal was obtained folding the angle of the leftover rectangle , so let's focus for a moment on this rectangle. The long side of is the short side of the original A4 paper sheet, and is thus of length ; the length of the short side of this rectangle, on the other hand, is equal to the difference in length between the long and short sides of the A4 paper sheet, and is thus .
By folding the corner of this rectangle, the resulting side is the diagonal of the square, whose side is the short side of , and its length is thus
The last segment is the long side of the rectangle , which is the “leftover of the leftover” after the second fold: its length is thus the difference between the long and short sides of the leftover rectangle :
(Notice how, curiously, this last segment is equal in length to the previous, diagonal segment! We have $\bar{BC} = \bar{CD}, which will come in handy next.)
We now have the lengths of all the segments:
and the length of our perimeter can then be computed as:
Generalization
The beauty of the problem obviously comes from the fact that the cancelling square roots give us a nice and clean integer despite the original piece of paper having an irrational aspect ratio, thus resulting in irrational lengths for all sides. But what happens if we don't start from an A4 (or more in general, from an A-series) sheet? What if the original rectangle has a different aspect ratio?
So let's assume now that we're starting from a rectangle with aspect ratio with .
The bottom segment now has length .
The long diagonal segment still has length , since the short side of the original rectangle still has length .
Let's now look at the leftover rectangle. The long side still has length , and the other has length .
We must now be careful, since the second fold gives us the behavior we have already seen for the A4 sheet only as long as the short side of the leftover rectangle is not longer than the other side, i.e. only if , i.e. if , i.e. only if .
In this case, the second fold thus gives us a short diagonal of length
and the remaining segment has length
We have lost the beautiful relationship between the last two segments, but we can still compute the final perimeter, with length
We can thus see that the only case where we can a nice integer value for the length of the perimeter is when is an integer, which can only happen when for some integer , but since it must be , the case is the only possible case.
In the extreme case where , the second fold produces a diagonal of length 0, and we get an isosceles triangle obtained by halving the square, with length .
In the extreme case where , the second fold matches the first one, and we get another isosceles triangle, this time with two sides of length , and the other with length 2, and thus a perimeter of length .
Thin stripe case
We can, in fact, also do the case , i.e. the case when the original rectangle is a “thin stripe” (long side more than twice longer than short side). In this case, the second fold would stop when the (now short) right side of the leftover rectangle meets the base, giving us a trapezium:
We still have , , and this time also . Finally, the short base is obtained subtracting from the long base the short sides of the original rectangle (due to the folds), and thus .
The perimeter of the figure is therefore
(Note that for the extreme case we obtain again .)
If we want the perimeter of the new figure to be an integer , we need first of all that to be rational, and thus for some rational . Then , hence , and thus finally
Observe that since this was done under the hypothesis , from this we also get whence , and since must be integer, .
The smallest integer perimeter we can get for the “thin stripe” case is , achieved with (for the curious, this is barely more than , as —and yes, it's the trapezium in the figure). Subsequent integer perimeters are obtained by incrementing in steps of .