Sofía colours $46$ cells of a $9 \times 9$ board red. If Pedro can find a $2 \times 2$ square from the board that has $3$ or more red cells, he wins; otherwise, Sofía wins. Determine the player with the winning strategy.
Problem
Source:
Tags: pigeonhole principle, ceiling function, geometry, rectangle, Argentina
04.01.2015 21:49
Pedro has a winning strategy. Partition the $9\times 9$ board into nine $3\times 3$ non-overlapping boards. By pigeonhole, one of these boards must contain at least $6$ colored squares. We will examine this board in further detail below. [asy][asy]void draw_circ(pair llc, bool is_black){draw(Circle(llc + (0.5, 0.5), .37)); if (is_black) fill(Circle(llc + (0.5, 0.5), .37));}for (int i=0; i<=3; ++i) {draw((i,0)--(i,3));draw((0,i)--(3,i));} draw((1,0)--(2,0)--(2,1)--(3,1)--(3,2)--(2,2)--(2,3)--(1,3)--(1,2)--(0,2)--(0,1)--(1,1)--(1,0), red+linewidth(2)); label("$a_1$", (0,2), NE); label("$a_2$", (1,2), NE); label("$a_3$", (2,2), NE); label("$a_4$", (0,1), NE); label("$a_5$", (1,1), NE); label("$a_6$", (2,1), NE); label("$a_7$", (0,0), NE); label("$a_8$", (1,0), NE); label("$a_9$", (2,0), NE);[/asy][/asy] Let the value of a square $a_i$ be $1$ if it is colored and $0$ if it is not. The value of a (sub)board is the sum of the values of the squares it contains. We will show that there must exist a $2\times 2$ square with value at least $3$ for all but one possible coloring of the $3\times 3$ subboard. Suppose this $2\times 2$ square does not exist. We have \[\sum_{i=1}^9 a_i\geq 6\] \[a_1+a_2+a_4+a_5\leq 2\] \[a_2+a_3+a_5+a_6\leq 2\] \[a_4+a_5+a_7+a_8\leq 2\] \[a_5+a_6+a_8+a_9\leq 2\] Adding the last four equations gives \[\left(\sum_{i=1}^9 a_i\right)+a_2+a_4+a_6+a_8+3a_5\leq 8.\] But since $\sum_{i=1}^9 a_i\geq 6$ we have \[a_2+a_4+a_6+a_8+3a_5\leq 2.\] It is obvious that the value of $a_5$ must be $0$ since if it was $1$ then $a_2+a_4+a_6+a_8+3a_5> 2$ which we cannot have. Thus at most two of the squares in the set $\{a_2,a_4,a_6,a_8\}$ have value $1$, but if less than two of those squares have value $1$, then it is impossible for $6$ squares in the $3\times 3$ subboard to be colored. Thus exactly two of the squares in the set $\{a_2,a_4,a_6,a_8\}$ have value $1$ and all four corners are colored, but it is obvious that the two squares from the set $\{a_2,a_4,a_6,a_8\}$ cannot be adjacent, so the only way to color $6$ squares on the $3\times 3$ subboard avoiding a $2\times 2$ subboard with value $\geq 3$ is to have two parallel lines that look like this: [asy][asy]void draw_circ(pair llc, bool is_black){draw(Circle(llc + (0.5, 0.5), .37)); if (is_black) fill(Circle(llc + (0.5, 0.5), .37));}for (int i=0; i<=3; ++i) {draw((i,0)--(i,3));draw((0,i)--(3,i));}draw_circ((0, 0), true);draw_circ((0, 1), true);draw_circ((2, 2), true);draw_circ((2, 1), true);draw_circ((0, 2), true);draw_circ((1, 0), false);draw_circ((1, 1), false);draw_circ((1, 2), false);draw_circ((2, 0), true);[/asy][/asy] They can also be rotated, but the two configurations are rotationally equivalent. Also note how since no more squares can be colored, no subboard can contain $7$ colored squares or more. Now, we consider the $3\times 3$ subboard to the right of this one. [asy][asy]void draw_circ(pair llc, bool is_black){draw(Circle(llc + (0.5, 0.5), .37)); if (is_black) fill(Circle(llc + (0.5, 0.5), .37));}for (int i=0; i<=3; ++i) {draw((i,0)--(i,3));draw((0,i)--(6,i));draw((i+3,0)--(i+3,3));}draw_circ((0, 0), true);draw_circ((0, 1), true);draw_circ((2, 2), true);draw_circ((2, 1), true);draw_circ((0, 2), true);draw_circ((1, 0), false);draw_circ((1, 1), false);draw_circ((1, 2), false);draw_circ((2, 0), true); draw((3,0)--(6,0)--(6,3)--(3,3)--(3,0),blue+linewidth(2)); [/asy][/asy] It's easy to see that none of the squares in the left column of this subboard can be colored, and it's easy to see that the maximum number of squares we can color in this subboard is $3$. (Note: it is possible to color $4$, but then the subboard to the right of this one can have value at most $5$ (okay, fine, it can have value $6$ but that is obviously going to guarantee a $2\times 2$ subboard with value $\geq 3$ later because it will have to be oriented sideways.), which gives the three subboards together a value of at most $15$, which is exactly what we will observe otherwise. The argument can be completed for this case separately, but I will not include it here since it is virtually equivalent to the case of $3$, and far more limited.) Thus, out of the remaining seven $3\times 3$ subboards, there must be at least $46-(6+3)=37$ squares colored, so there must be at least two subboards with $6$ squares colored by pigeonhole (since we've already seen no $3\times 3$ subboard can have $7$ colored squares). Each of these $3\times 3$ subboards must be next to a $3\times 3$ subboard with at most $3$ colored squares. Thus we will need at least one more subboard with $3$ colored squares. What will remain is four $3\times 3$ subboards with at least $37-(6+6+3)=22$ colored squares, so by pigeonhole there must be at least two subboards with $6$ squares colored. Since each of these subboards will have to be next to a subboard with at most $3$ squares colored, we will need at least one more subboard with at most $3$ squares colored. What will remain is a single subboard with at least $22-(6+6+3)=7$ squares colored, which, as we have shown already, cannot exist without having a $2\times 2$ subboard with value at least $3$, so Pedro will always win. $\blacksquare$
06.01.2015 01:26
Lemma: If a $3\times 3$ board contains $6$ colored squares, all four corners must be colored. Proof: Label the squares as shown.
Let the value of a square $a_i$ be $1$ if it is colored and $0$ if it is not. The value of a (sub)board is the sum of the values of the squares it contains. Suppose no $2\times 2$ board with value at least $3$ exists. We have \[\sum_{i=1}^9 a_i\geq 6\] \[a_1+a_2+a_4+a_5\leq 2\] \[a_2+a_3+a_5+a_6\leq 2\] \[a_4+a_5+a_7+a_8\leq 2\] \[a_5+a_6+a_8+a_9\leq 2\] Adding the last four equations gives \[\left(\sum_{i=1}^9 a_i\right)+a_2+a_4+a_6+a_8+3a_5\leq 8.\] But since $\sum_{i=1}^9 a_i\geq 6$ we have \[a_2+a_4+a_6+a_8+3a_5\leq 2.\] It is obvious that the value of $a_5$ must be $0$ since if it was $1$ then $a_2+a_4+a_6+a_8+3a_5> 2,$ which we cannot have. Thus at most two of the squares in the set $\{a_2,a_4,a_6,a_8\}$ have value $1$, but if less than two of those squares have value $1$, then it is impossible for $6$ squares in the $3\times 3$ subboard to be colored. Thus exactly two of the squares in the set $\{a_2,a_4,a_6,a_8\}$ have value $1$ and all four corners are colored. $\square$
) Proof: We prove the result by induction on $n$. The base case, $n=1$, gives $1\cdot 1=1$, which is obviously correct. Now suppose the result is true for $2k-1$, that is, the maximum number of squares that can be colored on a $(2k-1)\times (2k-1)$ board without having a $2\times 2$ square with value at least $3$ is $(2k-1)\left\lceil\dfrac{2k-1}{2}\right\rceil=(2k-1)(k)$. Now, using this information combined with the first lemma, we must show that the maximum number of squares that can be colored on a $(2k+1)\times (2k+1)$ board without having a $2\times 2$ square with value at least $3$ is $(2k+1)\left\lceil\dfrac{2k+1}{2}\right\rceil=(2k+1)(k+1)$. We do this by partitioning the board into subboards that we can deal with. We can partition it into One $(2k-1)\times (2k-1)$ board $2k-2$ two by two boards One $3\times 3$ board with a missing corner Now we find the maximum number of colored squares that we can place in each of these subboards. By our inductive hypothesis, we can place at most $(2k-1)(k)=2k^2-k$ colored squares in the $(2k-1)\times (2k-1)$ board. Since $2\times 2$ boards can contain at most $2$ colored squares, the $2k-2$ two by two boards can contain at most $4k-4$ colored squares. By the first lemma, if we are to place $6$ colored squares on a $3\times 3$ board, then all four corners must be colored. However, we are missing a corner, so at most $5$ squares can be colored. Combining this information, the maximum number of squares that can be colored on the $2k+1\times 2k+1$ board is $2k^2-k+4k-4+5=2k^2+3k+1=(2k+1)(k+1)=(2k+1)\left\lceil\dfrac{2k+1}{2}\right\rceil$ so the induction is done. $\square$ By the second lemma, the maximum number of colored squares that can be placed on a $9\times 9$ board while avoiding having a $2\times 2$ subboard with at least $3$ squares is equal to $9\left\lceil\dfrac{9}{2}\right\rceil=45$. However, we place $46$ colored squares on the board, so there must exist a $2\times 2$ subboard with at least $3$ colored squares. Thus Pedro has a winning strategy. $\blacksquare$
06.01.2015 02:31
Here is a generalized solution: We consider the case of an $n \times n$ board. In general, we claim that the maximum number of cells that can be colored red such that there exists no $2 \times 2$ square with three or more red cells is $\frac{n^2}{2}$ for even $n$ and $\frac{n(n + 1)}{2}$ for odd $n.$
06.10.2019 16:26
Construct twenty $2\times 2$ squares on the board as shown in the attachment (for visibility, $10$ of these squares are blue and the other $10$ orange). The only cells that are not covered by such a square are the cells marked black. Thus if there are $46$ red cells, at least $41$ of the red cells will lie within a square. Then, by the Pigeonhole Principle, at least one square will contain $3$ red cells, so Pedro always wins.
Attachments:
