How long before a function with g(n+1)=g(n)+-1 reaches 2001
Source: XII Cono Sur Mathematical Olympiad (2001)
July 28, 2011
functioninductionalgebra unsolvedalgebra
Problem Statement
A function defined for all positive integers satisfies
[*];
[*]for all , either or ;
[*]for all , ; and
[*] for some positive integer .
Find, with proof, the smallest possible value of .