Maths Olympiad Prep

Track / Stage 8 / 174 of 180 #1874 of 1964

Problem 1874

IMO Shortlist mid-range; USAMO P2/P5
Geometry Difficulty 8.9 Prove it Baltic Way 2023 Shortlist · Baltic Way · 2023

Find the least positive integer nn for which it is possible to draw an nn-gon along the lines of a square grid, whose perimeter is nn and whose area is nn. Here the boundary of the nn-gon may not visit any point more than once.

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Official solutions — 2

Solution 1

Answer: n=32n = 32. We start by showing that such a 3232-gon exists.
It remains to prove that this is indeed the smallest possible nn. We will do that by proving that for all n<32n < 32 the area SS of an nn-gon with perimeter P=nP = n is smaller than nn.

At first we note that P=nP = n if and only if all sides of the nn-gon are of length 11. From this it follows that nn should be an even number as there should be an even number of horizontal and an even number of vertical sides. Denote n=2mn = 2m and the vertices of the nn-gon as A1A2A2mA_1A_2\dots A_{2m}. We call a vertex AiA_i odd (even) if its index ii is odd (even).

Now we can consider the sides of the nn-gon in pairs. Let vertex AiA_i be located at the point (x,y)(x, y). Vertex Ai+2A_{i+2} is then located at (x±1,y±1)(x\pm1, y\pm1). It means that by moving from AiA_i to Ai+2A_{i+2} (we count vertices modulo 2m2m) we have moved by a unit vector in the “diagonal” coordinate system with unit vectors (1,1)(1, 1) and (1,1)(1, -1). We denote these steps \rightarrow and \leftarrow, respectively.

Let's start at the vertex A1A_1 and travel around the nn-gon in mm steps by stopping at all odd vertices A1A3A2m1A1A_1 \to A_3 \to \dots \to A_{2m-1} \to A_1. Denote the total number of \rightarrow steps as 2a2a and the total number of \leftarrow steps as 2b2b (both of them must be even numbers). Therefore m=2a+2bm = 2a + 2b and n=4a+4bn = 4a + 4b, hence nn is divisible by 44. It means that we have to prove that S<nS < n for all P=n28P = n \le 28.

Let's consider the most “northeastern”, “northwestern”, “southeastern” and “southwestern” vertices of our nn-gon, denote them NE,NW,SE,SWNE, NW, SE, SW respectively (see figure). W.l.o.g. assume that NENE and at least one more of them are odd. Our nn-gon is contained in a rectangle whose sides are parallel to vectors (1,1)(1, 1) and (1,1)(1, -1) and pass through these four vertices. Denote its width and height as WW and HH. Our nn-gon's area is no larger than WHSgW \cdot H - S_g where SgS_g is the area of the “gray triangles”. It can be computed as half of the area of the “square ring” between outer and inner (gray) rectangles:
Sg=WH(W2)(H2)2=2(W+H)21 S_g = \frac{WH - (W - \sqrt{2})(H - \sqrt{2})}{2} = \frac{\sqrt{2}(W + H)}{2} - 1
therefore the area of the nn-gon is no larger than SWH2(W+H)2+1S \le W H - \frac{\sqrt{2}(W+H)}{2} + 1. By using the inequality WH(W+H)24WH \le \frac{(W+H)^2}{4} we can transform it into
S(W+H)242(W+H)2+1=(W+H2)24+12.() S \le \frac{(W+H)^2}{4} - \frac{\sqrt{2}(W+H)}{2} + 1 = \frac{(W+H-\sqrt{2})^2}{4} + \frac{1}{2}. \quad (*)
Recall that the NENE vertex is odd. Assume at first that SWSW also is odd. Then as travelling from NENE to SWSW uses at most bb \nearrow steps, then we conclude that Wb2W \le b\sqrt{2}. If the vertex SWSW is even, then the estimation is slightly worse: we can travel in at most bb \nearrow steps from NENE to one of the neighbours of SWSW and SWSW itself is further 2/2\sqrt{2}/2 away from it in \nearrow direction, so that Wb2+2/2W \le b\sqrt{2} + \sqrt{2}/2.

