Maths Olympiad Prep

Library / IMO Shortlist /345 of 365

IMO Shortlist

Algebra Difficulty 9.1 IMO level Prove it IMO

Let ν\nu be an irrational positive number, and let mm be a positive integer. A pair (a,b)(a, b) of positive integers is called good if
a⌈bν⌉−b⌊aν⌋=m a\lceil b \nu\rceil-b\lfloor a \nu\rfloor=m
A good pair (a,b)(a, b) is called excellent if neither of the pairs (a−b,b)(a-b, b) and (a,b−a)(a, b-a) is good. (As usual, by ⌊x⌋\lfloor x\rfloor and ⌈x⌉\lceil x\rceil we denote the integer numbers such that x−1<⌊x⌋⩽xx-1<\lfloor x\rfloor \leqslant x and x⩽⌈x⌉<x+1x \leqslant\lceil x\rceil<x+1.)
Prove that the number of excellent pairs is equal to the sum of the positive divisors of mm.

Solution

For positive integers aa and bb, let us denote
f(a,b)=a⌈bν⌉−b⌊aν⌋ f(a, b)=a\lceil b \nu\rceil-b\lfloor a \nu\rfloor
We will deal with various values of mm; thus it is convenient to say that a pair (a,b)(a, b) is mm-good or mm-excellent if the corresponding conditions are satisfied.
To start, let us investigate how the values f(a+b,b)f(a+b, b) and f(a,b+a)f(a, b+a) are related to f(a,b)f(a, b). If {aν}+{bν}<1\{a \nu\}+\{b \nu\}<1, then we have ⌊(a+b)ν⌋=⌊aν⌋+⌊bν⌋\lfloor(a+b) \nu\rfloor=\lfloor a \nu\rfloor+\lfloor b \nu\rfloor and ⌈(a+b)ν⌉=⌈aν⌉+⌈bν⌉−1\lceil(a+b) \nu\rceil=\lceil a \nu\rceil+\lceil b \nu\rceil-1, so
f(a+b,b)=(a+b)⌈bν⌉−b(⌊aν⌋+⌊bν⌋)=f(a,b)+b(⌈bν⌉−⌊bν⌋)=f(a,b)+b f(a+b, b)=(a+b)\lceil b \nu\rceil-b(\lfloor a \nu\rfloor+\lfloor b \nu\rfloor)=f(a, b)+b(\lceil b \nu\rceil-\lfloor b \nu\rfloor)=f(a, b)+b
and
f(a,b+a)=a(⌈bν⌉+⌈aν⌉−1)−(b+a)⌊aν⌋=f(a,b)+a(⌈aν⌉−1−⌊aν⌋)=f(a,b). f(a, b+a)=a(\lceil b \nu\rceil+\lceil a \nu\rceil-1)-(b+a)\lfloor a \nu\rfloor=f(a, b)+a(\lceil a \nu\rceil-1-\lfloor a \nu\rfloor)=f(a, b) .
Similarly, if {aν}+{bν}⩾1\{a \nu\}+\{b \nu\} \geqslant 1 then one obtains
f(a+b,b)=f(a,b) and f(a,b+a)=f(a,b)+a f(a+b, b)=f(a, b) \quad \text{ and } \quad f(a, b+a)=f(a, b)+a
So, in both cases one of the numbers f(a+b,a)f(a+b, a) and f(a,b+a)f(a, b+a) is equal to f(a,b)f(a, b) while the other is greater than f(a,b)f(a, b) by one of aa and bb. Thus, exactly one of the pairs (a+b,b)(a+b, b) and (a,b+a)(a, b+a) is excellent (for an appropriate value of mm).

Now let us say that the pairs (a+b,b)(a+b, b) and (a,b+a)(a, b+a) are the children of the pair (a,b)(a, b), while this pair is their parent. Next, if a pair (c,d)(c, d) can be obtained from (a,b)(a, b) by several passings from a parent to a child, we will say that (c,d)(c, d) is a descendant of (a,b)(a, b), while (a,b)(a, b) is an ancestor of (c,d)(c, d) (a pair is neither an ancestor nor a descendant of itself). Thus each pair of distinct positive integers has a unique ancestor of the form (a,a)(a, a); our aim is now to find how many mm-excellent descendants each such pair has.

Notice now that if a pair (a,b)(a, b) is mm-excellent then min⁡{a,b}⩽m\min \{a, b\} \leqslant m. Indeed, if a=ba=b then f(a,a)=a=mf(a, a)=a=m, so the statement is valid. Otherwise, the pair (a,b)(a, b) is a child of some pair (a′,b′)(a', b'). If b=b′b=b' and a=a′+b′a=a'+b', then we should have m=f(a,b)=f(a′,b′)+b′m=f(a, b)=f(a', b')+b', so b=b′=m−f(a′,b′)<mb=b'=m-f(a', b')<m. Similarly, if a=a′a=a' and b=b′+a′b=b'+a' then a<ma<m.

Let us consider the set SmS_{m} of all pairs (a,b)(a, b) such that f(a,b)⩽mf(a, b) \leqslant m and min⁡{a,b}⩽m\min \{a, b\} \leqslant m. Then all the ancestors of the elements in SmS_{m} are again in SmS_{m}, and each element in SmS_{m} either is of the form (a,a)(a, a) with a⩽ma \leqslant m, or has a unique ancestor of this form. From the arguments above we see that all mm-excellent pairs lie in SmS_{m}.

