Maths Olympiad Prep

Library /

, 2011

Combinatorics Difficulty 7.8 National Olympiad, round 2 Prove it Romania

The cells of a square 2011×20112011 \times 2011 array are labelled with the integers 1,2,,201121, 2, \dots, 2011^2, in such a way that every label is used exactly once. We then identify the left-hand and right-hand edges, and then the top and bottom, in the normal way to form a torus (the surface of a doughnut). Determine the largest positive integer MM such that, no matter which labelling we choose, there exist two neighbouring cells with the difference of their labels at least MM.

Cells with coordinates (x,y)(x, y) and (x,y)(x', y') are considered to be neighbours if x=xx = x' and yy±1(mod2011)y - y' \equiv \pm 1 \pmod{2011}, or if y=yy = y' and xx±1(mod2011)x - x' \equiv \pm 1 \pmod{2011}.

Solution

For the toroidal case, it is clear the statement of the problem is referring to the cells of a ZN×ZN\mathbb{Z}_N \times \mathbb{Z}_N lattice on the surface of the torus, labeled with the numbers 1,2,,N21, 2, \dots, N^2, where one has to determine the least possible maximal absolute value MM of the difference of labels assigned to orthogonally adjacent cells.

The toroidal N=2N = 2 case is trivially seen to be M=2M = 2 (thus coinciding with the planar case).

12
34

The unique 2×22 \times 2 toroidal array.

For N3N \ge 3 we will prove that value to be at least M2N1M \ge 2N - 1. Consider such a configuration, and color all cells of the square in white. Go along the cells labeled 1, 2, etc. coloring them in black, stopping just on the cell bearing the least label kk which, after assigned and colored in black, makes that all lines of a same orientation (rows, or columns, or both) contain at least two black cells (that is, before coloring in black the cell labeled kk, at least one row and at least one column contained at most one black cell). Wlog assume this happens for rows. Then at most one row is all black, since if two were then the stopping condition would have been fulfilled before cell labeled kk (if the cell labeled kk were to be on one of these rows, then all rows would have contained at least two black cells before, while if not, then all columns would have contained at least two black cells before).

Now color in red all those black cells adjacent to a white cell. Since each row, except the potential all black one, contained at least two black and one white cell, it will now contain at least two red cells. For the potential all black row, any of the neighbouring rows contains at least one white cell, and so the cell adjacent to it has been colored red. In total we have therefore colored red at least 2(N1)+1=2N12(N-1)+1 = 2N-1 cells.

The least label of the red cells has therefore at most the value k+1(2N1)k + 1 - (2N - 1). When the white cell adjacent to it will eventually be labeled, its label will be at least k+1k+1, therefore their difference is at least (k+1)(k+1(2N1))=2N1(k+1) - (k+1 - (2N-1)) = 2N - 1.

The models are kind of hard to find, due to the fact that the direct proof offers little as to their structure (it is difficult to determine the equality case during the argument involving the inequality with the bound, and then, even this is not sure to be prone to being prolonged to a full labeling of the array).

The weaker fact the value MM is not larger than 2N2N is proved by the general model exhibited below (presented so that partial credits may be awarded).

N+1N+1N+2N+2...2N2N
3N+13N+13N+23N+2...4N4N
............
(21)N+1(2\ell-1)N+1(21)N+2(2\ell-1)N+2...2N2\ell N
............
2kN+12kN+12kN+22kN+2...(2k+1)N(2k+1)N
............
2N+12N+12N+22N+2...3N3N
12...NN

A general model for M=2NM = 2N in a N×NN \times N array.

By examining some small N>2N > 2 cases, one comes up with the idea of spiral models for the true value M=2N1M = 2N - 1. The models presented are for odd NN (since 2011 is odd); similar models exist for even NN (but are less symmetric).

726
315
849

The spiral 3×33 \times 3 array.
231671522
1782614
931513
181041221
2419112025

The spiral 5×55 \times 5 array.
47402916283946
4130177152738
31188261426
1993151325
3220104122437
42332111233645
48433422354449

The spiral 7×77 \times 7 array.
(2n+1)22(2n+1)^2-2(2n+1)29(2n+1)^2-9...n(2n1)+1n(2n-1)+1...(2n+1)210(2n+1)^2-10(2n+1)23(2n+1)^2-3
(2n+1)28(2n+1)^2-8...n(2n1)+2n(2n-1)+2n(2n1)n(2n-1)...(2n+1)211(2n+1)^2-11
.....................
2n22n^2...8262n(n+1)+32n(n+1)+3
2n2+12n^2 + 1......3152n(n1)+22n(n-1)+2
2n2+22n^2+2...104122n(n+1)2n(n+1)
.....................
(2n+1)27(2n+1)^2-7...n(2n+1)n(2n+1)n(2n+1)+2n(2n+1)+2...(2n+1)25(2n+1)^2-5(2n+1)24(2n+1)^2-4
(2n+1)21(2n+1)^2-1(2n+1)26(2n+1)^2-6...n(2n+1)+1n(2n+1)+1...(2n+1)25(2n+1)^2-5(2n+1)2(2n+1)^2

The general spiral N×NN \times N array for N=2n+15N = 2n + 1 \ge 5.

Thus, for N=2011N = 2011, the answer is M=2×20111=4021M = 2 \times 2011 - 1 = 4021.

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 reproduced verbatim; metadata (topic, difficulty) added by this project.