Maths Olympiad Prep

Library / /3 of 7

, 2018

Combinatorics Difficulty 7.9 National olympiad, round 2 Prove it Saudi Arabia

In each of the cells of a 13×1313 \times 13 board is written an integer such that the integers in adjacent cells differ by 11. If there are two 22s and two 2424s on this board, how many 1313s can there be?

Solution

Let us define the distance between any two cells of the board to be the minimum number of steps required to get from one of the cells to the other one provided that one moves between adjacent cells in each step. Consequently, the distance of any cell to itself is 00, the distance between adjacent cells is 11 and the largest distance on the 13×1313 \times 13 board (that between two opposite corners) is 2424. It is easy to observe that the numbers written on any two cells cannot differ by more than the distance between the cells.

Let us now assign coordinates to the cells of the board in the usual way: each cell is denoted (i,j)(i, j) where i,j{0,1,,12}i, j \in \{0,1, \ldots, 12\}. Let us also denote the number on the cell (i,j)(i, j) by x(i,j)x_{(i, j)}. Thus the inequality mentioned above is expressed as
x(i1,j1)x(i2,j2)i1i2+j1j2. \left|x_{\left(i_{1}, j_{1}\right)}-x_{\left(i_{2}, j_{2}\right)}\right| \leq \left|i_{1}-i_{2}\right|+\left|j_{1}-j_{2}\right|.
Now there must be a distance of at least 2222 between a 22 and a 2424 and this places a strong restriction on the possible locations of 22s and 2424s. Namely, if x(i,j){2,24}x_{(i, j)} \in \{2, 24\} then we have
min(i,12i)+min(j,12j)2. \min(i, 12-i) + \min(j, 12-j) \leq 2.
This roughly means that 22s and 2424s can be found only very near the corners. Without loss of generality (by symmetry of the board), let us assume that there exists a cell (i,j)(i, j) with x(i,j)=2x_{(i, j)} = 2 and i+j2i + j \leq 2. Now, x(i,j)=24x_{(i, j)} = 24 implies that i+j22i + j \geq 22, that is, both of the 2424s must be near the opposite corner. Hence x(i,j)=2x_{(i, j)} = 2 thus i+j2i + j \leq 2, that is, both of the 22s must be near the same corner.

If there exists a cell (i,j)(i, j) with x(i,j)=2x_{(i, j)} = 2 and i+j=2i + j = 2, then x(i,j)=24x_{(i, j)} = 24 then i+j24i + j \geq 24, so i=j=12i = j = 12. Thus there cannot be two distinct 2424s on the board. We therefore conclude that
x(i,j)=2i+j1(i,j){(0,0),(1,0),(0,1)}. x_{(i, j)} = 2 \Rightarrow i + j \leq 1 \Rightarrow (i, j) \in \{(0,0), (1,0), (0,1)\}.
Similarly,
x(i,j)=24i+j23(i,j){(12,12),(11,12),(12,11)}. x_{(i, j)} = 24 \Rightarrow i + j \geq 23 \Rightarrow (i, j) \in \{(12,12), (11,12), (12,11)\}.
If x(0,0)=2x_{(0,0)} = 2, then x(1,0)2x_{(1,0)} \neq 2 and x(0,1)2x_{(0,1)} \neq 2, thus there cannot be two 22s on the board. We therefore conclude that
x(0,0)2, x(1,0)=x(0,1)=2 x_{(0,0)} \neq 2,\ x_{(1,0)} = x_{(0,1)} = 2
and similarly
x(12,12)24, x(11,12)=x(12,11)=24. x_{(12,12)} \neq 24,\ x_{(11,12)} = x_{(12,11)} = 24.
Now, if we consider a path (a sequence of adjacent cells) of length 2222 between the cells (1,0)(1,0) and (11,12)(11,12) or between the cells (0,1)(0,1) and (12,11)(12,11), we see that the numbers on the cells on this path are uniquely determined. Since any cell of the board except (0,0)(0,0) and (12,12)(12,12) can be placed on such a path, almost the whole board is uniquely determined. We obtain the following formula:
1i+j23x(i,j)=i+j+1 1 \leq i + j \leq 23 \Rightarrow x_{(i, j)} = i + j + 1
Furthermore, x(0,0){1,3}x_{(0,0)} \in \{1,3\} and x(12,12){23,25}x_{(12,12)} \in \{23,25\}, therefore x(i,j)=13i+j=12x_{(i, j)} = 13 \Leftrightarrow i + j = 12. Hence there are exactly thirteen 1313s on the board.

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 and solution reproduced as published; topic and difficulty added by this site.