Skip to main content
OlympiadHQ

Browse · MathNet

Print

The Problems of Ukrainian Authors

Ukraine counting and probability

Problem

On the infinite checked paper sides of 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) repainting of square sides; b) 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 and . In such case area of all squares with marked sides does not exceed , and the number of black sides of squares is at least (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 .

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 rectangle. There are at least as many marked squares as the area of rectangle is. And this area is equal to .
Final answer
a) yes; b) no

Techniques

Invariants / monovariantsColoring schemes, extremal argumentsQM-AM-GM-HM / Power Mean