Maths Olympiad Prep

Library / /317 of 462

, 2014

Combinatorics Difficulty 6.3 National Olympiad Prove it Ireland

Each square of an infinite square grid is to be coloured black or white in such a way that every 3×43 \times 4 or 4×34 \times 3 rectangle in the grid contains exactly 44 black squares. In how many ways can this be done?

Solution

The key to the solution is the following observation.

(A) Each 1×31 \times 3 rectangle contains exactly one black square.

Consider any 1×31 \times 3 rectangle and let rr be the number of black squares it contains, then 0r30 \le r \le 3 and we want to show r=1r = 1.

Observe first that the two 3×33 \times 3 squares adjacent to a 1×31 \times 3 rectangle that contains rr black squares have to contain exactly 4r4 - r black squares. And also, the four 1×31 \times 3 rectangles adjacent to a 3×33 \times 3 square that contains exactly 4r4 - r black squares need to contain exactly rr black squares.

Let 0a90 \le a \le 9 be the number of black squares among those that are marked with an asterisk. Then, there are 18r+9(4r)+a18r + 9 \cdot (4 - r) + a black squares in this 12×1212 \times 12 square. On the other hand, this 12×1212 \times 12 grid can be covered by twelve 3×43 \times 4 rectangles and so it has to contain 124=4812 \cdot 4 = 48 black squares. Therefore, 18r+9(4r)+a=4818r + 9 \cdot (4 - r) + a = 48, i.e. 9r+a=129r + a = 12. There is only one solution to this equation satisfying the constraints on aa and rr, namely r=1r = 1 and a=3a = 3.

This shows that each 1×31 \times 3 rectangle must contain exactly one black square.

(B) After choosing one square to be coloured black, there are exactly two possibilities to complete the colouring.

Consider the 3×43 \times 4 rectangle with upper left corner the chosen black square. It follows from (A) that the squares AA and BB have to be black and that the remaining two black squares can only be among CC, DD, EE, FF.

Figure 1
Figure 2
Figure 3

Because of (A), either CC and FF or DD and EE are the black squares. Both patterns can be completed in a unique way, using (A) again, and it is easy to see that both satisfy the requirements of the problem:

Figure 4
Figure 5

(C) If we fix a 1×31 \times 3 rectangle, there are three choices of the black square in it. For each of these choices we have seen in (B) that there are two ways to complete the colouring. Thus there are 66 ways of colouring the grid.

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 reproduced verbatim; metadata (topic, difficulty) added by this project.