Maths Olympiad Prep

Library / /16 of 17

, 2014

Combinatorics Difficulty 7.0 National olympiad, round 2 Prove it Canada

Let mm and nn be odd positive integers. Each square of an mm by nn board is coloured red or blue. A row is said to be red-dominated if there are more red squares than blue squares in the row. A column is said to be blue-dominated if there are more blue squares than red squares in the column. Determine the maximum possible value of the number of red-dominated rows plus the number of blue-dominated columns. Express your answer in terms of mm and nn.

Solution

The answer is m+n2m+n-2 if m,n3m, n \ge 3 and max{m,n}\max\{m, n\} if one of m,nm, n is equal to 11.

Note that it is not possible that all rows are red-dominated and all columns are blue-dominated. This is true, since the number of rows and columns are both odd, the number of squares is odd. Hence, there are more squares of one color than the other. Without loss of generality, suppose there are more red squares than blue squares. Then it is not possible that for every column, there are more blue squares than red squares. Hence, every column cannot be blue-dominated.

If one of m,nm, n is equal to 11, say mm without loss of generality, then by the claim, the answer is less than n+1n+1. The example where there are nn blue-dominated columns is by painting every square blue. There are 00 red-dominated rows. The sum of the two is n=max{m,n}n = \max\{m, n\}.

Now we handle the case m,n3m, n \ge 3.

There are mm rows and nn columns on the board. Hence, the answer is at most m+nm+n. We have already shown that the answer cannot be m+nm+n.

Since m,nm, n are odd, let m=2a1m = 2a-1 and n=2b1n = 2b-1 for some positive integers a,ba, b. Since m,n3m, n \ge 3, a,b2a, b \ge 2. We first show that the answer is not m+n1m+n-1. By symmetry, it suffices to show that we cannot have all rows red-dominated and all-but-one column blue-dominated. If all rows are red-dominated, then each row has at least bb red squares. Hence, there are at least bm=(2a1)bbm = (2a-1)b red squares. Since all-but-one column is blue-dominated, there are at least 2b22b-2 blue-dominated columns. Each such column then has at least aa blue squares. Therefore, there are at least a(2b2)a(2b-2) blue squares. Therefore, the board has at least (2a1)b+a(2b2)=4abb2a(2a-1)b + a(2b-2) = 4ab - b - 2a squares. But the total number of squares on the board is
(2a1)(2b1)=4ab2a2b+1=4ab2abb+1<4ab2ab, (2a-1)(2b-1) = 4ab - 2a - 2b + 1 = 4ab - 2a - b - b + 1 < 4ab - 2a - b,
which is true since b2b \ge 2. This is a contradiction. Therefore, the answer is less than m+n1m+n-1.

We now claim that there is a colouring of the board such that the number of blue-dominated columns plus the number of red-dominated rows is m+n2m+n-2; Colour the first column entirely red, and the first row, minus the top-left corner, entirely blue. The remaining uncoloured square is an even-by-even board. Colour the remaining board in an alternating pattern (i.e. checkerboard pattern). Hence, on this even-by-even board, each row has the same number of red squares as blue squares and each column has the same number of red squares as blue squares. Then on the whole board, since the top row, minus the top-left square is blue, all columns, but the leftmost column, are blue-dominated. Hence, there are n1n-1 blue-dominated columns. Since the left column is red, all rows but the top row are red dominated. Hence, there are m1m-1 red-dominated rows. The sum of these two quantities is m+n2m+n-2, as desired.

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.