We claim now that the set SmS_{m} is finite. Indeed, assume, for instance, that it contains infinitely many pairs (c,d)(c, d) with d>2md>2m. Such a pair is necessarily a child of (c,d−c)(c, d-c), and thus a descendant of some pair (c,d′)(c, d') with m<d′⩽2mm<d' \leqslant 2m. Therefore, one of the pairs (a,b)∈Sm(a, b) \in S_{m} with m<b⩽2mm<b \leqslant 2m has infinitely many descendants in SmS_{m}, and all these descendants have the form (a,b+ka)(a, b+k a) with kk a positive integer. Since f(a,b+ka)f(a, b+k a) does not decrease as kk grows, it becomes constant for k⩾k0k \geqslant k_{0}, where k0k_{0} is some positive integer. This means that {aν}+{(b+ka)ν}<1\{a \nu\}+\{(b+k a) \nu\}<1 for all k⩾k0k \geqslant k_{0}. But this yields 1>{(b+ka)ν}={(b+k0a)ν}+(k−k0){aν}1>\{(b+k a) \nu\}=\left\{\left(b+k_{0} a\right) \nu\right\}+\left(k-k_{0}\right)\{a \nu\} for all k>k0k>k_{0}, which is absurd.

Similarly, one can prove that SmS_{m} contains finitely many pairs (c,d)(c, d) with c>2mc>2m, thus finitely many elements at all.

We are now prepared for proving the following crucial lemma.

Lemma. Consider any pair (a,b)(a, b) with f(a,b)≠mf(a, b) \neq m. Then the number g(a,b)g(a, b) of its mm-excellent descendants is equal to the number h(a,b)h(a, b) of ways to represent the number t=m−f(a,b)t=m-f(a, b) as t=ka+ℓbt=k a+\ell b with kk and ℓ\ell being some nonnegative integers.

Proof. We proceed by induction on the number NN of descendants of (a,b)(a, b) in SmS_{m}. If N=0N=0 then clearly g(a,b)=0g(a, b)=0. Assume that h(a,b)>0h(a, b)>0; without loss of generality, we have a⩽ba \leqslant b. Then, clearly, m−f(a,b)⩾am-f(a, b) \geqslant a, so f(a,b+a)⩽f(a,b)+a⩽mf(a, b+a) \leqslant f(a, b)+a \leqslant m and a⩽ma \leqslant m, hence (a,b+a)∈Sm(a, b+a) \in S_{m} which is impossible. Thus in the base case we have g(a,b)=h(a,b)=0g(a, b)=h(a, b)=0, as desired.

Now let N>0N>0. Assume that f(a+b,b)=f(a,b)+bf(a+b, b)=f(a, b)+b and f(a,b+a)=f(a,b)f(a, b+a)=f(a, b) (the other case is similar). If f(a,b)+b≠mf(a, b)+b \neq m, then by the induction hypothesis we have
g(a,b)=g(a+b,b)+g(a,b+a)=h(a+b,b)+h(a,b+a). g(a, b)=g(a+b, b)+g(a, b+a)=h(a+b, b)+h(a, b+a) .
Notice that both pairs (a+b,b)(a+b, b) and (a,b+a)(a, b+a) are descendants of (a,b)(a, b) and thus each of them has strictly less descendants in SmS_{m} than (a,b)(a, b) does.

Next, each one of the h(a+b,b)h(a+b, b) representations of m−f(a+b,b)=m−b−f(a,b)m-f(a+b, b)=m-b-f(a, b) as the sum k′(a+b)+ℓ′bk'(a+b)+\ell' b provides the representation m−f(a,b)=ka+ℓbm-f(a, b)=k a+\ell b with k=k′<k′+ℓ′+1=ℓk=k'<k'+\ell'+1=\ell. Similarly, each one of the h(a,b+a)h(a, b+a) representations of m−f(a,b+a)=m−f(a,b)m-f(a, b+a)=m-f(a, b) as the sum k′a+ℓ′(b+a)k' a+\ell'(b+a) provides the representation m−f(a,b)=ka+ℓbm-f(a, b)=k a+\ell b with k=k′+ℓ′⩾ℓ′=ℓk=k'+\ell' \geqslant \ell'=\ell. This correspondence is obviously bijective, so
h(a,b)=h(a+b,b)+h(a,b+a)=g(a,b) h(a, b)=h(a+b, b)+h(a, b+a)=g(a, b)
as required.

Finally, if f(a,b)+b=mf(a, b)+b=m then (a+b,b)(a+b, b) is mm-excellent, so g(a,b)=1+g(a,b+a)=1+h(a,b+a)g(a, b)=1+g(a, b+a)=1+h(a, b+a) by the induction hypothesis. On the other hand, the number m−f(a,b)=bm-f(a, b)=b has a representation 0⋅a+1⋅b0 \cdot a+1 \cdot b and sometimes one more representation as ka+0⋅bk a+0 \cdot b; this last representation exists simultaneously with the representation m−f(a,b+a)=ka+0⋅(b+a)m-f(a, b+a)=k a+0 \cdot(b+a), so h(a,b)=1+h(a,b+a)h(a, b)=1+h(a, b+a) as well. Thus in this case the step is also proved.

Now it is easy to finish the solution. There exists a unique mm-excellent pair of the form (a,a)(a, a), and each other mm-excellent pair (a,b)(a, b) has a unique ancestor of the form (x,x)(x, x) with x<mx<m. By the lemma, for every x<mx<m the number of its mm-excellent descendants is h(x,x)h(x, x), which is the number of ways to represent m−f(x,x)=m−xm-f(x, x)=m-x as kx+ℓxk x+\ell x (with nonnegative integer kk and ℓ\ell). This number is 0 if x∤mx \nmid m, and m/xm / x otherwise. So the total number of excellent pairs is
1+∑x∣m,x<mmx=1+∑d∣m,d>1d=∑d∣md 1+\sum_{x \mid m, x<m} \frac{m}{x}=1+\sum_{d \mid m, d>1} d=\sum_{d \mid m} d
as required.

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.