Nice function...

Algebra Level 5

Let f : N N f : \mathbb N \mapsto \mathbb N be a function such that f ( n + 1 ) > f ( n ) f (n + 1) > f (n) and f ( f ( n ) ) = 3 n f (f (n)) = 3n for all n N n\in\mathbb{N} . Evaluate f ( 2001 ) f (2001) .


The answer is 3816.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Jared Low
Jan 25, 2015

Note that by extension of f ( n + 1 ) > f ( n ) f(n+1)>f(n) we have f ( m ) > f ( n ) f(m)>f(n) whenever m > n m>n .

We will prove via induction on all non-negative integers n n a claim P n P_n that:

  • For 3 n x 2 3 n 3^n \leq x \leq 2 \cdot 3^n , we have f ( x ) = x + 3 n f(x)=x+3^n
  • For 2 3 n x 3 n + 1 2 \cdot 3^n \leq x \leq 3^{n+1} , we have f ( x ) = 3 x 3 n + 1 f(x)=3x-3^{n+1}

First, we prove that f ( 1 ) = 2 f(1)=2 .

If f ( 1 ) = 1 f(1)=1 , we have f ( f ( 1 ) ) = 1 = 3 f(f(1))=1=3 , a contradiction, hence f ( 1 ) > 1 f(1)>1 and with the condition f ( n + 1 ) > f ( n ) f(n+1)>f(n) , we have f ( n ) > n f(n)>n for all positive integers n n .

If f ( 1 ) 3 f(1) \geq 3 , we'd have f ( f ( 1 ) ) f ( 3 ) > 3 f(f(1)) \geq f(3) >3 , also a contradiction. Hence we must have f ( 1 ) = 3 f(1)=3 . Also, we have f ( 2 ) = f ( f ( 1 ) ) = 3 f(2)=f(f(1))=3 and f ( 3 ) = f ( f ( 2 ) ) = 6 f(3)=f(f(2))=6 .

We note that we have our claim P n P_n be true for n = 0 n=0 , given our values of f ( 1 ) , f ( 2 ) , f ( 3 ) f(1),f(2),f(3) . Now assume for some non-negative integer k k , we have P k P_k be true, i.e. that:

  • For 3 k x 2 3 k 3^k \leq x \leq 2 \cdot 3^k , we have f ( x ) = x + 3 k f(x)=x+3^k
  • For 2 3 k x 3 k + 1 2 \cdot 3^k \leq x \leq 3^{k+1} , we have f ( x ) = 3 x 3 k + 1 f(x)=3x-3^{k+1}

We then consider the claim P k + 1 P_{k+1} :

For 3 k + 1 x 2 3 k + 1 3^{k+1} \leq x \leq 2 \cdot 3^{k+1} , consider the x x where x = 3 y x=3y for some integer 3 k y 2 3 k 3^k \leq y \leq 2 \cdot 3^k . We then have x = f ( f ( y ) ) = f ( y + 3 k ) x=f(f(y))=f(y+3^k) , and consequently f ( x ) = f ( f ( y + 3 k ) ) ) = 3 ( y + 3 k ) = 3 y + 3 k + 1 = x + 3 k + 1 f(x)=f(f(y+3^k)))=3(y+3^k)=3y+3^{k+1}=x+3^{k+1} .

For 3 k + 1 x 2 3 k + 1 3^{k+1} \leq x \leq 2 \cdot 3^{k+1} , there also exist x , x + 1 x,x+1 where 3 y < x < x + 1 < 3 ( y + 1 ) 3y<x<x+1<3(y+1) for some ( 3 k y 2 3 k 1 (3^k \leq y \leq 2 \cdot 3^k-1 . We can infer that x = 3 y + 1 , x + 1 = 3 y + 2 x=3y+1,x+1=3y+2 . Then using our results that f ( 3 y ) = 3 y + 3 k + 1 , f ( 3 y + 3 ) = 3 y + 3 + 3 k + 1 f(3y)=3y+3^{k+1},f(3y+3)=3y+3+3^{k+1} from just now, we have:

3 y + 3 k + 1 = f ( 3 y ) < f ( x ) < f ( x + 1 ) < f ( 3 y + 3 ) = 3 y + 3 + 3 k + 1 3y+3^{k+1}=f(3y)<f(x)<f(x+1)<f(3y+3)=3y+3+3^{k+1}

We thus have f ( x ) = 3 y + 1 + 3 k + 1 = x + 3 k + 1 , f ( x + 1 ) = 3 y + 2 + 3 k + 1 = x + 1 + 3 k + 1 f(x)=3y+1+3^{k+1}=x+3^{k+1},f(x+1)=3y+2+3^{k+1}=x+1+3^{k+1} , hence we have it that for all 3 k + 1 x 2 3 k + 1 3^{k+1} \leq x \leq 2 \cdot 3^{k+1} , we have f ( x ) = x + 3 k + 1 f(x)=x+3^{k+1}

For 2 3 k + 1 x 3 k + 2 2 \cdot 3^{k+1} \leq x \leq 3^{k+2} , we note that 3 k + 1 x 3 k + 1 2 3 k + 1 3^{k+1} \leq x-3^{k+1} \leq 2 \cdot 3^{k+1} and from our previous result we have f ( x 3 k + 1 ) = x 3 k + 1 + 3 k + 1 = x f(x-3^{k+1})=x-3^{k+1}+3^{k+1}=x . Consequently, we have f ( x ) = f ( f ( x 3 k + 1 ) ) = 3 x 3 k + 2 f(x)=f(f(x-3^{k+1}))=3x-3^{k+2} .

Thus we have proven that with P 0 P_0 being true and P k P_k being true \Rightarrow P k + 1 P_{k+1} being true, we have proven our claim that P n P_n is true for all non-negative integers n.

Given that 2 3 6 2001 3 7 2 \cdot 3^6 \leq2001\leq3^7 , we apply our formula to get f ( 2001 ) = 3 2001 3 7 = 3816 f(2001)=3\cdot2001-3^7=\boxed{3816}

The answer is 3816........how u got 2187?

Ravi Dwivedi - 5 years, 11 months ago

Log in to reply

Only the last number is wrong.

Sharky Kesa - 5 years, 10 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...