Olympiad Maths Prep

Track / Stage 9 / 48 of 80 #1928 of 2000

Problem 1928

IMO P2/P5; hard shortlist
Combinatorics Difficulty 9.3 Prove it BMO 2010 Shortlist · Balkan Mathematical Olympiad · 2010

Integers are written in the cells of a table 2010×20102010 \times 2010. Adding 11 to all the numbers in a row or in a column is called a *move*. We say that the table is *equilibrium* if one can obtain after finitely many moves a table in which all the numbers are equal.

a) Find the largest positive integer nn, for which there exists an equilibrium table containing the numbers 20,21,,2n2^0, 2^1, \dots, 2^n.

b) For this nn, find the maximal number that may be contained in such a table.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

a) We shall prove that for a table m×mm \times m (m2m \ge 2) the answer is n=2m2n = 2m-2; in particular n=4018n = 4018 for m=2010m = 2010.

Denote by aija_{ij} the number written in the cell (i,j)(i,j) (1i,jm1 \le i,j \le m). Let aa, bb, cc and dd be numbers written in cells, which centers form a rectangle with the sides parallel to those of the table. Note that any move preserves the number ab+cda-b+c-d. Hence for any equilibrium table one has that
aijakj=cik,ajiajk=dik(1) a_{ij} - a_{kj} = c_{ik}, \quad a_{ji} - a_{jk} = d_{ik} \quad (1)
Therefore, such a table is determined by 2m12m-1 arbitrary parameters; for example, the numbers in the first row and the first column. Any such table is equilibrium. Indeed, by moves on the columns we may obtain equal numbers in the first row. It follows from (1) that the numbers in any row are equal. Then by moves on the rows we may achieve all the numbers in the table to be equal. As a consequence, for n=2m2n = 2m-2 we can construct an equilibrium table, containing 2m12m-1 numbers: 20,21,,2n2^0, 2^1, \dots, 2^n.

We shall show that this is the largest integer nn, i.e. the numbers 20,21,,22m12^0, 2^1, \dots, 2^{2m-1} cannot be placed in an equilibrium table m×mm \times m. We shall show a more general statement.

Lemma. The integers b1,,b2mb_1, \dots, b_{2m} (m2m \ge 2) can be placed in a m×mm \times m equilibrium table if and only if there exists pp, 2pm2 \le p \le m, such that after a permutation of these numbers one has that
b1++bp=bm+1++bm+p(2) b_1 + \dots + b_p = b_{m+1} + \dots + b_{m+p} \quad (2)
Proof. Assume that such a location is possible. We shall prove (2) by induction on mm. For m=2m=2 this follows from (1) for p=2p=2.

Suppose that our statement is true for some m12m-1 \ge 2. Consider an equilibrium table m×mm \times m, containing the numbers b1,,b2mb_1, \dots, b_{2m}.

If some row and some column contains each at most one of these numbers, we delete this row and this column and we get an equilibrium table (m1)×(m1)(m-1) \times (m-1), containing at least 2m22m-2 of the bb's. Applying the induction after a permutation of bb's the hypothesis gives (2).

Let some row contain at most one bb, but none of the columns has this property. This means that every column contains exactly two bb's. We delete our row and the column that contains the respective bb if there is such bb, or any column if there is no such bb, and we get an equilibrium table (m1)×(m1)(m-1) \times (m-1), containing 2m22m-2 of the bb's, and then we continue as above.

The situation is the same if some column contains at most one bb, but no rows have this property.

It remains to consider the case, when any row and any column contain exactly two bb's. After permutations of the rows and columns we may assume that (after a permutation of bb's) aii=bia_{ii} = b_i and ai,i+1=bm+ia_{i,i+1} = b_{m+i} for 1ip11 \le i \le p-1, ap1=bm+pa_{p1} = b_{m+p} for some p{2,,m}p \in \{2, \dots, m\}. Then
ai1+a1ia11=bi,ai1+a1,i+1a11=bm+i(1ip1),ap1+a1pa11=bp. a_{i1} + a_{1i} - a_{11} = b_i, \quad a_{i1} + a_{1,i+1} - a_{11} = b_{m+i} \quad (1 \le i \le p-1), \quad a_{p1} + a_{1p} - a_{11} = b_p.
Hence bibm+i=a1ia1,i+1b_i - b_{m+i} = a_{1i} - a_{1,i+1} for 1ip11 \le i \le p-1 and bpbm+p=a1pa11b_p - b_{m+p} = a_{1p} - a_{11}. Summing up these equalities we get that
i=1p(bibm+i)=i=1p1(bibm+i)+(bpbm+p)=i=1p1(a1ia1,i+1)+(a1pa11)=0 \sum_{i=1}^{p} (b_i - b_{m+i}) = \sum_{i=1}^{p-1} (b_i - b_{m+i}) + (b_p - b_{m+p}) = \sum_{i=1}^{p-1} (a_{1i} - a_{1,i+1}) + (a_{1p} - a_{11}) = 0
and (2) is proved.

Conversely, if (2) holds for some p{2,,m}p \in \{2, \dots, m\} (possible not unique), we set aii=bia_{ii} = b_i and ai,i+1=bm+ia_{i,i+1} = b_{m+i} for 1ip11 \le i \le p-1, ap1=bm+pa_{p1} = b_{m+p}. If p<mp < m, we place others bb's by following: ai1=bia_{i1} = b_i, a1,i=bm+ia_{1,i} = b_{m+i} for p+1imp+1 \le i \le m. Using (1) we determine consecutively the missing elements in the first row and the first column a21,a13,a31,,a1pa_{21}, a_{13}, a_{31}, \dots, a_{1p}. It is easy to check that (1) "completes" the table to an equilibrium one. The Lemma is proved. \square

Now suppose that there exists a m×mm \times m equilibrium table containing the numbers 20,21,,22m12^0, 2^1, \dots, 2^{2m-1}. By Lemma it follows that for some 2p2p numbers among them the equality (2) holds. Dividing the both parts of the equality by the least term, we obtain an equality, where one term equals 11 and all others are even, a contradiction.

b) Assume that the m×mm \times m equilibrium table contains the numbers 20,21,,22m1,k2^0, 2^1, \dots, 2^{2m-1}, k. According to Lemma the equality (2) holds for some 2p2p numbers with p{2,,m}p \in \{2, \dots, m\}. By similar to given above reasons one concludes that the number kk must be involved in this equality. Assume that k=b1k = b_1. Then k=(bm+1++bm+p)(b2++bp)k = (b_{m+1} + \dots + b_{m+p}) - (b_2 + \dots + b_p). The maximal value of kk is reach for p=mp=m, and it is equal to
k=(2m1++22m2)(20++2m2)=22m12m+1. k = (2^{m-1} + \dots + 2^{2m-2}) - (2^0 + \dots + 2^{m-2}) = 2^{2m-1} - 2^m + 1.
In particular, for m=2010m=2010 we obtain k=2401922010+1k = 2^{4019} - 2^{2010} + 1. \square

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.