Maths Olympiad Prep

Track / Stage 6 / 122 of 400 #1602 of 2444

Problem 1602

National Olympiad, first round
Number theory Difficulty 6.1 Prove it Estonian Math Competitions · Estonia

In the beginning, there are two positive integers on a blackboard. On each step, one chooses numbers aa and bb such that aba \le b from the numbers on the blackboard in all possible ways (equality means that one may take the same number twice), finds all corresponding sums a+b+gcd(a,b)a+b+\gcd(a,b) and replaces all the numbers on the blackboard instantly with these sums. Prove that at some step at least one number will occur more than once on the blackboard.

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Next problem →

Official solutions — 2

Solution 1

If the numbers chosen from the blackboard are xx and yy, then the number x+y+gcd(x,y)x+y+\gcd(x,y) will be on the blackboard on the next step. If xx is chosen together with itself, the number x+x+gcd(x,x)=3xx+x+\gcd(x,x) = 3x will be on the blackboard on the next step. We show that there will be two equal numbers on the blackboard after the second step at latest. Assume that the initial numbers are nn and mm and the numbers n+m+gcd(n,m)n+m+\gcd(n,m), 3n3n and 3m3m appearing on the first step are all distinct. Choosing number n+m+gcd(n,m)n+m+\gcd(n,m) together with itself, we obtain 3(n+m+gcd(n,m))=3n+3m+3gcd(n,m)3(n+m+\gcd(n,m)) = 3n+3m+3\gcd(n,m). Choosing 3n3n and 3m3m, we obtain 3n+3m+gcd(3n,3m)3n+3m+\gcd(3n,3m). As gcd(3n,3m)=3gcd(n,m)\gcd(3n,3m) = 3\gcd(n,m), the same number will appear twice after the second step.

Solution 2

Let the largest number on the blackboard after step ss and the number of numbers on the blackboard after step ss be m(s)m(s) and n(s)n(s), respectively. Obviously m(s+1)=m(s)+m(s)+gcd(m(s),m(s))=3m(s)m(s+1) = m(s)+m(s)+\gcd(m(s),m(s)) = 3m(s), as xm(s)x \le m(s) and ym(s)y \le m(s) imply gcd(x,y)m(s)\gcd(x,y) \le m(s). Thus m(s)=3sm(0)m(s) = 3^s m(0) for all ss. Suppose that there will never be equal numbers on the blackboard. Then n(s+1)=n(s)(n(s)+1)2>n(s)22n(s+1) = \frac{n(s)(n(s)+1)}{2} > \frac{n(s)^2}{2} for every ss. Since n(0)=2n(0) = 2, we get n(1)=3n(1) = 3 and n(2)=6n(2) = 6. An easy induction shows that n(s)>232s2n(s) > 2 \cdot 3^{2^{s-2}} for every s2s \ge 2. Thus n(s)m(s)>2m(0)32s2s\frac{n(s)}{m(s)} > \frac{2}{m(0)} \cdot 3^{2^{s-2}-s}. If ss \to \infty, the number 32s2s3^{2^{s-2}-s} becomes larger than m(0)2\frac{m(0)}{2}, so n(s)>m(s)n(s) > m(s). On the other hand, n(s)m(s)n(s) \le m(s) since the numbers are positive, a contradiction.

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