5th Iberoamerican 1990

------
 
 
Problem A1

The function f is defined on the non-negative integers. f(2n - 1) = 0 for n = 0, 1, 2, ... . If m is not of the form 2n - 1, then f(m) = f(m+1) + 1. Show that f(n) + n = 2k - 1 for some k, and find f(21990).

 

Solution

We claim that if 2m <= n < 2m+1, then f(n) = 2m+1 - n - 1. Put r = 2m+1 - n. Then the claim follows by induction on r. Hence f(21990) = 21990 - 1.

 


 

5th Ibero 1990

© John Scholes
jscholes@kalva.demon.co.uk
1 July 2002