Maths Olympiad Prep

Library / Saudi Arabian Mathematical Competitions /304 of 395

Saudi Arabian Mathematical Competitions, 2012

Algebra Difficulty 6.4 National Olympiad Prove it Saudi Arabia

In an n×nn \times n board, the numbers 00 through n2−1n^2 - 1 are written so that the number in row ii and column jj is equal to
(i−1)+n(j−1) where 1≤i,j≤n. (i-1) + n(j-1) \text{ where } 1 \le i, j \le n.
Suppose we select nn different cells of the board, where no two cells are in the same row or column. Find the maximum possible product of the numbers in the nn cells.

Solution

The answer is n!⋅(n−1)nn! \cdot (n-1)^n. This is achievable by choosing the numbers n−1,2(n−1),3(n−1),…,n(n−1)n-1, 2(n-1), 3(n-1), \dots, n(n-1), which are at positions (n,1),(n−1,2),(n−2,3),…,(1,n)(n, 1), (n-1, 2), (n-2, 3), \dots, (1, n). To show this is the best possible, we begin with a lemma.

Lemma. If a<b<c<da < b < c < d are real numbers such that a+d=b+ca+d = b+c, then bc>adbc > ad.

Proof. We have (b−a)(c−a)>0(b-a)(c-a) > 0, which implies
bc+(a−b−c)a>0. bc + (a - b - c)a > 0.
Since a−b−c=−da - b - c = -d, this simplifies to bc>adbc > ad as desired. □\square

Let f(i,j)=(i−1)+n(j−1)f(i, j) = (i - 1) + n(j - 1) be the number in row ii and column jj. Suppose we have chosen the nn numbers f(1,j1),f(2,j2),…,f(n,jn)f(1, j_1), f(2, j_2), \dots, f(n, j_n). If the jij_i sequence is strictly decreasing, then ji=n+1−ij_i = n + 1 - i for all ii and we get a configuration in the first paragraph. Else there exists k,mk, m such that k<mk < m and jk<jmj_k < j_m. Notice that
f(k,jk)<f(m,jk)<f(k,jm)<f(m,jm). f(k, j_k) < f(m, j_k) < f(k, j_m) < f(m, j_m).
Moreover,
f(k,jk)+f(m,jm)=f(m,jk)+f(k,jm)=(k+m−2)+n(jk+jm−2). \begin{aligned} f(k, j_k) + f(m, j_m) &= f(m, j_k) + f(k, j_m) \\ &= (k + m - 2) + n(j_k + j_m - 2). \end{aligned}
So by the lemma, we have that
f(k,jk)f(m,jm)<f(k,jm)f(m,jk). f(k, j_k)f(m, j_m) < f(k, j_m)f(m, j_k).
Therefore we increase the product of the nn numbers by changing f(k,jk)f(k, j_k) and f(m,jm)f(m, j_m) to f(k,jm)f(k, j_m) and f(m,jk)f(m, j_k), so our original arrangement could not have been a maximum.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.