Maths Olympiad Prep

Library / /127 of 129

, 2012

Combinatorics Difficulty 7.0 National Olympiad, round 2 Prove it Slovenia

Lara and Sara will draw nn straight lines on a rectangular sheet of paper, one after the other, in turn, and one line each time. Every line will be parallel to one of the edges of the sheet and will go from edge to edge. No line will coincide with an edge or an already drawn line. At the end, the sheet of paper will be divided into several rectangles. If the number of these rectangles will be odd, the winner will be Laura, and if it will be even, the winner will be Sara. Determine the winner depending on nn and the person who starts drawing a line.

Solution

If nn is odd, the winner is Sara, no matter who starts. If nn is even, the winner is the one who does not start. Suppose at the end there are pp vertical and rr horizontal lines on the sheet of paper, where p+r=np + r = n. Then the sheet of paper is divided into (p+1)(r+1)(p+1)(r+1) rectangles. If nn is odd, one of the numbers pp and rr is odd, hence (p+1)(r+1)(p+1)(r+1) is even. In this case, Sara is the winner, no matter who starts and how they play the game.

Now suppose nn is even. Suppose after n1n-1 steps there are ss vertical and tt horizontal lines on the sheet of paper, where s+t=n1s + t = n - 1. Since n1n-1 is odd, numbers ss and tt must have different parities. After the last line is drawn, the sheet of paper is divided into (s+1)t(s+1)t or s(t+1)s(t+1) rectangles. Because ss and tt have different parities, the numbers (s+1)t=st+t(s+1)t = st+t and s(t+1)=st+ss(t+1) = st+s have different parities as well. The one who makes the last move may thus decide whether the final number of rectangles is odd or even. This player can win, no matter how the game has been played before. Since nn is even, the winner is the one who makes the last move, this is the one who does not start the game.

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 reproduced verbatim; metadata (topic, difficulty) added by this project.