Inspired by Comrade Pi Han Goh

Algebra Level 5

Let f ( x ) f(x) be a quintic ( 5 th 5^\text{th} degree) polynomial with f ( n ) = 2 n f(n)=2^n for all integers 0 n 5 0\leq n\leq 5 . Find f ( 11 ) f(11) .


Inspiration .


The answer is 1024.

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.

4 solutions

Akshat Sharda
Feb 27, 2016

I used a rather long method, the Method of Differences,

n n f ( n ) D 1 ( n ) D 2 ( n ) D 3 ( n ) D 4 ( n ) D 5 ( n ) 0 1 1 1 1 1 1 1 2 2 2 2 2 1 2 4 4 4 4 3 1 3 8 8 8 7 4 1 4 16 16 15 11 5 1 5 32 31 26 16 6 1 6 63 57 42 22 7 1 7 120 99 64 29 8 8 219 163 93 37 9 382 256 130 10 638 386 11 1024 \begin{array}{c}n n & f(n) & D_{1}(n) & D_{2}(n) & D_{3}(n) & D_{4}(n) & D_{5}(n) \\ 0 & 1 & 1 & 1 & 1 & 1 & 1 \\ 1 & 2 & 2 & 2 & 2 & 2 & 1 \\ 2 & 4 & 4 & 4 & 4 & 3 & 1 \\ 3 & 8 & 8 & 8 & 7 & 4 & 1 \\ 4 & 16 & 16 & 15 & 11 & 5 & 1 \\ 5 & 32 & 31 & 26 & 16 & 6 & 1 \\ 6 & 63 & 57 & 42 & 22 & 7 & 1 \\ 7 & 120 & 99 & 64 & 29 & 8 \\ 8 & 219 & 163 & 93 & 37 \\ 9 & 382 & 256 & 130 \\ 10 & 638 & 386 \\ 11 & \boxed{1024}\end{array}

Yes, this is the systematic way of doing it! (+1)

Otto Bretscher - 5 years, 3 months ago

Log in to reply

Can you share with us your method?

Pi Han Goh - 5 years, 3 months ago

Did the same ! I fear that we could not make polynomial f (x) (using interpolation) with the given conditions on x.

Otto sir and chew sir , both your methods are also nice ! time savers :)

A Former Brilliant Member - 5 years, 3 months ago
Otto Bretscher
Feb 28, 2016

We claim that f ( x ) = k = 0 5 ( x k ) f(x)=\sum_{k=0}^5{x \choose k} . Indeed, if 0 n 5 0\leq n\leq 5 , then f ( n ) = k = 0 5 ( n k ) = k = 0 n ( n k ) f(n)=\sum_{k=0}^5{n \choose k}=\sum_{k=0}^n {n \choose k} = 2 n =2^n as required. Now f ( 11 ) = k = 0 5 ( 11 k ) = 1 2 k = 0 11 ( 11 k ) = 1 2 × 2 11 = 2 10 = 1024 f(11)=\sum_{k=0}^{5}{11\choose k}=\frac{1}{2}\sum_{k=0}^{11}{11\choose k}=\frac{1}{2}\times2^{11}=2^{10}=\boxed{1024}

Moderator note:

Great way to identify the polynomial which approximates this value. Makes it easier than the other interpolation formats.

Oh! I see. Wunderbar!

Chew-Seong Cheong - 5 years, 3 months ago

Log in to reply

Nice solution Chew Sir !!!

A Former Brilliant Member - 5 years, 3 months ago

I also tried Langrages Interpolation method , but I got stuck in between ....and finally I did it by Method of diff.

A Former Brilliant Member - 5 years, 3 months ago

Log in to reply

I'm no expert on computational complexity, but it does not appear that Lagrange Interpolation is any shorter in this case ;)

Otto Bretscher - 5 years, 3 months ago

Log in to reply

If the test values are consecutive, as here, the Method of Differences is probably faster of the two methods, and simple to implement in Excel (or similar). Where Lagrangian Interpolation scores is when the test values are not consecutive.

Mark Hennings - 5 years, 3 months ago

Log in to reply

@Mark Hennings And where does my method fit in, using binomial coefficients?

Otto Bretscher - 5 years, 3 months ago

Log in to reply

@Otto Bretscher I was commenting on the general approach. Given this very specific case, where there is a neat solution, demonstrating that the answer works is always the simplest and quickest. That leaves open the question of how to arrive at said neat solution,

Mark Hennings - 5 years, 3 months ago

Log in to reply

