Skip to main content
OlympiadHQ

Browse · MathNet

Print

Team selection tests for GMO 2018

Saudi Arabia 2018 counting and probability

Problem

In each of the cells of a board is written an integer such that the integers in adjacent cells differ by . If there are two s and two s on this board, how many s 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 , the distance between adjacent cells is and the largest distance on the board (that between two opposite corners) is . 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 where . Let us also denote the number on the cell by . Thus the inequality mentioned above is expressed as Now there must be a distance of at least between a and a and this places a strong restriction on the possible locations of s and s. Namely, if then we have This roughly means that s and s 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 with and . Now, implies that , that is, both of the s must be near the opposite corner. Hence thus , that is, both of the s must be near the same corner.

If there exists a cell with and , then then , so . Thus there cannot be two distinct s on the board. We therefore conclude that Similarly, If , then and , thus there cannot be two s on the board. We therefore conclude that and similarly Now, if we consider a path (a sequence of adjacent cells) of length between the cells and or between the cells and , we see that the numbers on the cells on this path are uniquely determined. Since any cell of the board except and can be placed on such a path, almost the whole board is uniquely determined. We obtain the following formula: Furthermore, and , therefore . Hence there are exactly thirteen s on the board.
Final answer
13

Techniques

Invariants / monovariantsColoring schemes, extremal argumentsCartesian coordinates