Determine the largest natural number $ N $ having the following property: every $ 5\times 5 $ array consisting of pairwise distinct natural numbers from $ 1 $ to $ 25 $ contains a $ 2\times 2 $ subarray of numbers whose sum is, at least, $ N. $ Demetres Christofides and Silouan Brazitikos
Problem
Source: BMO 2019, Shortlist
Tags: linear algebra, matrix, Balkan, number theory
01.10.2019 16:04
Ahhh, theoretically it is not allowed for this problem to be posted. HOWEVER, at the IMO, the italians gave out a small book with their competitions, olympiads from 2019, in which this problem appeared as a TST one, so I think moderators should not delete this post to give a clear message that this problem is leaked and no one uses it.
02.10.2019 06:04
Equivalently, over all $5 \times 5$ matrices with distinct entries from $1$ to $25$, we wish to find the minimum possible value of the maximum sum of the values of any $2 \times 2$ subarray of the $5 \times 5$ matrix. The answer is $\boxed{45}$. First, we will show that anything $\le 44$ is unattainable. Let our matrix (call it $M$) be: $$\begin{bmatrix} a & b & c & d & e \\ f & g & h & i & j \\ k & l & m & n & o \\ p & q & r & s & t \\ u & v & w & x & y \end{bmatrix}$$ where $a, b, c, d, \cdots, y$ are $1$ to $25$ in some order. Let $z$ be the maximum sum of any $2 \times 2$ subarray of $M.$ Observe from the definition of $z$ that: $$(a+b+f+g)+(d+e+i+j)+(s+t+x+y)+(p+q+u+v) \le 4z, \qquad (1)$$ and $$(b+c+h+g)+(c+d+i+h)+(i+j+o+n)+(n+o+t+s)+(r+s+x+w)+(q+r+w+v)+(k+l+q+p)+(f+g+l+k)+(g+h+l+m)+(h+i+m+n)+(m+n+s+r)+(l+m+r+q) \le 12z. \qquad(2)$$ By $3 \cdot (1) + (2),$ we obtain that: $$24z \ge 4(a + b + c + \cdots + y) - 2(c+o+w+k) - (a+e+y+u) +2(g+i+s+q), \qquad (3)$$ which yields that: $$24z \ge 4 \cdot 325 - 2(22 + 23 + 24 + 25) - (18 + 19 + 20 + 21) + 2(1 + 2 + 3 + 4). \qquad (4) $$ This implies that $24z \ge 24 \cdot 44 - 2.$ So we've shown that $z \ge 44$, but we haven't yet shown that $z > 44.$ So let's now investigate what must be true when $z = 44.$ Call the $2 \times 2$ subarrays of $M$ which have sum less than $44$ suboptimal. First of all, it's easy to see that at most two $2 \times 2$ subarrays of $M$ can be suboptimal, as otherwise we can strengthen the LHS of $(4)$ to $24z - 3$ and it would no longer hold. Hence, it's now easily seen that there exists a $3 \times 3$ "corner" of $M$ with no suboptimal $2 \times 2$ subarrays. WLOG, the top-left corner of $M$ has no suboptimal $2 \times 2$ subarray (else just rotate the array). Then, we know that $a+b+g+f = b+c+h+g = g+h+m+l = f+g+l+k = 44.$ This implies that $a+m = c+k$. We will show that $a+m = c+k$ is actually inconsistent with the results we have thus obtained. Indeed, we know from $(3)$ and $(4)$ that: $$24z \ge 4(a + b + c + \cdots + y) - 2(c+o+w+k) - (a+e+y+u) +2(g+i+s+q) \ge 4 \cdot 325 - 2(22 + 23 + 24 + 25) - (18 + 19 + 20 + 21) + 2(1+2+3+4) = 24z - 2. \qquad (5)$$ This yields that: $$2(22+23+24+25 - c - o - w - k) + (18 + 19 + 20 + 21 - a - e - y - u) + 2(g+i+s+q - 1 - 2 - 3 - 4) \le 2. \qquad (6)$$ Now, $(6)$ is easily seen to imply that $\{c, o, w, k\} = \{22, 23, 24, 25\}$ or $\{21, 23, 24, 25\}.$ Hence, it's clear that $c+k \ge 21 + 23$ while $a \le 22.$ From $a+m = c+k$, we get that $m = c+k - a \ge 21+23 - 22 = 22.$ Since $\{23, 24, 25\} \subseteq \{c, k, w, o\}$, we have that $m \notin \{23, 24, 25\}$. Hence, this implies that $m = 22.$ However, this means that equality must hold for both of the inequalities $c+k \ge 21 + 23$ and $a \le 22$, which implies that $a = 22.$ But then $a = m = 22$, which is absurd. From the above logic, we conclude that $z = 44$ is unattainable, and so we've shown that $z \ge 45.$ Muriatic the Builder will now construct an example which shows that $z \le 45$:
02.10.2019 06:04
\[ \begin{bmatrix} 23 & 13 & 19 & 12 & 24 \\ 7 & 2 & 9 & 4 & 5 \\ 18 & 16 & 17 & 15 & 21 \\ 8 & 1 & 10 & 3 & 6 \\ 22 & 14 & 20 & 11 & 25 \end{bmatrix} \]
02.01.2020 20:00
kingofgeedorah wrote: Huh where'd posts #3-9 go Good question. Can anyone resolve the mystery of the missing posts?
15.11.2020 06:56
The answer is $\boxed{45}$. Firstly, we will prove that among any $5 \times 5$ matrix with distinct naturals in its cells must have a $2 \times 2$ which sum is at least $45$ (say the maximum $2 \times 2$ subarray sum of a $5 \times 5$ matrix to be $z$), implying $z \geq 45$ and we will prove that $z \leq 45$ by directly providing a construction of which any $2 \times 2$ subarray has sum at most $45$. $\textcolor{green}{\textbf{\text{Introduction}.}}$ For notational convenience, we construct the $5 \times 5$ by the $12$ lines $x = i (0 \leq i \leq 5)$ and $y = j (0 \leq j \leq 5)$, we define the $i^{th}$ cell as usual, and we define the centers of each $2 \times 2$ by its location in the two of the twelve lines. For example, the $2 \times 2$ subarray with center $(3,2)$ covers the $13^{th}, 14^{th}, 18^{th}$ and $19^{th}$ cells. Then, by $\textit{toggling}$ the centers $(i_1,j_1), \ldots (i_k, j_k)$ we mean summing all cells (counting multiplicity) of the cells of the subarrays with those centers. $\textcolor{blue}{\textbf{\text{Part 1}.}}$ First, we toggle the subarrays $(1,4), (2,4), (4,4), (1,3), (2,3), (4,3), (1,1), (2,1),$ and $(4,1).$ Then, the multiplicity of each cell is illustrated as in: $$\begin{bmatrix} 1 & 1 & 1 & \textcolor{blue}{2} & 1 \\ 1 & 1 & 1 & \textcolor{blue}{2} & 1 \\ 1 & 1 & 1 & \textcolor{blue}{2} & 1 \\ \textcolor{blue}{2} & \textcolor{blue}{2} & \textcolor{blue}{2} & \textcolor{green}{4} & \textcolor{blue}{2} \\ 1 & 1 & 1 & \textcolor{blue}{2} & 1 \end{bmatrix}$$So, we obtain that by substracting by $1+2+\ldots+25 = \text{sum of all 25 cells}$, we get that the sum of the numbers in the fourth column + fourth row + $19^{th}$ cell is at most $9 \cdot 44 - 325 = 71$. Repeating symmetrically (i.e. rotating our procedure with $90^{\circ}$, $180^{\circ}$ and $270^{\circ})$, we get the expression \[ 2 \cdot (2^{nd} \text{row} + 4^{th} \text{row} + 2^{nd} \text{column} + 4^{th} \text{column}) + 7^{th} \text{cell} + 9^{th} \text{cell} + {17}^{th} \text{cell} + {19}^{th} \text{cell} \leq 4 \cdot 71 = 284 \]which is impossible, as the sum is at least $2 \cdot (1+2+\ldots+16+1+2+3+4)+ 1+2+3+4 = 302$ (the extra $1,2,3,4$ is due to those numbers belonging to both to the $2^{nd}$ row and column, etc). $\textcolor{blue}{\textbf{\text{Part 2}.}}$ We provide two different constructions (a third construction can be found on post $\#11$.) \[ \begin{bmatrix} 17 & 10 & 20 & 7 & 23 \\ 16 & 1 & 14 & 3 & 12 \\ 18 & 9 & 21 & 6 & 24 \\ 15 & 2 & 13 & 4 & 11 \\ 19 & 8 & 22 & 5 & 25 \\ \end{bmatrix} \begin{array}{c} \mid \\ \mid \\ \mid \\ \mid \\ \mid \\ \mid \\ \mid \end{array} \begin{array}{cccc} 44 & 45 & 44 & 45 \\ 44 & 45 & 44 & 45 \\ 44 & 45 & 44 & 45 \\ 44 & 45 & 44 & 45 \\ \end{array} \]\[ \begin{bmatrix} 25 & 11 & 19 & 13 & 23 \\ 7 & 2 & 9 & 4 & 5 \\ 18 & 16 & 17 & 15 & 21 \\ 8 & 1 & 10 & 3 & 6 \\ 22 & 14 & 20 & 12 & 24 \\ \end{bmatrix} \begin{array}{c} \mid \\ \mid \\ \mid \\ \mid \\ \mid \\ \mid \\ \mid \end{array} \begin{array}{cccc} 45 & 41 & 45 & 45 \\ 43 & 44 & 45 & 45 \\ 44 & 44 & 45 & 45 \\ 45 & 45 & 45 & 45 \\ \end{array} \]where the array on the right represents each of the sums in the $4^2$ $2 \times 2$ subarrays.
03.07.2021 17:11
The problem proposed by Demetres Christofides (Cyprus) and me
24.12.2021 23:05
Balkan mo shortlist.