Olympiad Maths Prep

Track / Stage 7 / 58 of 300 #1458 of 2000

Problem 1458

National olympiad second round; IMO P1/P4
Combinatorics Difficulty 7.1 Prove it VMO · Vietnam

Several natural numbers are given on a line. We perform a transformation as follows: for every pair of consecutive integers on the line, write the sum of those two numbers in the middle of them. After 2013 such steps, how many times number 2013 are there on the line if

a) The given numbers are 11 and 10001000?

b) The given numbers are 1,2,3,,10001, 2, 3, \ldots, 1000 on the increasing order from the left to the right?

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

a) We first observe that one cannot write the number 20132013 between a pair (a,b)(a, b) with a+b>2013a + b > 2013. Using this simple observation, it is easy to check that the number 20132013 is written only twice after 20132013 steps in the 88th and the 10131013th steps.

b) We add an extra number 11 after 10001000 on the line. We perform 20132013 such steps on this new line and count how many times the number 20132013 is written. We construct a sequence AA of pairs inductively as follows. Initially,
A={(1,2),(2,3),,(999,1000),(1000,1)}. A = \{(1, 2), (2, 3), \dots, (999, 1000), (1000, 1)\}.
In each step of the transformation, whenever we write a number k=a+bk = a + b between the pair (a,b)(a, b) (from left to right), we add two pairs (a,k)(a, k) and (k,b)(k, b) into the sequence AA.
We will prove by induction on a+ba + b that an ordered pair (a,b)(a, b) appears on the sequence AA only if gcd(a,b)=1\text{gcd}(a, b) = 1, and if gcd(a,b)=1\text{gcd}(a, b) = 1 then the pair (a,b)(a, b) appears exactly once on the sequence AA.
Suppose that this statement holds for any a+b<ka+b < k, we show that it also holds when a+b=ka+b = k. Without loss of generality, we can assume that a<ba < b (the case a>ba > b is similar). The pair (a,b)(a, b) is added to the sequence AA whenever we write the number bb between the pair (a,ba)(a, b-a). Since a+(ba)=b<ka+(b-a) = b < k, the pair (a,ba)(a, b-a) appears on the sequence AA only if gcd(a,ba)=1\text{gcd}(a, b-a) = 1, and if gcd(a,ba)=1\text{gcd}(a, b-a) = 1 then the pair (a,ba)(a, b-a) appears exactly once on the sequence AA. Since
gcd(a,b)=gcd(a,ba), \text{gcd}(a, b) = \text{gcd}(a, b-a),
the statement holds for a+b=ka+b=k. By the induction principle, the statement holds for any (a,b)(a, b). This implies that the number of times that 20132013 is written is the number of pairs (a,2013a)(a, 2013-a) with gcd(a,2013a)=1\text{gcd}(a, 2013-a) = 1. Therefore, the number 20132013 is written ϕ(2013)=1200\phi(2013) = 1200 times on the new line.

By the part a), the number 20132013 is written twice between 10001000 and 11. Hence, the number 20132013 is written 12002=11981200-2=1198 times on the given line. \square

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