Maths Olympiad Prep

Library / /3 of 3

, 2002

Combinatorics Difficulty 7.7 National Olympiad, round 2 Prove it Baltic Way

Problem:

The following solitaire game is played on an m×nm \times n rectangular board, m,n2m, n \geqslant 2, divided into unit squares. First, a rook is placed on some square. At each move, the rook can be moved an arbitrary number of squares horizontally or vertically, with the extra condition that each move has to be made in the 9090^{\circ} clockwise direction compared to the previous one (e.g. after through a move to the left, the next one has to be done upwards, the next one to the right etc). For which values of mm and nn is it possible that the rook visits every square of the board exactly once and returns to the first square? (The rook is considered to visit only those squares it stops on, and not the ones it steps over.)

Solution

Solution:

First, consider any row that is not the row where the rook starts from. The rook has to visit all the squares of that row exactly once, and on its tour around the board, every time it visits this row, exactly two squares get visited. Hence, mm must be even; a similar argument for the columns shows that nn must also be even.

It remains to prove that for any even mm and nn such a tour is possible. We will show it by an inductionlike argument. Labelling the squares with pairs of integers (i,j)(i, j), where 1im1 \leqslant i \leqslant m and 1jn1 \leqslant j \leqslant n, we start moving from the square (m/2+1,1)(m / 2+1,1) and first cover all the squares of the top and bottom rows in the order shown in the figure below, except for the squares (m/21,n)(m / 2-1, n) and (m/2+1,n)(m / 2+1, n); note that we finish on the square (m/21,1)(m / 2-1,1).

Figure 1

The next square to visit will be (m/21,n1)(m / 2-1, n-1) and now we will cover the rows numbered 2 and n1n-1, except for the two middle squares in row 2. Continuing in this way we can visit all the squares except for the two middle squares in every second row (note that here we need the assumption that mm and nn are even):

3784
151911201612
23272824
353931403632
34383733
222630212925
14181713
2610195

The rest of the squares can be visited easily:
37474884
151911201612
232743442824
353931403632
343842413733
222630212925
141846451713
2610195

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.