1996 IMO Problems/Problem 1

Revision as of 23:37, 20 November 2023 by Tomasdiaz (talk | contribs)

Problem

We are given a positive integer $r$ and a rectangular board $ABCD$ with dimensions $|AB|=20$, $|BC|=12$. The rectangle is divided into a grid of $20 \times 12$ unit squares. The following moves are permitted on the board: one can move from one square to another only if the distance between the centers of the two squares is $\sqrt{r}$. The task is to find a sequence of moves leading from the square with $A$ as a vertex to the square with $B$ as a vertex.

(a) Show that the task cannot be done if $r$ is divisible by $2$ or $3$.

(b) Prove that the task is possible when $r=73$.

(c) Can the task be done when $r=97$?

Solution

First we define the rectangular board in the cartesian plane with centers of the unit squares as integer coordinates and the following coordinates for the squares at the corners of $A$, $B$, $C$, $D$, as follows: $A=(1,1)$, $B=(20,1)$, $C=(20,12)$, $D=(1,12)$

Let $(x_i,y_i)$ be the coordinates of the piece after move $i$ with $(x_0,y_0)=A=(1,1)$ the initial position of the piece.

Let $\Delta x_i = x_i-x_{i-1}$, $\Delta y_i = y_i-y_{i-1}$

Then, for any given $r$, we have $(\Delta x_i)^2+(\Delta y_i)^2=\left( \sqrt{r} \right)^2=r$ for all $i$


part (a):

In order to find out the conditions for which $r$ is divisible by two we are going to look at the following three cases:

(1) When both $\Delta x_i$ and $\Delta y_i$ are divisible by $2$.

(2) When both $\Delta x_i$ and $\Delta y_i$ are odd.

(3) When one of $\Delta x_i$ and $\Delta y_i$ is even and the other one is odd.

Case (1): Since $\Delta x_i \equiv 0\;(mod \; 2)$ and $\Delta y_i \equiv 0\;(mod \; 2)$,

then $(\Delta x_i)^2+(\Delta y_i)^2 \equiv (0^2+0^2)\;(mod \; 2)\equiv 0\;(mod \; 2)$.

Thus, for $r\equiv 0\;(mod \; 2)$, this case is a valid one.

Case (2): Since $\Delta x_i \equiv 1\;(mod \; 2)$ and $\Delta y_i \equiv 1\;(mod \; 2)$,

then $(\Delta x_i)^2+(\Delta y_i)^2 \equiv (1^2+1^2)\;(mod \; 2)\equiv 0\;(mod \; 2)$.

Thus, for $r\equiv 0\;(mod \; 2)$, this case is a valid one.

Case (3): Since $\Delta x_i \equiv 1\;(mod \; 2)$ and $\Delta y_i \equiv 0\;(mod \; 2)$, or $\Delta x_i \equiv 0\;(mod \; 2)$ and $\Delta y_i \equiv 1\;(mod \; 2)$,

then $(\Delta x_i)^2+(\Delta y_i)^2 \equiv (1^2+0^2)\;(mod \; 2)\equiv 1\;(mod \; 2)\not\equiv 0\;(mod \; 2)$.

Thus, for $r\equiv 0\;(mod \; 2)$, this case is NOT a valid one.

Having proved that Case (1) and Case (2) are the only valid cases for $r\equiv 0\;(mod \; 2)$ we are going to see what happens for both cases when we start with a square where both coordinates are odd:

if $(x_{i-1},y_{i-1}) \equiv (1,1) \;(mod \; 2)$,

then for case (1): $(x_{i-1}+\Delta x_i,y_{i-1}+\Delta y_i) \equiv (1+0,1+0)  \;(mod \; 2) \equiv (1,1) \;(mod \; 2)$

and for case (2): $(x_{i-1}+\Delta x_i,y_{i-1}+\Delta y_i) \equiv (1+1,1+1)  \;(mod \; 2) \equiv (0,0) \;(mod \; 2)$

and $(x_{i-1}+2\Delta x_i,y_{i-1}+2\Delta y_i) \equiv (1+2,1+2)  \;(mod \; 2) \equiv (1,1) \;(mod \; 2)$

This means that when $r$ is divisible by two, when starting at $(1,1)$ no matter how many moves you make all $(x_{i},y_{i})$ will either be $\equiv (0,0) \;(mod \; 2)$ or $\equiv (1,1) \;(mod \; 2)$.

Since the ending coordinate is $(20,1) \equiv (0,1) \;(mod \; 2) \not\equiv (1,1) \;(mod \; 2)$ and $\not\equiv (0,0) \;(mod \; 2)$, then the task cannot be done if $r$ is divisible by $2$.


Now we look at the conditions for which $r$ is divisible by three by looking at the following three cases:

(4) When both $\Delta x_i$ and $\Delta y_i$ are divisible by $3$.

(5) When one of them is not divisible by $3$ and the other one is.

