Olympiad Maths Prep

Track / Stage 8 / 80 of 180 #1780 of 2000

Problem 1780

IMO Shortlist mid-range; USAMO P2/P5
Combinatorics Difficulty 8.3 Prove it BMO 2022 shortlist · Balkan Mathematical Olympiad · 2022

Alice is drawing a shape on a piece of paper. She starts by placing her pencil at the origin, and then draws line segments of length 11, alternating between vertical and horizontal segments. Eventually, her pencil returns to the origin, forming a closed, non-self-intersecting shape. Show that the area of this shape is even if and only if its perimeter is a multiple of eight.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solutions — 3

Solution 1

Colour the horizontal segments in every other line of the grid alternately red and blue as shown below:

Figure 1

Let there be rr red segments on the perimeter and ss red segments in the interior of the shape. By considering the possibilities starting from a red segment, we see that every fourth segment on the perimeter of the shape will be red, therefore we have P=4rP = 4r. Also, every square has exactly one red edge, thus A=r+2sA = r + 2s. So Ar(mod2)A \equiv r \pmod{2} from which the result follows.

Solution 2

Colour the square in the grid with a chessboard colouring. The alternation of vertical and horizontal segments means that all squares with an edge on the perimeter and lying within the shape are of the same colour, say black.

Figure 2

Any internal edge within the shape lies between a white and black square, so if the number of white squares within the shape is WW, the number of edges of the chessboard lying inside the shape is 4W4W. If the total number of squares in the shape is AA, then 4A4A counts every edge on the perimeter once, and every internal edge twice, so the perimeter has length P=4A8WP = 4A - 8W, which is a multiple of 88 if and only if AA is even.

Solution 3

We have as many horizontal perimeter edges as vertical, so it is enough to show that the area is even if and only if the number of vertical perimeter edges is a multiple of 44. In each horizontal strip of height 11, pair the vertical perimeter edges in order from left to right. (We can do so because there must be an even number of vertical perimeter edges in every such strip.) Let us assume that we have PP such pairs. So we need to show that the area is even if and only if PP is even.

As in Solution 2, every such pair of perimeter edges encloses a consecutive set of squares of the shape with the first and last of these squares being, without loss of generality, black. So each such pair accounts for an odd number of squares inside the shape and therefore the area is even if and only if PP is even as required.

By Green's Theorem the area of the shape is equal to
Cxdy \int_C x\,dy
where CC is the boundary of the shape traversed anticlockwise. We partition CC into its line segments of length 11. Each line segment contributes 00 to the integral if it is horizontal and ±a\pm a to the integral if it is on the vertical line x=ax = a. Every two consecutive vertical line segments contribute ±a±(a±1)1(mod2)\pm a \pm (a \pm 1) \equiv 1 \pmod{2}.

So the area is even if and only if the number of vertical line segments is 0(mod4)0 \pmod{4} which happens if and only if the perimeter is 0(mod8)0 \pmod{8}. (Since there is an equal even number of horizontal and vertical line segments.)

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