Maths Olympiad Prep

Library / /24 of 29

Combinatorics Difficulty 6.7 National olympiad Prove it Silk Road Mathematics Competition

Find all pairs of positive integers (m,n)(m, n) for which it is possible to paint each unit square of an m×nm \times n chessboard either white or black in such a way that, for any unit square of the board, the number of unit squares which are painted the same color as that square and which have at least one common vertex with it (including the square itself) is even.

Solution

We shall call a painting satisfying the condition of the problem a good painting. We shall also call squares sharing a vertex neighbors. Note that every square is a neighbor of itself.

If mnmn is even, then there is a good painting: Suppose that the number of rows is even. Then we paint 1st and 2nd rows white, 3rd and 4th rows black, 5th and 6th rows white and so on. This is a good painting.

Now assume that mnmn is odd and there is a good painting. Either the number of white squares or the number of black squares is odd. Let us assume the first. Consider the set WW of ordered pairs of white squares which are not neighbors.

Since each square is a neighbor of itself, WW has an even number of elements.

On the other hand, there is an odd number of white squares and, since the painting is good, for each white square there is an odd number of white squares which are not neighbors of it. This implies that WW has an odd number of elements, a contradiction.

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.