A Peculiar Function!

Algebra Level 5

f ( n ) = max { f ( j ) + f ( n j ) + j } \large{f(n) = \max \{f(j)+f(n-j)+j \} }

Let f f be a function from the set of positive integers to the set of non-negative integers such that f ( 1 ) = 0 f(1)=0 and f ( n ) f(n) is defined as of above for all n 2 n \geq 2 . Determine the value of f ( 2015 ) f(2015) .

Note: The maximum in the definition of f ( n ) f(n) is considered over all j j such that 1 j n 1 1 \leq j \leq n-1 , i.e for all j j for which f ( n ) f(n) and f ( n j ) f(n-j) are defined.


The answer is 2029105.

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

Abhishek Sinha
Nov 11, 2015

First of all, it is easy to see that f f is unique, since the recursion generates a unique sequence. Now we claim the following :

Claim : f ( n ) = n ( n 1 ) 2 , n 1 f(n)=\frac{n(n-1)}{2}, \hspace{10pt}\forall n\geq 1

In view of the uniqueness of the solution, it is sufficient to show that the proposed function satisfies the recursion for all n 1 n\geq 1 . We proceed by induction. The base case holds for n = 1 n=1 . Assume that the claim holds for n = m , ( m 1 ) n=m, (m \geq 1) . We will show that the claim holds for n = m + 1 n=m+1 .

It is easy to see that the proposed function f f is convex. Hence by the property of convexity, we have for all 1 j m 1\leq j\leq m f ( m ) f ( m + 1 j ) f ( j ) f ( 1 ) f(m)-f(m+1-j) \geq f(j)-f(1) i.e., f ( m ) + f ( 1 ) f ( j ) + f ( m + 1 j ) f(m)+f(1)\geq f(j)+f(m+1-j) This implies that for all 1 j m 1\leq j \leq m , we have f ( m ) + f ( 1 ) + m f ( j ) + f ( m + 1 j ) + j f(m)+f(1)+m \geq f(j)+f(m+1-j)+j Hence, max 1 j m ( f ( j ) + f ( m + 1 j ) + j ) = f ( m ) + f ( 1 ) + m = m ( m + 1 ) 2 \max_{1\leq j\leq m} \big(f(j)+f(m+1-j)+j\big) = f(m)+f(1)+m=\frac{m(m+1)}{2} Which completes the induction step for n = m + 1 n=m+1 and we are done proving the claim.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...