Maths Olympiad Prep

Library / /38 of 39

Combinatorics Difficulty 7.0 National olympiad, round 2 Prove it Ukraine

On the infinite checked paper 20062006 sides of 1×11 \times 1 squares are painted black, all others are painted white. It is allowed to choose a square and to paint all its sides into opposite color. It is known that it is possible to make all square sides white in such manner. Whether is it enough
a) 260000260000 repainting of square sides;
b) 250000250000 repainting of square sides
for such repainting?

Solution

a) We look at the projections of painted black squares onto coordinate axis. Denote the lengths of these projections by aa and bb. In such case area of all squares with marked sides does not exceed abab, and the number of black sides of squares is at least 2(a+b)20062(a+b) \le 2006 (it is easy to see that there should be either zero or at least two painted black horizontal lines in any column and the same for any row). Whence the required number of repainting does not exceed ab(a+b)24100324<260000ab \le \frac{(a+b)^2}{4} \le \frac{1003^2}{4} < 260000.

b) Let's assume that all squares that should be repainted odd number of times are marked with blue color. Then in the initial arrangement only those sides of squares are painted black that neighbor one unmarked and one marked blue square. We get the least possible number of repainting if each square, marked blue, will be repainted only once, and unmarked squares won't be repainted at all. Let's estimate the number of squares, marked blue for the following initial painting: the perimeter of the 501×502501 \times 502 rectangle. There are at least as many marked squares as the area of rectangle is. And this area is equal to 501×502>250000501 \times 502 > 250000.

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.