Skip to main content
OlympiadHQ

Browse · MathNet

Print

VMO

Vietnam counting and probability

Problem

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 and ?

b) The given numbers are on the increasing order from the left to the right?
Solution
a) We first observe that one cannot write the number between a pair with . Using this simple observation, it is easy to check that the number is written only twice after steps in the th and the th steps.

b) We add an extra number after on the line. We perform such steps on this new line and count how many times the number is written. We construct a sequence of pairs inductively as follows. Initially, In each step of the transformation, whenever we write a number between the pair (from left to right), we add two pairs and into the sequence . We will prove by induction on that an ordered pair appears on the sequence only if , and if then the pair appears exactly once on the sequence . Suppose that this statement holds for any , we show that it also holds when . Without loss of generality, we can assume that (the case is similar). The pair is added to the sequence whenever we write the number between the pair . Since , the pair appears on the sequence only if , and if then the pair appears exactly once on the sequence . Since the statement holds for . By the induction principle, the statement holds for any . This implies that the number of times that is written is the number of pairs with . Therefore, the number is written times on the new line.

By the part a), the number is written twice between and . Hence, the number is written times on the given line.
Final answer
a) 2; b) 1198

Techniques

Recursion, bijectionCounting two waysGreatest common divisors (gcd)φ (Euler's totient)