Olympiad Maths Prep

Library / /14 of 18

Combinatorics Difficulty 6.5 National olympiad Prove it Ukraine

There is a white square 8×88 \times 8. In one move Dmitry can choose a totally white square 2×22 \times 2 and paint in black color any two cells of this square, located on the diagonal. What is the maximum number of cells according to the following rules Dmitry will paint?

Figure 1

Fig. 31

Solution

Answer: 42.

First show how to achieve the required number of colorings. In each box 4×44 \times 4 will painting in such sequence. First select all four squares 2×22 \times 2, on which the 4×44 \times 4 square is split and paint diagonals, as shown in Fig. 31 (black squares). After this there is a completely white square 2×22 \times 2 inside. We paint any of the diagonals (gray squares). Upon completion of painting all four squares 4×44 \times 4 in the center of 8×88 \times 8 square there is completely white 2×22 \times 2 square, where we can paint two more cells. In total: 104+2=4210 \cdot 4 + 2 = 42 of squares 1×11 \times 1.

Now show that the greater amount of paint cannot be achieved. Along with a given square 8×88 \times 8 (call him «initial») consider 7×77 \times 7 square, that formed from centers of the squares of the initial square (we call it «central»). Coloring the diagonal of the square 2×22 \times 2 in the initial square corresponds to drawing a diagonal in the central square (Fig. 32).

Figure 2
Fig. 32

Now it is easy to see that in two adjacent squares 1×11 \times 1 of the central square the diagonals can't be drawn. Let us consider rectangle 3×43 \times 4 of the central square. We will show that it is impossible to draw diagonals in exactly half of all squares. Assume the contrary. Then the diagonals are drawn in six squares 1×11 \times 1. Let us choose four squares A, B, C, D, that contains diagonals and there is no corners among them (Fig. 33). Let us show that it is impossible to draw diagonals in all of them. WLOG the first diagonal is drawn in the square A, in the direction that is shown at Fig. 8. Then in the square C it is impossible to draw a diagonal. So in the rectangle 3×43 \times 4 it is possible to draw not more than 5 diagonals. Then divide 7×77 \times 7 square into four rectangles 3×43 \times 4 and square 1×11 \times 1, as it shown at Fig. 34. Then the maximum number is 54+1=215 \cdot 4 + 1 = 21 in total, that is exactly 42 colored squares.

Figure 3
Fig. 33

Figure 4
Fig. 34

Looking for a route rather than 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.