19th Balkan 2002

------
 
 
Problem 4

N is the set of positive integers. Find all functions f: N → N such that f( f(n) ) + f(n) = 2n + 2001 or 2n + 2002.

 

Solution

Obviously one solution is f(n) = n + 667. We show that there are no others.

Define the sequence an by a1 = k, an+1 = f(an). Put bm = am - am-1 - 667. Then bm+1 + 2bm = am+1 + am - 2am-1 - 2001 = 0 or 1, using the given relation with n = am-1.

So if bn ≥ k > 0, then bn+1 ≤ -(2k-1) and bn+2 ≥ 4k-2 ≥ 2k (*). So if b2 > 0, then b2n ≥ 2n. For sufficiently large n this is > 1335. So for sufficiently large n we have b2n > 1335. Hence b2n + b2n+1 = - b2n or -b2n + 1 < -1334. But b2n + b2n+1 = a2n+1 - a2n-1 - 1334, so a2n+1 < a2n-1. So after a while the odd terms become negative. Contradiction. So b2 ≤ 0.

But if b2 < 0, then b3 > 0 and the same argument shows that the even terms become negative.. Contradiction. Hence b2 = 0. In other words a2 = a1 + 667. But a1 was chosen arbitrarily to be k, and a2 = f(k). So we have proved that f(k) = k + 667, as required.

Many thanks to Xin Tao for pointing out an error in the original solution.

 


 

19th Balkan 2002

© John Scholes
jscholes@kalva.demon.co.uk
16 June 2002