Skip to main content
OlympiadHQ

Browse · MathNet

Print

Baltic Way 2023 Shortlist

Baltic Way 2023 geometry

Problem

Find the least positive integer for which it is possible to draw an -gon along the lines of a square grid, whose perimeter is and whose area is . Here the boundary of the -gon may not visit any point more than once.
Solution
Answer: . We start by showing that such a -gon exists. It remains to prove that this is indeed the smallest possible . We will do that by proving that for all the area of an -gon with perimeter is smaller than .

At first we note that if and only if all sides of the -gon are of length . From this it follows that should be an even number as there should be an even number of horizontal and an even number of vertical sides. Denote and the vertices of the -gon as . We call a vertex odd (even) if its index is odd (even).

Now we can consider the sides of the -gon in pairs. Let vertex be located at the point . Vertex is then located at . It means that by moving from to (we count vertices modulo ) we have moved by a unit vector in the “diagonal” coordinate system with unit vectors and . We denote these steps and , respectively.

Let's start at the vertex and travel around the -gon in steps by stopping at all odd vertices . Denote the total number of steps as and the total number of steps as (both of them must be even numbers). Therefore and , hence is divisible by . It means that we have to prove that for all .

Let's consider the most “northeastern”, “northwestern”, “southeastern” and “southwestern” vertices of our -gon, denote them respectively (see figure). W.l.o.g. assume that and at least one more of them are odd. Our -gon is contained in a rectangle whose sides are parallel to vectors and and pass through these four vertices. Denote its width and height as and . Our -gon's area is no larger than where 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: therefore the area of the -gon is no larger than . By using the inequality we can transform it into Recall that the vertex is odd. Assume at first that also is odd. Then as travelling from to uses at most steps, then we conclude that . If the vertex is even, then the estimation is slightly worse: we can travel in at most steps from to one of the neighbours of and itself is further away from it in direction, so that .

If is even then at least one of vertices and is odd. In that case for we get similar estimation . But if is odd then it could happen that both and are even, in which case we have to do the correction in both ends what gives us the estimation . To summarize, we have two possible cases: We see that in both cases . Now we can plug that into to obtain that Recall that the perimeter of our -gon is . It remains to prove that if then that is if . But this inequality can be rewritten as which is obviously true if .

---

Alternative solution.

The parity arguments in the given solution can be combined: A grid--gon with perimeter 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 is divisible by .

Given the construction for , it remains to be shown that it can't be done for . 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 with axis-parallel sides, vertices in , area and perimeter , we have where Proof. Without loss of generality we have . The boundary contains at least segments of the form and at least segments of the form .

This bound itself is not good enough to rule out all relevant values for , but we can add the following. In the -gon with area and perimeter , 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 in the corresponding subgraph of the grid. Deleting these four squares, we obtain an -gon with area , perimeter and . Now Lemma 1 rules out immediately. For instance for , we need area and perimeter , but Lemma 1 provides a lower bound of for the perimeter. For , the reduced polygon has area and perimeter . This can be achieved, but only with a -rectangle or a -square with a corner unit square removed while we would need at least vertices.
Final answer
32

Techniques

Cartesian coordinatesVectorsOptimization in geometryDistance chasingInvariants / monovariants