My First International Competition!

Algebra Level 3

Given a function f : N N f:\mathbb N \to \mathbb N which is strictly increasing and satisfies f ( f ( x ) ) = 3 x f\big(f(x)\big) = 3x for all x x , find f ( 16 ) f(16) .

Notation : N \mathbb N denotes the set of positive integers .


The answer is 25.

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.

3 solutions

Manuel Kahayon
Jul 30, 2016

Relevant wiki: Functional Equations - Problem Solving

We cannot have f ( 1 ) = 1 f(1) = 1 as this implies f ( f ( 1 ) ) = 1 f(f(1)) = 1 . If f ( 1 ) = 3 f(1) = 3 then f ( f ( 1 ) ) = 3 = f ( 3 ) f(f(1)) = 3 = f(3) , which is absurd since f f is strictly increasing therefore f ( 1 ) f ( 3 ) f(1) \neq f(3) . Similar arguments force f ( 1 ) = 2 f(1) = 2 .

Therefore, f ( f ( 1 ) ) = f ( 2 ) = 3 f ( f ( 2 ) ) = f ( 3 ) = 6 f ( f ( 3 ) ) = f ( 6 ) = 9 f(f(1)) = f(2) = 3 \implies f(f(2)) = f(3) = 6 \implies f(f(3)) = f(6) = 9 .

Since f ( 3 ) = 6 f(3) = 6 and f ( 6 ) = 9 f(6) = 9 , this forces f ( 4 ) = 7 , f ( 5 ) = 8 f(4) = 7, f(5) = 8 .

f ( 6 ) = 9 f ( f ( 6 ) ) = f ( 9 ) = 18 f ( f ( 9 ) ) = f ( 18 ) = 27 f(6) = 9 \implies f(f(6)) = f(9) = 18 \implies f(f(9)) = f(18) = 27 .

Similarly, f ( 5 ) = 8 f ( f ( 5 ) ) = f ( 8 ) = 15 f ( f ( 8 ) ) = f ( 15 ) = 24 f(5) = 8 \implies f(f(5)) = f(8) = 15 \implies f(f(8)) = f(15) = 24 .

Since f ( 15 ) = 24 f(15) = 24 and f ( 18 ) = 27 f(18) = 27 , this forces f ( 16 ) = 25 , f ( 17 ) = 26 f(16) = 25, f(17) = 26 (Since f f is increasing).

Therefore, our answer is 25 \boxed{25}

Why can't f ( x ) = 3 x f(x)=\sqrt{3}x ?

A Former Brilliant Member - 4 years, 10 months ago

Log in to reply

Natural numbers...

Manuel Kahayon - 4 years, 10 months ago

Log in to reply

Oh I did not notice that.

A Former Brilliant Member - 4 years, 10 months ago

As you have said it is strictly increasing function so it is a bijection between natural numbers Then what is pre-image of 1 ???

Kushal Bose - 4 years, 10 months ago

Log in to reply

A strictly increasing function does not necessarily imply a bijection.

Manuel Kahayon - 4 years, 10 months ago

Log in to reply

Can you give a proof for that ???

Kushal Bose - 4 years, 10 months ago

Log in to reply

@Kushal Bose Certainly. A counterexample will do just fine.

Let f ( x ) : N N f(x): \mathbb N \to \mathbb N which satisfies f ( x ) = 2 x f(x) = 2x . Then, no natural number maps to 3 3 , which is also a natural number.

Manuel Kahayon - 4 years, 10 months ago

Log in to reply

@Manuel Kahayon Yess thanks

Kushal Bose - 4 years, 10 months ago

@Kushal Bose There can be discontinuities, in which case it can still be increasing, but not bijection. Since the domain and range are N, it's discontinuous

Manashi Sarkar - 4 years, 7 months ago

Go Pinoy! :)

Efren Medallo - 4 years, 10 months ago

There is another solution. f(odd) = 2 times odd and f(even)= 1.5 times even Then f(1) = 2 and f(2) = 3, so f(f(1))= 3 times 1. Next f(2) = 3 and f(3) = 6 so f(f(2)) = 3 times 2. And so on. Therefore f(16) = 24.

Chris Patterson - 4 years, 7 months ago

Log in to reply

Good idea, but doesn't work with multiple of 4

Alexandre Jeannotte - 4 years, 4 months ago
Sharky Kesa
Aug 3, 2016

Relevant wiki: Induction - Functional Equations

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 ) = 2 f(1)=2 . 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 3 2 16 2 3 2 3^2 \leq 16 \leq 2 \cdot 3^2 , we apply our formula to get f ( 16 ) = 25 f(16)=25 .

It seems very helpful here to consider stuff in base 3!

Sualeh Asif - 4 years, 10 months ago

Log in to reply

Yes, it does seem to help. (Assuming you mean base 3, not base 3! = base 6) :P

Sharky Kesa - 4 years, 10 months ago

AMAZING, bro. You took it waaay further than I ever imagined doing so.

