Maths Olympiad Prep

Library / 6-th Czech-Slovak Match /3 of 6

6-th Czech-Slovak Match

Combinatorics Difficulty 5.7 AIME, harder Prove it Czech Republic

Suppose that every integer has been given one of the colors red, blue, green, yellow. Let xx and yy be odd integers such that ∣x∣≠∣y∣|x| \neq |y|. Show that there are two integers of the same color whose difference has one of the following values: xx, yy, x+yx+y, x−yx-y.

Solution

We denote colors by capital initial letters. Let us suppose that there exists a coloring f:Z→{R,G,B,Y}f : \mathbb{Z} \to \{R, G, B, Y\} such that for any a∈Za \in \mathbb{Z} we have f{a,a+x,a+y,a+x+y}={R,G,B,Y}f\{a, a+x, a+y, a+x+y\} = \{R, G, B, Y\}. We now define a coloring of an integer lattice g:Z×Z→{R,G,B,Y}g : \mathbb{Z} \times \mathbb{Z} \to \{R, G, B, Y\} by the rule g(i,j)=f(xi+yj)g(i, j) = f(xi+yj). It follows that every unit square in gg must have its vertices colored by four different colors. If there is a row or column with period 2, then applying the condition to adjacent unit squares, we get (by induction) that all rows or columns, respectively, have period 2.

On the other hand, taking a row to be not of period 2, i.e., containing a sequence of three distinct colors, for example GRY, we get that the next row must contain in these columns YBG, and the following GRY, and so on. It would follow that a column in this case must have period 2. A similar conclusion holds if we start with an aperiodic column. Hence either all rows or all columns must have period 2.

Let us assume WLOG that all rows have a period of 2. Assuming WLOG {g(0,0),g(1,0)}={G,B}\{g(0,0), g(1,0)\} = \{G, B\}, we get that the even rows are painted with {G,B}\{G, B\} and odd with {Y,R}\{Y, R\}. Since xx is odd, it follows that g(y,0)g(y,0) and g(0,x)g(0,x) are of different color. However, since g(y,0)=f(xy)=g(0,x)g(y,0) = f(xy) = g(0,x), this is a contradiction. Hence the statement of the problem holds. □

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.