Maths Olympiad Prep

Library / /13 of 22

Combinatorics Difficulty 6.5 National olympiad Prove it South Africa

Write either 11 or 1-1 in each of the cells of a (2n)×(2n)(2n) \times (2n)-table, in such a way that there are exactly 2n22n^2 entries of each kind. Let the minimum of the absolute values of all row sums and all column sums be MM. Determine the largest possible value of MM.

Solution

Split the table into four smaller tables of size n×nn \times n. The upper left quarter is now filled with 11s, the lower right quarter with 1-1s, and each of the remaining two quarters in a checkerboard pattern (if nn is odd, fill them in such a way that one of the quarters contains more 11s than 1-1s, and the other more 1-1s than 11s). If nn is even, then each of the rows and columns contains either n/2n/2 11s and 3n/23n/2 1-1s, or vice versa, so that M=nM = n. If nn is odd, then each of the rows and columns contains either (n1)/2(n - 1)/2 11s (1-1s) and (3n+1)/2(3n + 1)/2 1-1s (11s), or (n+1)/2(n + 1)/2 11s (1-1s) and (3n1)/2(3n - 1)/2 1-1s (11s); it follows that M=n1M = n - 1 in this case.

Now we show that MM cannot be larger. If there is a row or column that contains as many 11s as 1-1s, then M=0M = 0, and we are done. Otherwise, split the set of all 4n4n rows and columns into two subsets: those that contain more 11s than 1-1s, and those that contain more 1-1s than 11s.

One of these two sets must contain at least 2n2n elements. Without loss of generality, assume that there are at least 2n2n rows and columns (of which kk are rows and \ell columns) that contain more 11s than 1-1s. In each of these rows and columns, there are at least n+M/2n + M/2 11s and at most nM/2n - M/2 1-1s. The total number of 11s in all these rows and columns is therefore at least
(k+)(n+M2)k, (k + \ell) \left( n + \frac{M}{2} \right) - k\ell,
where the last term accounts for those 11s that are possibly double-counted. Hence we have
2n2(k+)(n+M2)k(k+)(n+M2)14(k+)2 2n^2 \ge (k+\ell) \left(n + \frac{M}{2}\right) - k\ell \ge (k+\ell) \left(n + \frac{M}{2}\right) - \frac{1}{4}(k+\ell)^2
and thus, with r=k+r = k + \ell,
M2n2+r2/4rnr/2=4n2r+r22n=n(r2n)(4nr)2rn, M \le \frac{2n^2 + r^2/4 - rn}{r/2} = \frac{4n^2}{r} + \frac{r}{2} - 2n = n - \frac{(r-2n)(4n-r)}{2r} \le n,
since 2nr4n2n \le r \le 4n by assumption. Hence we have MnM \le n, which completes the proof in the case that nn is even. If nn is odd, M=nM = n is impossible, since all row sums and all column sums must be even (sum of an even number of odd numbers), so that we must have Mn1M \le n - 1.

We conclude that the largest possible value of MM is nn if nn is even and n1n - 1 if nn is odd.

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.