Manuel Kahayon - 4 years, 10 months ago

Log in to reply

I simply considered the general case. I was curious, so I explored it.

Sharky Kesa - 4 years, 10 months ago

Log in to reply

I generalised it slightly differently (see the badly formatted proof below).

Miles Koumouris - 4 years, 2 months ago

Great job 😃 For some reason I really cant see the contradiction f(1)>= 3. Could you enlighten me? Sorry for not LaTeX'ing, on my phone and it's late 😅

Nicolai Kofoed - 4 years, 10 months ago

Log in to reply

If f ( 1 ) = 1 f(1) = 1 , then f ( f ( 1 ) ) = f ( 1 ) = 1 f(f(1))=f(1)=1 , which contradicts f ( f ( 1 ) ) = 3 f(f(1))=3 . Also, since f f is strictly increasing, f ( n ) > n f(n)>n . If f ( 1 ) 3 f(1) \geq 3 , then f ( f ( 1 ) ) f ( 3 ) f(f(1))\geq f(3) . But, since f ( n ) > n f(n) > n , f ( 3 ) > 3 f(3)>3 , so f ( f ( 1 ) ) > 3 f(f(1)) > 3 , which contradicts f ( f ( 1 ) ) = 3 f(f(1)) = 3 .

Sharky Kesa - 4 years, 10 months ago

2 questions good sir. Why does taking f(f(x) not return 3x with the solution you suggested, the motivation for which is invisible to me. Also, why can't the function simply be f(x)= (3^1/2) x

Mohamed Elsayed - 4 years, 4 months ago

Log in to reply

@Mohamed Elsayed - we are told f(x) is a positive integer, so it can not be (3^1/2)x. As for the motivation, I imagine the solution was found in a similar way as was done in the first solution, by Manuel Kahayon, and then proved by induction. It's a rigorous proof, but the procedure for finding the solution has not been shown.

Anthony Cutler - 4 years, 4 months ago

Log in to reply

@Anthony Cutler So sorry to have wasted your time I didn't notice that last problem statement at all. I'm still confused as to why f(f(x)) does not return 3x.

Mohamed Elsayed - 4 years, 4 months ago

Log in to reply

@Mohamed Elsayed At the beginning of the proof there is a link explaining induction proofs. As you can see, they are indirect proofs. A direct proof that f(f(x))=3x would be complicated as f(x) has different definitions depending on the size of x. (Note that the solution does not claim that the given definition of f(x) is the only possible one; instead it only shows that the given definition satisfies the question.)

Anthony Cutler - 4 years, 4 months ago
You Kad
Feb 15, 2017

The given equation yields :

n N , f ( f ( f ( n ) ) ) = { f 2 ( f ( n ) ) = 3 f ( n ) f ( f 2 ( n ) ) = f ( 3 n ) ∀n∈ℕ, f(f(f(n))) = \begin{cases} f^2(f(n)) = 3f(n) \\ f(f^2(n)) = f(3n)\end{cases}

Thus :

n N , f ( 3 n ) = 3 f ( n ) ∀n∈ℕ, f(3n) = 3f(n)

Hence, by induction :

m , n N , f ( 3 n m ) = 3 n f ( m ) ∀m,n∈ℕ, f(3^nm) = 3^nf(m)

But it also known for sure that

n N , 0 < f ( n ) < f ( f ( n ) ) = 3 n ∀n∈ℕ, 0 < f(n) < f(f(n)) = 3n

Therefore :

0 < f ( 1 ) < 3 0 < f(1) < 3

And as f ( 1 ) 1 f(1) ≠ 1 (otherwise 3 × 1 = f ( f ( 1 ) ) = f ( 1 ) = 1 3 × 1 = f(f(1)) = f(1) = 1 ) :

f ( 1 ) = 2 f(1) = 2

Therefore :

{ f ( 2 ) = f ( f ( 1 ) ) = 3 × 1 f ( 3 ) = 3 × f ( 1 ) = 6 f ( 5 ) > f ( 4 ) > f ( 3 ) = 6 f ( 5 ) 8 \begin{cases} f(2) = f(f(1)) = 3 × 1 \\ f(3) = 3 × f(1) = 6 ⟹ f(5) > f(4) > f(3) = 6 ⟹ f(5) ≥ 8 \end{cases}

24 = 3 × 8 3 f ( 5 ) = f ( 15 ) < f ( 16 ) < f ( 17 ) < f ( 18 ) = 9 f ( 2 ) = 9 × 3 = 27 24 = 3 × 8 ≤ 3 f(5) = f(15) < f(16) < f(17) < f(18) = 9 f(2) = 9 × 3 = 27

Hence :

f ( 16 ) = 25 f(16) = 25

f ( 0 ) f(0) doesn't exist.

Sharky Kesa - 4 years, 3 months ago

Log in to reply

My bad : in France, N , which denotes the natural numbers, comprises 0 0 . I will correct that, thank you for your attention !

You Kad - 4 years, 3 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...