Skip to main content
OlympiadHQ

Browse · MathNet

Print

Baltic Way 2019

Baltic Way 2019 counting and probability

Problem

Let be the minimum number of cells that must be coloured in the square grid to ensure that every rectangle (in any orientation) contains a coloured cell. Is it true that for all where is a prime and is a nonnegative integer?

problem


problem


problem


problem


problem
Solution
No, it is not true. At first we note that is a nondecreasing function and for all what follows from the fact that rectangle can be cut into rectangles of size , each of whom should contain a coloured cell.

Next we show that for all . Assume that we have the minimal colouring for grid (blue rectangle in the following figure) and we add one more column to the right. At least one of the red or green cells are coloured. If a red cell is coloured then colouring cells marked A and C will finish the minimal colouring for the grid. If a green cell is coloured then colouring B and C is enough.

Neither 35 nor 36 can be expressed in the form , where is a prime and is a nonnegative integer (just check ). As is an unbounded function which increases in each step by at most two, we will have that either or for some .

Alternatively one can show, that , a simple check shows that 22 cannot be expressed in the form . The following figure shows that 22 coloured cells are enough to cover a rectangle. To show that 21 coloured cell is insufficient we will show that . Assume, that and notice that rectangle can be cut into four rectangles. Each rectangle should contain at least two coloured cells therefore there will be at least two rectangles containing exactly 2 coloured cells. The only way to colour two cells in a rectangle is as in the next figure (left), because both red and green squares can contain at most one coloured cell and the only way to colour a single cell in a square is to put it in the centre.

There is only one way how two cells can be colored in a rectangle (left); two rectangles with two coloured cells cannot be placed side by side (right). Now let's see how these two rectangles containing two coloured cells can be placed. If they are placed side by side then the red rectangle remains empty (the right figure above), similarly one can show that they cannot be placed one above another. But if they are placed diagonally then the following figure shows how seven rectangles can be placed in the remaining space each requiring at least one coloured cell.

Techniques

Coloring schemes, extremal argumentsPigeonhole principle