If SWSW is even then at least one of vertices NWNW and SESE is odd. In that case for HH we get similar estimation Ha2+2/2H \le a\sqrt{2} + \sqrt{2}/2. But if SWSW is odd then it could happen that both NWNW and SESE are even, in which case we have to do the 2/2\sqrt{2}/2 correction in both ends what gives us the estimation Ha2+2H \le a\sqrt{2} + \sqrt{2}. To summarize, we have two possible cases:
{Wb2Ha2+2or{Wb2+22Ha2+22 \begin{cases} W \le b\sqrt{2} \\ H \le a\sqrt{2} + \sqrt{2} \end{cases} \quad \text{or} \quad \begin{cases} W \le b\sqrt{2} + \frac{\sqrt{2}}{2} \\ H \le a\sqrt{2} + \frac{\sqrt{2}}{2} \end{cases}
We see that in both cases W+Ha2+b2+2W + H \le a\sqrt{2} + b\sqrt{2} + \sqrt{2}.
Now we can plug that into ()(*) to obtain that
S(a+b)22+12. S \le \frac{(a+b)^2}{2} + \frac{1}{2}.
Recall that the perimeter of our nn-gon is 4a+4b4a+4b. It remains to prove that if 4a+4b284a+4b \le 28 then S<PS < P that is (a+b)22+12<4a+4b\frac{(a+b)^2}{2} + \frac{1}{2} < 4a+4b if a+b7a+b \le 7. But this inequality can be rewritten as (a+b)(a+b8)<1(a+b)(a+b-8) < -1 which is obviously true if a+b7a+b \le 7.

Solution 2

The parity arguments in the given solution can be combined: A grid-nn-gon with perimeter nn alternates between horizontal and vertical unit segments, so the number of horizontal segments equals the number of vertical segments. As this common number must be even (#left steps = #right steps, #up steps = #down steps), we have that nn is divisible by 44.

Given the construction for n=32n=32, it remains to be shown that it can't be done for n28n \le 28. Viewing the polygon as a collection of unit squares and turning this into a graph by joining two squares that share an edge, this is a variant of the isoperimetric problem in the grid graph with an additional constraint coming from the prescribed number of polygon vertices. Without this constraint we have the following bound.

Lemma 1: For any polygon PP with axis-parallel sides, vertices in Z2\mathbb{Z}^2, area AA and perimeter uu, we have u2(a+b)u \ge 2(a+b) where
a=max{x(x,y)P}min{x(x,y)P}, and a = \max\{x \mid (x, y) \in P\} - \min\{x \mid (x, y) \in P\}, \text{ and}
b=max{y(x,y)P}min{y(x,y)P}. b = \max\{y \mid (x, y) \in P\} - \min\{y \mid (x, y) \in P\}.
Proof. Without loss of generality we have min{x(x,y)P}=min{y(x,y)P}=0\min\{x \mid (x, y) \in P\} = \min\{y \mid (x, y) \in P\} = 0. The boundary contains at least 2a2a segments of the form ((x,y),(x+1,y))((x, y), (x + 1, y)) and at least 2b2b segments of the form ((x,y),(x,y+1))((x, y), (x, y + 1)). \square

This bound itself is not good enough to rule out all relevant values for nn, but we can add the following. In the nn-gon with area nn and perimeter nn, consider the unit squares that are furthest north, east, west and south. Since horizontal and vertical segments on the boundary of the polygon alternate, these are four distinct squares, and they correspond to vertices of degree 11 in the corresponding subgraph of the grid. Deleting these four squares, we obtain an nn'-gon with area n4n-4, perimeter n8n-8 and nn16n' \ge n-16. Now Lemma 1 rules out n{4,8,12,16,20,24}n \in \{4, 8, 12, 16, 20, 24\} immediately. For instance for n=24n=24, we need area 2020 and perimeter 1616, but Lemma 1 provides a lower bound of 1818 for the perimeter. For n=28n=28, the reduced polygon has area 2424 and perimeter 2020. This can be achieved, but only with a 6×46 \times 4-rectangle or a 5×55 \times 5-square with a corner unit square removed while we would need at least 1212 vertices.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.