Maths Olympiad Prep

Library / /50 of 55

, 2019

Geometry Difficulty 9.0 Shortlist Prove it IMO

On a flat plane in Camelot, King Arthur builds a labyrinth L\mathfrak{L} consisting of nn walls, each of which is an infinite straight line. No two walls are parallel, and no three walls have a common point. Merlin then paints one side of each wall entirely red and the other side entirely blue.
At the intersection of two walls there are four corners: two diagonally opposite corners where a red side and a blue side meet, one corner where two red sides meet, and one corner where two blue sides meet. At each such intersection, there is a two-way door connecting the two diagonally opposite corners at which sides of different colours meet.
After Merlin paints the walls, Morgana then places some knights in the labyrinth. The knights can walk through doors, but cannot walk through walls.
Let k(L)k(\mathfrak{L}) be the largest number kk such that, no matter how Merlin paints the labyrinth L\mathfrak{L}, Morgana can always place at least kk knights such that no two of them can ever meet. For each nn, what are all possible values for k(L)k(\mathfrak{L}), where L\mathfrak{L} is a labyrinth with nn walls?

Solutions — 2

Solution 1

First we show by induction that the nn walls divide the plane into (n+12)+1\binom{n+1}{2}+1 regions. The claim is true for n=0n=0 as, when there are no walls, the plane forms a single region. When placing the nth n^{\text {th }} wall, it intersects each of the n1n-1 other walls exactly once and hence splits each of nn of the regions formed by those other walls into two regions. By the induction hypothesis, this yields ((n2)+1)+n=(n+12)+1\left(\binom{n}{2}+1\right)+n=\binom{n+1}{2}+1 regions, proving the claim.

Now let GG be the graph with vertices given by the (n+12)+1\binom{n+1}{2}+1 regions, and with two regions connected by an edge if there is a door between them.

We now show that no matter how Merlin paints the nn walls, Morgana can place at least n+1n+1 knights. No matter how the walls are painted, there are exactly (n2)\binom{n}{2} intersection points, each of which corresponds to a single edge in GG. Consider adding the edges of GG sequentially and note that each edge reduces the number of connected components by at most one. Therefore the number of connected components of GG is at least (n+12)+1(n2)=n+1\binom{n+1}{2}+1-\binom{n}{2}=n+1. If Morgana places a knight in regions corresponding to different connected components of GG, then no two knights can ever meet.

Now we give a construction showing that, no matter what shape the labyrinth is, Merlin can colour it such that there are exactly n+1n+1 connected components, allowing Morgana to place at most n+1n+1 knights.

First, we choose a coordinate system on the labyrinth so that none of the walls run due north-south, or due east-west. We then have Merlin paint the west face of each wall red, and the east face of each wall blue. We label the regions according to how many walls the region is on the east side of: the labels are integers between 0 and nn.

We claim that, for each ii, the regions labelled ii are connected by doors. First, we note that for each ii with 0in0 \leqslant i \leqslant n there is a unique region labelled ii which is unbounded to the north.

Now, consider a knight placed in some region with label ii, and ask them to walk north (moving east or west by following the walls on the northern sides of regions, as needed). This knight will never get stuck: each region is convex, and so, if it is bounded to the north, it has a single northernmost vertex with a door northwards to another region with label ii.

Eventually it will reach a region which is unbounded to the north, which will be the unique such region with label ii. Hence every region with label ii is connected to this particular region, and so all regions with label ii are connected to each other.

As a result, there are exactly n+1n+1 connected components, and Morgana can place at most n+1n+1 knights.

Solution 2

We give another description of a strategy for Merlin to paint the walls so that Morgana can place no more than n+1n+1 knights.

Merlin starts by building a labyrinth of nn walls of his own design. He places walls in turn with increasing positive gradients, placing each so far to the right that all intersection points of previously-placed lines lie to the left of it. He paints each in such a way that blue is on the left and red is on the right.

For example, here is a possible sequence of four such lines 1,2,3,4\ell_{1}, \ell_{2}, \ell_{3}, \ell_{4} :

Figure 1

We say that a region is "on the right" if it has xx-coordinate unbounded above (note that if we only have one wall, then both regions are on the right). We claim inductively that, after placing nn lines, there are n+1n+1 connected components in the resulting labyrinth, each of which contains exactly one region on the right. This is certainly true after placing 0 lines, as then there is only one region (and hence one connected component) and it is on the right.

When placing the nth n^{\text {th }} line, it then cuts every one of the n1n-1 previously placed lines, and since it is to the right of all intersection points, the regions it cuts are exactly the nn regions on the right.

Figure 2

The addition of this line leaves all previous connected components with exactly one region on the right, and creates a new connected component containing exactly one region, and that region is also on the right. As a result, by induction, this particular labyrinth will have n+1n+1 connected components.

Having built this labyrinth, Merlin then moves the walls one-by-one (by a sequence of continuous translations and rotations of lines) into the proper position of the given labyrinth, in such a way that no two lines ever become parallel.

The only time the configuration is changed is when one wall is moved through an intersection point of two others:

Figure 3

Figure 4

Note that all moves really do switch between two configurations like this: all sets of three lines have this colour configuration initially, and the rules on rotations mean they are preserved (in particular, we cannot create three lines creating a triangle with three red edges inwards, or three blue edges inwards).

However, as can be seen, such a move preserves the number of connected components, so in the painting this provides for Arthur's actual labyrinth, Morgana can still only place at most n+1n+1 knights.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

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