@Mark Hennings For me, that's what doing math is all about, particularly on a "fun" site like this: arriving at short, elegant, neat solutions rather than applying known algorithms. We are mathematicians, after all, not book keepers ;)

The binomial approach works here and here ... whenever we are fitting a polynomial to an exponential function.

Otto Bretscher - 5 years, 3 months ago

Log in to reply

@Otto Bretscher Otto, I call your approach polynomial interpolation by remainder factor theorem . The trick is to find the polynomial which matches the values exactly, and it's not always obvious how to do this (see the 3rd section)

Any thoughts on other cases?

Calvin Lin Staff - 5 years, 3 months ago

Log in to reply

@Calvin Lin Yes, Calvin, this is great stuff! Thank you! I had no idea this method even has a name ;)

I will take a closer look when I have some time.

In a way, I prefer to do these problems without prefabricated methods, just "doing a little thinking" on a case-by-case basis... but these guide lines are a good thing for people who plan to take part in math competitions.

Otto Bretscher - 5 years, 3 months ago

Frankly, I solve all these polynomial problems by cheating, using matrix operations on Excel spreadsheet. Because with known X X and Y Y , it is a linear system. A X = Y AX = Y , A = X 1 Y \Rightarrow A = X^{-1}Y and I got A A .

Chew-Seong Cheong - 5 years, 3 months ago

Log in to reply

I was trained an engineer, who just solves the problem, not a mathematician.

Chew-Seong Cheong - 5 years, 3 months ago

Can Langrange interpolation be used here ?

A Former Brilliant Member - 5 years, 3 months ago

Log in to reply

Yes, Comrade Cheong is using Lagrange Interpolation. Both finite differences and Lagrange interpolation are solid, systematic methods, but, as Akshat says, they are rather "long" ;)

Otto Bretscher - 5 years, 3 months ago
Chew-Seong Cheong
Feb 28, 2016

