Olympiad Maths Prep

Track / Stage 9 / 3 of 80 #1883 of 2000

Problem 1883

IMO P2/P5; hard shortlist
Algebra Difficulty 9.1 Prove it International Mathematical Olympiad Shortlisted Problems · 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
abνbaν=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 (ab,b)(a-b, b) and (a,ba)(a, b-a) is good. (As usual, by x\lfloor x\rfloor and x\lceil x\rceil we denote the integer numbers such that x1<xxx-1<\lfloor x\rfloor \leqslant x and xx<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.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

For positive integers aa and bb, let us denote
f(a,b)=abνbaν 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ν1aν)=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=bb=b' and a=a+ba=a'+b', then we should have m=f(a,b)=f(a,b)+bm=f(a, b)=f(a', b')+b', so b=b=mf(a,b)<mb=b'=m-f(a', b')<m. Similarly, if a=aa=a' and b=b+ab=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 ama \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,dc)(c, d-c), and thus a descendant of some pair (c,d)(c, d') with m<d2mm<d' \leqslant 2m. Therefore, one of the pairs (a,b)Sm(a, b) \in S_{m} with m<b2mm<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 kk0k \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 kk0k \geqslant k_{0}. But this yields 1>{(b+ka)ν}={(b+k0a)ν}+(kk0){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=mf(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 aba \leqslant b. Then, clearly, mf(a,b)am-f(a, b) \geqslant a, so f(a,b+a)f(a,b)+amf(a, b+a) \leqslant f(a, b)+a \leqslant m and ama \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)+bmf(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 mf(a+b,b)=mbf(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 mf(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 mf(a,b+a)=mf(a,b)m-f(a, b+a)=m-f(a, b) as the sum ka+(b+a)k' a+\ell'(b+a) provides the representation mf(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 mf(a,b)=bm-f(a, b)=b has a representation 0a+1b0 \cdot a+1 \cdot b and sometimes one more representation as ka+0bk a+0 \cdot b; this last representation exists simultaneously with the representation mf(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 mf(x,x)=mxm-f(x, x)=m-x as kx+xk x+\ell x (with nonnegative integer kk and \ell). This number is 0 if xmx \nmid m, and m/xm / x otherwise. So the total number of excellent pairs is
1+xm,x<mmx=1+dm,d>1d=dmd 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.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.