MathDB
Mice Moving on a Board

Source: 2012 IrMO Paper 2 Problem 5

February 16, 2018
combinatorics

Problem Statement

Let nn be a positive integer. A mouse sits at each corner point of an n×nn\times n board, which is divided into unit squares as shown below for the example n=5n=5.
[asy] unitsize(5mm); defaultpen(linewidth(.5pt)); fontsize(25pt); for(int i=0; i<=5; ++i) { for(int j=0; j<=5; ++j) { draw((0,i)--(5,i)); draw((j,0)--(j,5)); }} dot((0,0)); dot((5,0)); dot((0,5)); dot((5,5));
[/asy]
The mice then move according to a sequence of steps, in the following manner:
(a) In each step, each of the four mice travels a distance of one unit in a horizontal or vertical direction. Each unit distance is called an edge of the board, and we say that each mouse uses an edge of the board.
(b) An edge of the board may not be used twice in the same direction.
(c) At most two mice may occupy the same point on the board at any time.
The mice wish to collectively organize their movements so that each edge of the board will be used twice (not necessarily be the same mouse), and each mouse will finish up at its starting point. Determine, with proof, the values of nn for which the mice may achieve this goal.