Guess The Golden Function

Algebra Level 5

h ( h ( n ) ) + h ( n + 1 ) = n + 2 \large h(h(n))+h(n+1)=n+2

Consider all functions h : N N h:\mathbb N \to \mathbb N satisfying the functional equation above for all natural numbers n n .

Find the value of h ( 2014 ) h(2014) .

Hint : Try to find some initial values and then somehow try to bring the Golden Ratio into use. Golden Ratio is 1 + 5 2 \frac{1+\sqrt{5}}{2} .


The answer is 1245.

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

Souryajit Roy
May 22, 2014

Putting n=1 in the functional equation we get h ( h ( 1 ) ) + h ( 2 ) = 3 h(h(1))+h(2)=3

This shows h ( 2 ) 2 h(2)≤2 and h ( h ( 1 ) ) 2 h(h(1))≤2

Suppose h ( 2 ) = 1 h(2)=1 and h ( h ( 1 ) ) = 2 h(h(1))=2

Put h ( 1 ) = k h(1)=k so that h ( k ) = 2 h(k)=2 .Taking n = 2 n=2 in the functional equation we get h ( h ( 2 ) ) + h ( 3 ) = 4 h(h(2))+h(3)=4

We thus see h ( 3 ) = 4 h ( 1 ) = 4 k h(3)=4-h(1)=4-k . Since h ( 3 ) 1 h(3)≥1 , we conclude k 3 k≤3

If k = 1 k=1 ,then we get 2 = h ( h ( 1 ) ) = h ( k ) = h ( 1 ) = k = 1 2=h(h(1))=h(k)=h(1)=k=1 contradiction

By putting k = 2 , 3 k=2,3 you will get similar contradictions.

We conclude that h ( 2 ) = 1 h(2)=1 and h ( h ( 1 ) ) = 2 h(h(1))=2 is not possible

So, h ( 2 ) = 2 h(2)=2 and h ( h ( 1 ) ) = 1 h(h(1))=1 and hence h ( 3 ) = 4 h ( h ( 2 ) ) = 2 h(3)=4-h(h(2))=2 .