(6) When neither $\Delta x_i$ nor $\Delta y_i$ is divisible by $3$.

Case (4): Since $\Delta x_i \equiv 0\;(mod \; 3)$ and $\Delta y_i \equiv 0\;(mod \; 3)$,

then $(\Delta x_i)^2+(\Delta y_i)^2 \equiv (0^2+0^2)\;(mod \; 3)\equiv 0\;(mod \; 3)$.

Thus, for $r\equiv 0\;(mod \; 3)$, this case is a valid one.

Case (5): Since either $\Delta x_i$ or $\Delta y_i \equiv \pm 1\;(mod \; 3)$ and the other $\equiv 1\;(mod \; 3)$,

then $(\Delta x_i)^2+(\Delta y_i)^2 \equiv ((\pm 1)^2+0^2)\;(mod \; 3)\equiv 1\;(mod \; 3)$.

Thus, for $r\equiv 0\;(mod \; 3)$, this case is NOT a valid one.

Case (6): Since $\Delta x_i \equiv \pm 1\;(mod \; 3)$ and $\Delta y_i \equiv \pm1 \;(mod \; 3)$,

then $(\Delta x_i)^2+(\Delta y_i)^2 \equiv ((\pm 1)^2+(\pm 1)^2)\;(mod \; 3)\equiv 2\;(mod \; 3)\not\equiv 0\;(mod \; 3)$.

Thus, for $r\equiv 0\;(mod \; 3)$, this case is NOT a valid one.

Having proved that Case (4) is the only valid case for $r\equiv 0\;(mod \; 3)$ we are going to see what happens when we start with a square that is $\equiv (1,1)\;(mod \; 3)$

if $(x_{i-1},y_{i-1}) \equiv (1,1) \;(mod \; 3)$, then $(x_{i-1}+\Delta x_i ,y_{i-1}+\Delta y_i) \equiv (1+0,1+0) \;(mod \; 3) \equiv (1,1) \;(mod \; 3)$.

Therefore starting at any $(x_{i-1},y_{i-1}) \equiv (1,1) \;(mod \; 3)$ no matter how many moves the piece will always land at another square $\equiv (1,1) \;(mod \; 3)$. Since we start at $(1,1)$, then the piece will always land at squares that are $\equiv (1,1) \;(mod \; 3)$.

Since final square is $(20,1) \equiv (2,1) \;(mod \; 3) \not\equiv (1,1) \;(mod \; 3)$, then the task cannot be done if $r$ is divisible by $3$.


part (b):

When $r=73$ we have $8^2+3^2=73$

Therefore the moves can have the following values:

\[(\Delta x_i, \Delta y_i)=\begin{cases} (\pm 8,\pm 3) \\ (\pm 8,\mp 3) \\ (\pm 3,\pm 8) \\ (\pm 3,\mp 8) \end{cases}\]

Since we start at $(1,1)$ and we want to end at $(20,1)$ we can write the following $11$ valid moves:

\[\begin{matrix} (1,1)&+&(3,8)&=&(4,9)\\ (4,9)&+&(8,-3)&=&(12,6)\\ (12,6)&+&(8,-3)&=&(20,3)\\ (20,3)&+&(-3,8)&=&(17,11)\\ (17,11)&+&(-8,-3)&=&(9,8)\\ (9,8)&+&(-8,-3)&=&(1,5)\\ (1,5)&+&(8,-3)&=&(9,2)\\ (9,2)&+&(3,8)&=&(12,10)\\ (12,10)&+&(-8,-3)&=&(4,7)\\ (4,7)&+&(8,-3)&=&(12,4)\\ (12,4)&+&(8,-3)&=&(20,1)\\ \end{matrix}\]

Having shown that all moves comply with the possible values for $(\Delta x_i, \Delta y_i)$ and that all $(x_i, y_i)$ are inside the rectangular grid, then the task is possible when $r=73$.


part (c):

When $r=97$ we have $9^2+4^2=97$

Therefore the moves can have the following values:

\[(\Delta x_i, \Delta y_i)=\begin{cases} (\pm 9,\pm 4) \\ (\pm 9,\mp 4) \\ (\pm 4,\pm 9) \\ (\pm 4,\mp 9) \end{cases}\]

Let $S$ be a set of the squares of the rectangle with the condition $x_i \equiv \left\lceil \frac{y_i}{4} \right\rceil  \;(mod \; 2)$ for $(x_i,y_i)$. That is, the reminder of $x_i$ when divided by 2 is the same as the reminder of $\left\lceil \frac{y_i}{4} \right\rceil$ when divided by 2. If that condition is true, then $(x_i,y_i) \in S$


Alternate solutions are always welcome. If you have a different, elegant solution to this problem, please add it to this page.

See Also

1996 IMO (Problems) • Resources
Preceded by
First Problem
1 2 3 4 5 6 Followed by
Problem 2
All IMO Problems and Solutions