Maths Olympiad Prep

Library / /12 of 24

Combinatorics Difficulty 6.5 National Olympiad Prove it Italy

Problem:

Determine all pairs {a,b}\{a, b\} of positive integers with the following property: however one colors the positive integers with two colors AA and BB, there always exist two positive integers of color AA with difference aa or two positive integers of color BB with difference bb.

Solution

Solution:

The pairs satisfying the condition of the problem are those of the type a=2h(2x+1)a=2^{h} \cdot (2x+1), b=2k(2y+1)b=2^{k} \cdot (2y+1) where hkh \neq k, that is, the pairs such that the maximal power of 22 dividing the two numbers is different.

First, we show that for pairs NOT of this type, that is, of the type a=2h(2x+1)a=2^{h} \cdot (2x+1), b=2h(2y+1)b=2^{h} \cdot (2y+1), there exists a coloring in which there are neither two numbers of color AA at distance aa nor two numbers of color BB at distance bb. The coloring is the following:
AAAAA2hBBBBB2hAAA2h \underbrace{A A A \ldots A A}_{2^{h}} \underbrace{B B B \ldots B B}_{2^{h}} \underbrace{A A A \ldots}_{2^{h}}
Indeed, in this sequence two numbers at distance 2h2^{h} always have different color, numbers at distance 22h2 \cdot 2^{h} always have the same color, numbers at distance 32h3 \cdot 2^{h} always have different color, and so on; in particular, therefore, numbers having distance an odd multiple of 2h2^{h} always have different color, which is what we wanted to show.

We now show that in the case a=2h(2x+1)a=2^{h} \cdot (2x+1), b=2k(2y+1)b=2^{k} \cdot (2y+1) with h<kh<k (without loss of generality), for every coloring there exist two numbers of color AA with difference aa or two numbers of color BB with difference bb.

Suppose, for contradiction, that there exists a coloring for which this is not true, and consider a number nn having color AA (obviously there exists a number colored AA, otherwise they would all be colored BB and there would exist two numbers colored BB at any distance); now, necessarily the number n+an+a must be of color BB, and for the same reason the numbers n+a+bn+a+b and n+abn+a-b must be of color AA.

In general, moving (in either direction, provided we remain among the positive integers) from a number by a step of length a+ba+b or aba-b (the latter can also be negative, i.e., a step to the left), we end up at a number of the same color; starting from nn, therefore, all positive numbers of the type n+r(a+b)+s(ab)n+r(a+b)+s(a-b) with r,sr, s integers are of the same color AA as nn. (Note that one can move first by taking forward steps and then backward steps, thus not using negative numbers.)

We now show that among these numbers there is also the number n+an+a, thus arriving at a contradiction. Let d=MCD(a+b,ab)d=\operatorname{MCD}(a+b, a-b). By Bézout's theorem, the numbers of the form r(a+b)+s(ab)r(a+b)+s(a-b) are exactly the multiples of dd, so it suffices to show that dd is a divisor of aa. Since da+bd \mid a+b and dabd \mid a-b, it is evident that d(a+b)+(ab)=2ad \mid (a+b)+(a-b)=2a. It follows that d=2δd1d=2^{\delta} d_{1}, where δh+1\delta \leq h+1 and d12x+1d_{1} \mid 2x+1. On the other hand, the maximal power of 22 dividing both a+ba+b and aba-b is 2h2^{h}, and therefore δh\delta \leq h, that is, dad \mid a, as we wanted.

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: MathNet, licensed CC-BY-4.0. Statement translated into English from it; metadata (topic, difficulty) added by this project.