Maths Olympiad Prep

Library / /504 of 520

Number theory Difficulty 6.4 National olympiad Prove it

Example 13 (1999 IMO Shortlist) Suppose each integer is colored red, blue, green, or yellow, x,yx, y are odd, and xy|x| \neq |y|. Prove that there exist two integers of the same color, whose difference equals one of x,y,x+yx, y, x+y, or xyx-y.

保留源文本的换行和格式,直接输出翻译结果。

Solution

Assume there exists a color function f:Z{R,B,G,Y}f: Z \rightarrow\{R, B, G, Y\}, such that for any integer aa, we have
f{a,a+x,a+y,a+x+y}={R,B,G,Y}, f\{a, a+x, a+y, a+x+y\}=\{R, B, G, Y\},

where RR represents red, BB represents blue, GG represents green, and YY represents yellow. Let g:Z×Z{R,B,G,Y}g: Z \times Z \rightarrow\{R, B, G, Y\}, and
g(i,j)=f(ix+jy). g(i, j)=f(i x+j y) .

Thus, in the Cartesian coordinate system, each unit square's vertices have four different colors.
(1) If there exists a column of integer pairs i×Zi \times Z, such that gi×2\left.g\right|_{i \times 2} is not a periodic function with period 2, then there exists a row of integer pairs Z×jZ \times j, such that gZ×j\left.g\right|_{Z \times j} is a periodic function with period 2.
Actually, if gi×z\left.g\right|_{i \times z} is not a periodic function with period 2, then in this column, there must be three adjacent integers
YY
RYRR Y R
with different colors, let's assume they are BB. Considering the adjacent unit squares' vertices, we have GBGRG B G R, and thus
YRY
YRYRY
BGBGBB G B G B and so on. Therefore, we obtain three rows of integer pairs, such that the function gg restricted to these three rows is a periodic function with period 2.
(2) If for an integer i,gi=gz×ii, g_{i}=\left.g\right|_{z \times i} is a periodic function with period 2, then for every jZj \in \mathbf{Z}, gi=gz×jg_{i}=\left.g\right|_{z \times j} is a periodic function with period 2. If ij(mod2)i \equiv j(\bmod 2), then the range of gg is the same as the range of gig_{i}; if i≢j(mod2)i \not \equiv j(\bmod 2), then the range of gg is the other two values different from the range of gig_{i}.

Actually, for the integer points on the ii-th row, let's assume they are RBRBRB\cdots R B R B R B \cdots, using the property of the unit square's vertices, we have \cdots. \cdots RBRBR \cdots, and thus
RBRBRBRBRBYGYGY or  YGYGY RBRBRRBRBR \begin{array}{l} \cdots R B R B R \cdots \quad \cdots B R B R B \cdots \\ \cdots Y G Y G Y \cdots \text { or } \cdots \text { YGYGY } \cdots \\ \cdots R B R B R \cdots \quad \cdots R B R B R \cdots \end{array}

For the situation below the ii-th row, we can reach the same conclusion.
By changing rows and columns, we can obtain the same conclusions as (1) and (2). Assuming the rows are periodic with period 2, and g(0,0)=Rg(0,0)=R, g(1,0)=Bg(1,0)=B, then g(y,0)=Bg(y, 0)=B, where yy is an odd number. If ii is odd, then g(Z×{x})={Y,G}g(Z \times\{x\})=\{Y, G\}. Since g(y,0)=f(x,y)=g(0,x)g(y, 0)=f(x, y)=g(0, x), this leads to a contradiction.

Let the subset with an odd number of elements be X2X_{2}, then the union of X1X_{1} and X2X_{2} is an odd subset. Conversely, any odd subset of SnS_{n} can be written as the union of X1X_{1} and X2X_{2}.
X1X_{1} can be chosen in 2k2^{k} ways.
X2X_{2} can be chosen in
Cl1+Ci3++Ci2i1(2i1 is the largest odd number not greater than l=12 ( Cli+Cl1++Cll)=21 (ways).  \begin{aligned} & C_{l}^{1}+C_{i}^{3}+\cdots+C_{i}^{2 i-1}(2 i-1 \text { is the largest odd number not greater than } l \text {) } \\ = & \left.\frac{1}{2} \text { ( } C_{l}^{i}+C_{l}^{1}+\cdots+C_{l}^{l}\right) \\ = & 2^{\prime \cdot 1} \text { (ways). } \end{aligned}

Thus,
an=2k2l1=2n1. a_{n}=2^{k} \cdot 2^{l-1}=2^{n-1} .

By (1), we have
bn=an=2n1 b_{n}=a_{n}=2^{n-1} \text {. }
(3) Let An(Bn)A_{n}\left(B_{n}\right) represent the sum of the capacities of all odd (even) subsets of SnS_{n}.
If nn is odd (n3)(n \geqslant 3).
All odd subsets of SnS_{n} can be composed of the following two types of subsets: (1) odd subsets of Sn1S_{n-1}. (2) the union of each even subset of Sn1S_{n-1} and the set {n}\{n\}. Thus,
An=An1+(Bn1+nbn1)=An1+Bn1+n2n2. (by the conclusion of (1))  A_{n}=A_{n-1}+\left(B_{n-1}+n b_{n-1}\right)=A_{n-1}+B_{n-1}+n \cdot 2^{n-2} \text {. (by the conclusion of (1)) }

Similarly, we get
Bn=Bn1+(An,1+nan1)=An1+Bn1+n2n2. B_{n}=B_{n-1}+\left(A_{n, 1}+n \cdot a_{n-1}\right)=A_{n-1}+B_{n-1}+n \cdot 2^{n-2} .

Comparing equations (2) and (3), we get
An=Bn A_{n}=B_{n} \text {. }

If nn is even (n4)(n \geqslant 4).
All odd subsets of SnS_{n} can be composed of the following two types of subsets: (1) all odd subsets of Sn1S_{n-1}; (2) the union of each odd subset of Sn1S_{n-1} and the set {n}\{n\}. Thus,
An=An1+(An1+nan1)=2An1+n2n2. A_{n}=A_{n-1}+\left(A_{n-1}+n \cdot a_{n-1}\right)=2 A_{n-1}+n \cdot 2^{n-2} .

Similarly, we get
Bn=2Bn1+n2n2 B_{n}=2 B_{n-1}+n \cdot 2^{n-2} \text {. }

By (4) and (5) and An1=Bn1A_{n-1}=B_{n-1}, we get An=BnA_{n}=B_{n}.
In summary, we have proved that for any n3,An=Bnn \geqslant 3, A_{n}=B_{n}.
(4) The complement of XX in SnS_{n} is denoted as XX, then the sum of the capacities of XX and XX equals the capacity of SnS_{n}, i.e., 1+2++n1+2+\cdots+n =12n(n+1)=\frac{1}{2} n(n+1). Therefore, the sum of the capacities of all subsets of SnS_{n} is
2n112n(n+1)=2n2n(n+1) 2^{n-1} \cdot \frac{1}{2} n(n+1)=2^{n-2} \cdot n(n+1) \text {. }

Since An=BuA_{n}=B_{u}, we have
An=122n2n(n+1)=2n3n(n+1),n3. A_{n}=\frac{1}{2} \cdot 2^{n-2} \cdot n(n+1)=2^{n-3} n(n+1), n \geqslant 3 .

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: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.