There is an chessboard where is a positive even number. The cells of the chessboard are coloured black and white such that adjacent cells sharing a common side have different colours. Let and be two interior cells (which means cells not lying on an edge of the chessboard) of distinct colours. Prove that a chess piece can move from to by moving across adjacent cells such that every cell of the chessboard is passed through exactly once.
, 2021
Solution
For convenience, suppose all cells are unit squares. We first prove two claims.
Claim 1. For any rectangular chessboard, a chess piece can move from one corner to the opposite corner by visiting every cell exactly once if at least one side has an odd length.
Claim 2. For any rectangular chessboard, a chess piece can move from one corner to an adjacent corner by visiting every cell exactly once if the side containing the two corners has an even length.
These can be easily proved by considering a snake-shaped path as shown. The assumptions in the claims are sufficient by checking the parity.

Now, we provide a construction of a path from to . Since and have distinct colours, the side lengths of the rectangular chessboard with and as opposite corners must have different parities. WLOG, assume the vertical side has an odd length and the horizontal side has an even length. Since the whole chessboard has an even length, we may assume there is an even number of rows above . Partition the chessboard as shown below (the left figure).
even
* Firstly, the chess piece moves from upwards until it reaches the top edge.
* Then it enters the top-left rectangle and moves from corner to corner (by claim 1, since the vertical side has an odd length).
* Next, it enters the bottom rectangle and moves from corner to corner (by claim 2, since the horizontal side has an even length).
* Afterwards, it enters the top right rectangle and moves from corner to corner (by claim 1, since the vertical side has an odd length).
Then it enters the top rectangle and moves from corner I* to corner J (by claim 1, since the horizontal side has an odd length).
Lastly, it goes back to the rectangle with A* and B as opposite corners and moves to B (by claim 1, since the vertical size has an odd length).
An example is given above (the right figure).