Since k = 0 , i 5 ( x k ) { = 0 if x i 0 if x = i \displaystyle \prod_{k=0,\ne i}^5 (x-k) \begin{cases} = 0 & \text{if } x \ne i \\ \ne 0 & \text{if } x = i \end{cases} , where i = 0 , 1 , 2 , 3 , 4 , 5 i = 0,1,2,3,4,5 , we can write f ( x ) f(x) as follows.

f ( x ) = 2 0 120 k = 1 5 ( x k ) + 2 1 24 k = 0 , 1 5 ( x k ) 2 2 12 k = 0 , 2 5 ( x k ) + 2 3 12 k = 0 , 3 5 ( x k ) 2 4 24 k = 0 , 4 5 ( x k ) 2 5 120 k = 0 4 ( x k ) = 1 120 k = 1 5 ( x k ) + 1 12 k = 0 , 1 5 ( x k ) 1 3 k = 0 , 2 5 ( x k ) + 2 3 k = 0 , 3 5 ( x k ) 2 3 k = 0 , 4 5 ( x k ) 4 15 k = 0 4 ( x k ) f ( 11 ) = 11 ˙ 10 ˙ 9 ˙ 8 ˙ 7 ˙ 6 120 ˙ 11 + 11 ˙ 10 ˙ 9 ˙ 8 ˙ 7 ˙ 6 12 ˙ 10 11 ˙ 10 ˙ 9 ˙ 8 ˙ 7 ˙ 6 3 ˙ 9 + 2 ˙ 11 ˙ 10 ˙ 9 ˙ 8 ˙ 7 ˙ 6 3 ˙ 8 2 ˙ 11 ˙ 10 ˙ 9 ˙ 8 ˙ 7 ˙ 6 3 ˙ 7 + 4 ˙ 11 ˙ 10 ˙ 9 ˙ 8 ˙ 7 ˙ 6 15 ˙ 6 = 252 + 2772 12320 + 27720 31680 + 14784 = 1024 \begin{aligned} f(x) & = -\frac{2^0}{120}\prod_{k=1}^5 (x-k) + \frac{2^1}{24}\prod_{k=0,\ne1}^5 (x-k) - \frac{2^2}{12}\prod_{k=0,\ne2}^5 (x-k) \\ & \quad \quad + \frac{2^3}{12}\prod_{k=0,\ne3}^5 (x-k) - \frac{2^4}{24}\prod_{k=0,\ne4}^5 (x-k) - \frac{2^5}{120}\prod_{k=0}^4 (x-k) \\ & = -\frac{1}{120}\prod_{k=1}^5 (x-k) + \frac{1}{12}\prod_{k=0,\ne1}^5 (x-k) - \frac{1}{3}\prod_{k=0,\ne2}^5 (x-k) \\ & \quad \quad + \frac{2}{3}\prod_{k=0,\ne3}^5 (x-k) - \frac{2}{3}\prod_{k=0,\ne4}^5 (x-k) - \frac{4}{15}\prod_{k=0}^4 (x-k) \\ \Rightarrow f(11) & = - \frac{11\dot{}10\dot{}9 \dot{}8\dot{}7\dot{}6}{120\dot{}11} + \frac{11\dot{}10\dot{}9 \dot{}8\dot{}7\dot{}6}{12\dot{}10} - \frac{11\dot{}10\dot{}9 \dot{}8\dot{}7\dot{}6}{3\dot{}9} \\ & \quad \quad + \frac{2\dot{}11\dot{}10\dot{}9 \dot{}8\dot{}7\dot{}6}{3\dot{}8} - \frac{2\dot{}11\dot{}10\dot{}9 \dot{}8\dot{}7\dot{}6}{3\dot{}7} + \frac{4\dot{}11\dot{}10\dot{}9 \dot{}8\dot{}7\dot{}6}{15\dot{}6} \\ & = -252+2772-12320+27720-31680+14784 = \boxed{1024} \end{aligned}

Yes, another systematic approach, Comrade! (+1)

Otto Bretscher - 5 years, 3 months ago

Same method.

Akshay Yadav - 5 years, 3 months ago

Can u explain the method please?

Saarthak Marathe - 5 years, 3 months ago

Log in to reply

It is called Langrange interpolation. Check out the link .

Consider the product P 0 = ( x 1 ) ( x 2 ) ( x 3 ) ( x 4 ) ( x 5 ) P_0 = (x-1)(x-2)(x-3)(x-4)(x-5) .

P 0 = { 0 when x = 1 , 2 , 3 , 4 , 5 5 ! = 120 when x = 0 P_0 = \begin{cases} 0 & \text{when } x = 1, 2, 3, 4, 5 \\ - 5! = 120 & \text{when }x = 0 \end{cases}

Now, for f 0 = 2 0 f_0 = 2^0 , we can write f 0 = 2 0 120 P 0 = 2 0 120 k = 1 5 ( x k ) f_0 = -\frac{2^0}{120}P_0 = -\frac{2^0}{120} \prod_{k=1}^5 (x-k) . We can write f ( x ) f(x) as follows:

f ( x ) = f 0 + f 1 + f 2 + f 3 + f 4 + f 5 = 2 0 120 P 0 + 2 1 24 P 1 2 2 12 P 2 + 2 3 12 P 3 2 4 24 P 4 2 5 120 P 5 = 2 0 120 k = 1 5 ( x k ) + 2 1 24 k = 0 , 1 5 ( x k ) 2 2 12 k = 0 , 2 5 ( x k ) + 2 3 12 k = 0 , 3 5 ( x k ) 2 4 24 k = 0 , 4 5 ( x k ) 2 5 120 k = 0 4 ( x k ) \begin{aligned} f(x) & = f_0 + f_1 + f_2 + f_3 + f_4 + f_5 \\ & = -\frac{2^0}{120}P_0 + \frac{2^1}{24}P_1 - \frac{2^2}{12}P_2 + \frac{2^3}{12}P_3 - \frac{2^4}{24}P_4 - \frac{2^5}{120}P_5 \\ & = -\frac{2^0}{120}\prod_{k=1}^5 (x-k) + \frac{2^1}{24}\prod_{k=0,\ne1}^5 (x-k) - \frac{2^2}{12}\prod_{k=0,\ne2}^5 (x-k) \\ & \quad \quad + \frac{2^3}{12}\prod_{k=0,\ne3}^5 (x-k) - \frac{2^4}{24}\prod_{k=0,\ne4}^5 (x-k) - \frac{2^5}{120}\prod_{k=0}^4 (x-k) \end{aligned}

Chew-Seong Cheong - 5 years, 3 months ago

Log in to reply

Thank you!

Saarthak Marathe - 5 years, 3 months ago

Found that the function is f ( n ) = x 5 / 120 x 4 / 24 + 5 x 3 / 24 + x 2 / 24 + 47 x / 60 + 1 f(n)=x^5/120-x^4/24+5x^3/24+x^2/24+47x/60+1 through solving a system of equations

This would have been very long !

Akshat Sharda - 5 years, 3 months ago

How did you do that?

Joel Yip - 5 years, 3 months ago

Man you have a lot of patience!! How did you solved the system of equations?

Akshay Yadav - 5 years, 3 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...