Maths Olympiad Prep

Track / Stage 7 / 275 of 300 #1675 of 1964

Problem 1675

National olympiad second round; IMO P1/P4
Combinatorics Difficulty 7.8 Prove it

Let nn be an odd positive integer, and consider an infinite square grid. Prove that it is impossible to fill in one of 1,21,2 or 33 in every cell, which simultaneously satisfies the following conditions:
(1) Any two cells which share a common side does not have the same number filled in them.
(2) For any 1×31\times 3 or 3×13\times 1 subgrid, the numbers filled does not contain 1,2,31,2,3 in that order be it reading from top to bottom, bottom to top, or left to right, or right to left.
(3) The sum of numbers of any n×nn\times n subgrid is the same.

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Official solution

1. Initial Assumptions and Setup:
- Let n n be an odd positive integer.
- Consider an infinite square grid where each cell is filled with one of the numbers 1,2, 1, 2, or 3 3 .
- The grid must satisfy the following conditions:
1. Any two cells sharing a common side do not have the same number.
2. For any 1×3 1 \times 3 or 3×1 3 \times 1 subgrid, the numbers filled do not contain 1,2,3 1, 2, 3 in that order, regardless of the reading direction.
3. The sum of numbers in any n×n n \times n subgrid is the same.

2. Analyzing the Grid:
- We start by analyzing the placement of the number 2 2 since it is the most restricted by condition 2.
- If there are no 2 2 's, the grid must be a checkerboard pattern of 1 1 and 3 3 . This can be easily eliminated by condition 3.
- If the 2 2 's form a checkerboard pattern, this can also be eliminated using condition 3.

3. Lemma:
- Lemma: The 4 adjacent cells (buddies) of any cell labeled 2 2 have equal labels.
- Proof:
- Label the cell with 2 2 as (0,0)(0,0) in the coordinate plane.
- By condition 2, the two numbers to the left and right of a 2 2 must be equal.
- Assume the 4 buddies are not all equal. We must have a configuration like:
31213 \begin{array}{ccc} & 3 & \\ 1 & 2 & 1 \\ & 3 & \end{array}
- This configuration leads to a periodic pattern with period 2 along the rows and columns, implying 2 2 's appear in a checkerboard fashion, which contradicts our earlier elimination. Hence, the 4 buddies of any 2 2 must be equal. \blacksquare

4. Claim:
- Claim: Let X=(0,0) X = (0,0) be a 2 2 . WLOG, the 4 buddies around it are 3 3 . Then for any point (a,b)(a,b):
(a,b)={2 or 3if a+b is odd2 or 1if a+b is even. (a,b) = \begin{cases} 2 \text{ or } 3 & \text{if } a+b \text{ is odd} \\ 2 \text{ or } 1 & \text{if } a+b \text{ is even}. \end{cases}
- Proof:
- Consider the quadrant a,b>0 a, b > 0 . We use induction on a+b a+b .
- Base case a+b=1 a+b = 1 is clear.
- Suppose a+b a+b is odd. We know (a1,b)(a-1,b) is 2 2 or 1 1 by induction.
- If (a1,b)=2(a-1,b) = 2, then (a2,b)=3(a-2,b) = 3, so (a,b)=3(a,b) = 3.
- If (a1,b)=1(a-1,b) = 1, then (a,b)(a,b) is 2 2 or 3 3 .
- This proves the claim for a+b a+b odd. The case for a+b a+b even is similar. \blacksquare

5. Coloring the Board:
- Color the board black and white like a checkerboard, with X X at a white square.
- The claim tells us that all points an odd taxicab distance from X X are 2 2 or 3 3 , and all points an even taxicab distance from X X are 2 2 or 1 1 .
- Hence, all black squares are 2 2 or 3 3 , and all white squares are 2 2 or 1 1 .

6. Using Condition 3:
- Define the diversity of a box div[(a,b),(c,d)]\text{div}[(a,b),(c,d)] as the number of 2 2 's on black squares minus the number of 2 2 's on white squares.
- Define [(a,b),(c,d)]\sum[(a,b),(c,d)] as the sum of the numbers in the box.
- Since [(1,0),(n+1,n)][(1,0),(n+1,n)] has one more black square than [(0,0),(n,n)][(0,0),(n,n)], we have:
0=[(1,0),(n+1,n)][(0,0),(n,n)]=2+div[(1,0),(n+1,n)]div[(0,0),(n,n)]. 0 = \sum [(1,0),(n+1,n)] - \sum [(0,0),(n,n)] = 2 + \text{div}[(1,0),(n+1,n)] - \text{div}[(0,0),(n,n)].
- Removing the center [(1,0),(n,n)][(1,0),(n,n)] block, this is equivalent to:
div[(n,0),(n+1,n)]=div[(0,0),(1,n)]+2. \text{div}[(n,0),(n+1,n)] = \text{div}[(0,0),(1,n)] + 2.
- Let (a1,,an,an+1)=(x0,0,,x0,n,x0,n+1)(a_1, \ldots, a_n, a_{n+1}) = (x_{0,0}, \ldots, x_{0,n}, x_{0,n+1}) and (b1,,bn,bn+1)=(xn,0,,xn,n)(b_1, \ldots, b_n, b_{n+1}) = (x_{n,0}, \ldots, x_{n,n}), where:
xij={1if (i,j) is 2 and black1if (i,j) is 2 and white0if (i,j) is not 2. x_{ij} = \begin{cases} 1 & \text{if } (i,j) \text{ is 2 and black} \\ -1 & \text{if } (i,j) \text{ is 2 and white} \\ 0 & \text{if } (i,j) \text{ is not 2}. \end{cases}
- By the definition of diversity, we have:
div[(n,0),(n+1,n)]=b1++bn, \text{div}[(n,0),(n+1,n)] = b_1 + \cdots + b_n,
div[(0,0),(1,n)]=a1++an. \text{div}[(0,0),(1,n)] = a_1 + \cdots + a_n.
- Therefore:
b1++bn=2+a1++an. b_1 + \cdots + b_n = 2 + a_1 + \cdots + a_n.
- Shifting the strips up by 1, we get:
b2++bn+1=2+a2++an+1. b_2 + \cdots + b_{n+1} = -2 + a_2 + \cdots + a_{n+1}.
- Subtracting these equations, we get:
bn+1b1=an+1a14. b_{n+1} - b_1 = a_{n+1} - a_1 - 4.
- Since ai,bi{1,0,1} a_i, b_i \in \{-1, 0, 1\} for all i i , this implies:
bn+1=1,b1=1,an+1=1,a1=1. b_{n+1} = -1, b_1 = 1, a_{n+1} = 1, a_1 = -1.
- Therefore, all of (0,0),(0,n+1),(n+1,0),(n+1,n+1)(0,0), (0,n+1), (n+1,0), (n+1,n+1) are 2 2 . By similar logic, (1,0),(1,n+1),(n+2,0),(n+2,n+1)(1,0), (1,n+1), (n+2,0), (n+2,n+1) are all 2 2 , leading to a contradiction.

\blacksquare

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.