Browse · MathNet
PrintKanada 2014
Canada 2014 counting and probability
Problem
Let and be odd positive integers. Each square of an by 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 and .
Solution
The answer is if and if one of is equal to .
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 is equal to , say without loss of generality, then by the claim, the answer is less than . The example where there are blue-dominated columns is by painting every square blue. There are red-dominated rows. The sum of the two is .
Now we handle the case .
There are rows and columns on the board. Hence, the answer is at most . We have already shown that the answer cannot be .
Since are odd, let and for some positive integers . Since , . We first show that the answer is not . 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 red squares. Hence, there are at least red squares. Since all-but-one column is blue-dominated, there are at least blue-dominated columns. Each such column then has at least blue squares. Therefore, there are at least blue squares. Therefore, the board has at least squares. But the total number of squares on the board is which is true since . This is a contradiction. Therefore, the answer is less than .
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 ; 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 blue-dominated columns. Since the left column is red, all rows but the top row are red dominated. Hence, there are red-dominated rows. The sum of these two quantities is , as desired.
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 is equal to , say without loss of generality, then by the claim, the answer is less than . The example where there are blue-dominated columns is by painting every square blue. There are red-dominated rows. The sum of the two is .
Now we handle the case .
There are rows and columns on the board. Hence, the answer is at most . We have already shown that the answer cannot be .
Since are odd, let and for some positive integers . Since , . We first show that the answer is not . 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 red squares. Hence, there are at least red squares. Since all-but-one column is blue-dominated, there are at least blue-dominated columns. Each such column then has at least blue squares. Therefore, there are at least blue squares. Therefore, the board has at least squares. But the total number of squares on the board is which is true since . This is a contradiction. Therefore, the answer is less than .
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 ; 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 blue-dominated columns. Since the left column is red, all rows but the top row are red dominated. Hence, there are red-dominated rows. The sum of these two quantities is , as desired.
Final answer
m + n − 2 if m, n ≥ 3; otherwise max{m, n} if one of m, n equals 1
Techniques
Coloring schemes, extremal argumentsCounting two ways