Define the function f:N→N which satisfies, for any s,n∈N, the following conditions:
f(1)=f(2s) and if n<2s, then f(2s+n)=f(n)+1.
Calculate the maximum value of f(n) when n≤2001 and find the smallest natural number n such that f(n)=2001. algebrafunctional equation