Maths Olympiad Prep

Library / /27 of 39

, 2012

Combinatorics Difficulty 6.3 National olympiad Prove it Belarus

Exactly one integer stands in each cell of an m×nm \times n table (m4,n4m \ge 4, n \ge 4). The number in any cell is equal to the arithmetic mean of the numbers in some two neighboring cells (i.e. in the cells having the common side with the given cell).
Find the greatest possible number of all distinct integers in this table.

Solution

**Answer: mn6mn-6.**
Let AA be the maximal number in the table and aa be the minimal number. Consider any cell kk of the table where AA stands. Since AA is the arithmetic mean of the number in some two neighboring cells k1k_1 and k2k_2. But all numbers in the table are no greater than AA, the numbers in k1k_1 and k2k_2 are equal to AA. Since k1k_1 and k2k_2 have the common sides with kk, they have no common side, so they are not neighbors. Since AA stands in k1k_1, number AA must stand in two cells having the common sides with k1k_1. One of them is cell kk and the other cell is different from k2k_2 (k1k_1 and k2k_2 are not neighbors). It follows that AA stands in at least 4 different cells.

Similarly, aa stands in at least 4 different cells.

Thus, the maximal and minimal numbers stand in at least 8 different cells of the table. The number of all cells is mnmn, so at most mn8+2=mn6mn - 8 + 2 = mn - 6 different numbers can stand in the table. We construct the example for mn6mn - 6 different numbers.

Figure 1

We mark two 2×22 \times 2 neighboring squares (see the fig.) and join these squares with the line passing through any cell of the table exactly one time as it is shown in the figures depending on the parity of mm and nn. We stand 1 in all cells of the first square and stand mn6mn - 6 in all cells of the second square. We move along the line from the cell with 1 to the cell with mn6mn - 6. We put in each cell of the line the number which is 1 greater than the number in the previous cell. It is easy to see that the obtained table satisfies the condition and has exactly mn6mn - 6 different numbers.

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.