Inductively we get h ( 4 ) = 5 h ( h ( 3 ) 0 = 5 h ( 2 ) = 5 2 = 3 h(4)=5-h(h(3)0=5-h(2)=5-2=3 ,

h ( 5 ) = 6 h ( h ( 4 ) ) = 6 h ( 3 ) = 4 h(5)=6-h(h(4))=6-h(3)=4

h ( 6 ) = 7 h ( h ( 5 ) ) = 7 h ( 4 ) = 4 h(6)=7-h(h(5))=7-h(4)=4 and so on . See that h ( n ) 2 h(n)≥2 for n 2 n≥2

Suppose h ( 1 ) = k 2 h(1)=k≥2 .Then 3 = h ( h ( 1 ) ) + h ( 2 ) = h ( k ) + 2 2 + 2 = 4 3=h(h(1))+h(2)=h(k)+2≥2+2=4 which is impossible.

Thus h ( 1 ) = 1 h(1)=1 and h ( 2 ) = 2 h(2)=2

We claim that h ( n ) = [ n ϕ ] n + 1 h(n)=[n\phi]-n+1 where ϕ = 1 + 5 2 \phi=\frac{1+\sqrt{5}}{2}

Lemma 1 . For any natural number n n , [ ϕ ( [ n ϕ ] n + 1 ] = n o r n + 1 [\phi([n\phi]-n+1]= n or n+1

Proof [ ϕ ( [ n ϕ ] n + 1 ] [\phi([n\phi]-n+1] < < ϕ ( n ϕ n + 1 \phi(n\phi-n+1 = = n ( ϕ 2 ϕ ) + ϕ n(\phi^{2}-\phi)+\phi = = n + ϕ n+\phi < < n + 2 n+2

and [ ϕ ( [ n ϕ ] n + 1 ] [\phi([n\phi]-n+1] > > ϕ ( n ϕ 1 n + 1 ) 1 \phi(n\phi-1-n+1)-1 = = n ( ϕ 2 ϕ ) 1 n(\phi^{2}-\phi)-1 = = n 1 n-1

Lemma 2 For all natural numbers n n , [ ( n + 1 ) ϕ ] [(n+1)\phi] = = [ n ϕ ] + 2 [n\phi]+2 if [ ϕ ( [ n ϕ ] n + 1 ] [\phi([n\phi]-n+1] = = n n and [ n ϕ ] + 1 [n\phi]+1 , otherwise

Proof Suppose [ ( n + 1 ) ϕ [(n+1)\phi = = [ n ϕ ] + 1 [n\phi]+1 .Then we get

[ ϕ ( [ n ϕ ] n + 1 ] = [ ϕ ( [ ( n + 1 ) ϕ ] n ) ] > ϕ ( ϕ ( n + 1 ) 1 n ) 1 = n [\phi([n\phi]-n+1]= [\phi([(n+1)\phi]-n)]>\phi(\phi(n+1)-1-n)-1=n

so that [ ϕ ( [ n ϕ ] n + 1 ) ] = n + 1 [\phi([n\phi]-n+1)]=n+1 by lemma 1.On the other hand it can be easily proved if

[ ( n + 1 ) ϕ ] = [ n ϕ ] + 2 [(n+1)\phi]=[n\phi]+2 , then [ ϕ ( [ n ϕ ] n + 1 ) ] = n [\phi([n\phi]-n+1)]=n

Suppose the claim is true for 1 j n 1≤j≤n

h ( n + 1 ) = n + 2 h ( h ( n ) ) = n + 2 h ( [ n ϕ ] n + 1 ) h(n+1)= n+2-h(h(n))=n+2-h([n\phi]-n+1) = n + 2 [ ϕ ( [ n ϕ ] n + 1 ) ] + ( [ n ϕ ] n + 1 ) 1 =n+2-[\phi([n\phi]-n+1)]+([n\phi]-n+1)-1 , since [ n ϕ ] n + 1 < 2 n n + 1 = n + 1 [n\phi]-n+1<2n-n+1=n+1

This reduces to h ( n + 1 ) = [ n ϕ ] + 2 [ ϕ ( [ n ϕ ] n + 1 ) ] h(n+1)=[n\phi]+2-[\phi([n\phi]-n+1)]

Suppose n n is such that [ ϕ ( [ n ϕ ] n + 1 ) ] = n [\phi([n\phi]-n+1)]=n . Then we have [ ( n + 1 ) ϕ ] = [ n ϕ ] + 2 [(n+1)\phi]=[n\phi]+2 and hence h ( n + 1 ) = [ ( n + 1 ) ϕ ] n h(n+1)=[(n+1)\phi]-n

Considering the other possibility, you will also get h ( n + 1 ) = [ ( n + 1 ) ϕ ] n h(n+1)=[(n+1)\phi]-n

This completes our induction step.

So, h ( 2014 ) = [ 2014 ϕ ] 2014 + 1 = 3258 2014 + 1 = 1245 h(2014)=[2014\phi]-2014+1=3258-2014+1=1245

I did not go nearly as in depth! But great problem! It's a bit confusing though in your solution, you should probably use ϕ \phi for the golden ratio. :D

Finn Hulse - 7 years ago

We can also take h(n)=an+b and solve for the values of a and b..

Govind Gupta - 6 years, 12 months ago

May be it would be better to mention that zero is not in your natural number set , since there is no agreement on it , 2- Where can I find similar questions ?

Omar Amer - 7 years ago

Log in to reply

The answer doesn't depend on it. There are few more cases to check but h ( 0 ) = 1 h(0) = 1 and the rest of the sequence as above is the only solution.

Marek Bernat - 7 years ago

Another equivalent solution is h ( n ) = n ϕ h\left( n \right) =\left\lceil \frac { n }{ \phi } \right\rceil

Roger Lu - 7 years ago

How did it was first found ,that it can be solved by golden ration ?

Omar Amer - 7 years ago

Log in to reply

The recurrence relation followed by f ( n ) = [ n ϕ ] f(n)=[n\phi] is

f ( 1 ) = 1 f(1)=1 , f ( n + 1 ) = f ( n ) + 2 f(n+1)=f(n)+2 if f ( f ( n ) n + 1 ) = 2 f(f(n)-n+1)=2 and f ( n + 1 ) = f ( n ) + 1 f(n+1)=f(n)+1 , otherwise.

If one knows this recurrence relation, this problem can be easily solved.

Souryajit Roy - 7 years ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...