Fibonacci Function

Algebra Level 5

Let f ( x ) f(x) be a quintic polynomial such that

f ( 1 ) = 1 f ( 2 ) = 1 f ( 3 ) = 2 f ( 4 ) = 3 f ( 5 ) = 5 f ( 6 ) = 8. \begin{array} { r l } f(1) & = 1 \\ f(2) & = 1 \\ f(3) & = 2 \\ f(4) & = 3 \\ f(5) & = 5 \\ f(6) & = 8. \\ \end{array}

Determine f ( 7 ) f(7) .


Note: Many people are answering this incorrectly because they think it is the Fibonacci sequence, but this problem is asking about a quintic polynomial that passes through those points. That does not necessarily mean the next term behaves as the Fibonacci sequence would.

Insufficient data 12 8 13

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.

19 solutions

Nathan Ramesh
May 29, 2014

We can split up the function into 6 pieces, one for each example given. It's easy to see that the polynomial is

1 15 ( x 1 ) ( x 2 ) ( x 3 ) ( x 4 ) ( x 5 ) 5 24 ( x 1 ) ( x 2 ) ( x 3 ) ( x 4 ) ( x 6 ) \dfrac{1}{15}(x-1)(x-2)(x-3)(x-4)(x-5)-\dfrac{5}{24}(x-1)(x-2)(x-3)(x-4)(x-6) + 1 4 ( x 1 ) ( x 2 ) ( x 3 ) ( x 5 ) ( x 6 ) 1 6 ( x 1 ) ( x 2 ) ( x 4 ) ( x 5 ) ( x 6 ) +\dfrac{1}{4}(x-1)(x-2)(x-3)(x-5)(x-6)-\dfrac{1}{6}(x-1)(x-2)(x-4)(x-5)(x-6) + 1 24 ( x 1 ) ( x 3 ) ( x 4 ) ( x 5 ) ( x 6 ) 1 120 ( x 2 ) ( x 3 ) ( x 4 ) ( x 5 ) ( x 6 ) +\dfrac{1}{24}(x-1)(x-3)(x-4)(x-5)(x-6)-\dfrac{1}{120}(x-2)(x-3)(x-4)(x-5)(x-6)

This is kind of like applying Chinese Remainder Theorem on a polynomial! For example, watch what happens when we plug in 6. The first "term" is 8 which all the other "terms" are 0 because they contain an ( x 6 ) (x-6) .

Evaluating this at x = 7 x=7 we get 8 \boxed{8} .

Wow! :) how did you manage to see it?

Jianzhi Wang - 7 years ago

Log in to reply

How did u do that sum?

Asif Imad - 2 years, 5 months ago

Hey Nathan Ramesh I really appreciate your lucrative solution to this question. Already upvoted. I've heard of the chinese remainder theorem before and kind of intrested in it. Can you provide me a useful source of it for my furthur reading..?? Thanks..

Rahul Singh - 5 years, 11 months ago

And how did you find the polynomial?

Satvik Golechha - 7 years ago

Log in to reply

It is the Lagrange Interpolation formula.

敬全 钟 - 7 years ago

Log in to reply

I was actually unaware that it was called Lagrange Interpolation.

Nathan Ramesh - 7 years ago

Nice! :) Lagrange Interpolation sounds so cool!!!! :D

Happy Melodies - 7 years ago
Krishna Ar
May 28, 2014

The difference construction is a simple yet elite way to solve this. In this method, one draws a table with the values ( f(x) ), D(1), D(2)...uptil D(n) where D(n) indicates the degree of the polynomial. Using the binomial theorem one can also prove that D(n) is always constant. The D(1) here indicates the difference between two consecutive f(X)'s. Similarly D(2) indicates the difference between two consecutives D(1). Thus doing uptil D(5) ..we obtain a relation between the functional results of the polynomial. We find that using the fact D(n) is useful and continue to draw tables backward till D(1) and obtain that difference between f(7) and f(6) is 0. Thus f(7) =8. Whew! :)... SORRY, I didnt know to type this out in LaTeX. My apologies

Hey! People! Ping me back if you didn't get this. I will post the table of difference too :). Just tag me in the comments and say that ...you want more explanation

Krishna Ar - 7 years ago

Log in to reply

i didnt understand why f(7) is 8 again instead of 13.. please post proper solution

suraj koneri - 5 years, 7 months ago

please post a detailed solution.

Avineil Jain - 7 years ago

Log in to reply

Can you please tell me what you didnt understand? That would help me explain it better. I have also posted the table of differences above. I don't know what more can be detailed over here. I f you have a different solution ( u have solved it too), i wud love to see that

Krishna Ar - 7 years ago

Log in to reply

@Krishna Ar Understood it and just made the table for you since you mentioned you could not make it. It is given as a solution.

Avineil Jain - 7 years ago

Can you show me the table, please, thanx

Mihai Gaidau - 5 years, 4 months ago

Really wanta detailed solution. Only in class 10th just yet

Aarabdh Tiwari - 5 years, 7 months ago

Krishna you are a genius.However i hesitate to ask you the detailed answer.Didnt got this one.Hehe.So please if you can post it....Also can you teach me the method and please tell me the source of this method if you want to.I am from india and want to know and learn such great tricks as these.Thankyou.

pranav jangir - 7 years ago

Log in to reply

Here you go. This is the table which you need. Just go through it and tell me if you didn't understand it. :).....Values of f(X)= 1,1,2,3.5,8...Note that we need to find f(7). Now we construct D(1) table and later D(2) table and move on. d1 table has values 0,1,1,2,3,0. D2 table has values 1,0,1,1. d3 table has -1,1,0. D4 table has 2,-1. D5 table has the constant difference (-3). Using this we work backwards and complete and get the values of the incomplete stuff. :) Hope y'got it

Krishna Ar - 7 years ago

Log in to reply

@Krishna Ar why D5 have a constant difference?

yee cheng - 7 years ago

Log in to reply

@Yee Cheng Using the binomial theorem, u can derive it

Krishna Ar - 7 years ago

@Krishna Ar for D1 case values are 0,1,1,2,3,0(???) How does this last 0 is consider

abhishek agrawal - 5 years, 6 months ago

Sure @pranav jangir - I will post the table which contains the differences. Please don't hesitate to ask me anything. I am definitely not a genius. This is not a trick of any sort and just a method which has been proved and designed to ease our calculation.

Krishna Ar - 7 years ago

Log in to reply

@Krishna Ar it might seems that i am stupid but how do you get the vales of D(n)

Ahmed Mahmoud - 3 years ago

Log in to reply

@Ahmed Mahmoud *the values

Ahmed Mahmoud - 3 years ago

Log in to reply

@Ahmed Mahmoud Refer: https://brilliant.org/wiki/method-of-differences/

Hua Zhi Vee - 3 years ago

Then why is the word Fibonacci used for this sequence :@

Hamza Rasheed - 7 years ago

Log in to reply

Leonardo Fibonacci discovered the sequence

Aryan Gaikwad - 5 years, 9 months ago

Yes, this is called the method of Finite Differences . I did the same method as you ^_^

Daniel Liu - 7 years ago

Log in to reply

:D ...... Cool

Krishna Ar - 7 years ago

How is fibonaci string theory differents i was be taught , the number follow after is the ones plus a number stands before it ? May i mistaken ?

Dorae Mon - 7 years ago

Log in to reply

You are correct but it is not the same for this function. It was a trick.

Krishna Ar - 7 years ago

Log in to reply

And it worked!! It has reached level 5. This is the first MCQ problem on Brilliant to get to level 5. @Krishna Ar

Satvik Golechha - 6 years, 12 months ago

Log in to reply

@Satvik Golechha How did you solve that inequality problem? You said you were callow in their applications? Do you think that H&K problem is a tough one? Shud I wait till it gets rated? DId you get that brilli the ant question from Aniket? @Satvik Golechha

Krishna Ar - 6 years, 12 months ago

Log in to reply

@Krishna Ar Krishna Ar That wasn't a really recondite problem. I know basic AM-GM, so I could solve it, and so, that doesn't change the fact of me being callow. That H&K problem is not so difficult, and I'll be surprised if it gets anymore that level 3. But still, its a cool problem, so give it a shot. And it wasn't I who got this problem from Aniket, it was he gho gave it to me.

Satvik Golechha - 6 years, 12 months ago

Log in to reply

@Satvik Golechha @Satvik Golechha - How much have you completed in H&K? Where did you learn AM-GM from? Oh,my! Aniket is such a good source of questions :P Including dis one!

Krishna Ar - 6 years, 12 months ago

Log in to reply

@Krishna Ar I've completed only 3 chaps in H&K. I learnt AM-GM from...........I dunno where.

Satvik Golechha - 6 years, 12 months ago

Log in to reply

@Satvik Golechha Hey! @Satvik Golechha - Dis question has a rating higher than my rating in algebra. :( Wats urs? Dis now has 2127, mine is 2106 :'( I'm crying!!!!!!!!!!

Krishna Ar - 6 years, 12 months ago

Log in to reply

@Krishna Ar You've a gr8 rating' me frien'. Me ratin' is 2001 (:P) BTW Did you get selected in NMTC in any year? Is your aim NMTC or RMO. D'you now that we won't be able to give RMO in 12th class?

Satvik Golechha - 6 years, 12 months ago

Log in to reply

@Satvik Golechha Hi! I never get your replies in my feed. Tag me form now on. I had got selected to NMTC round 2 in class 6,7 and 8. I got ranks ( 2nd level)- 16,24,and 19 respectively. Last year I didnt write because I had taken ill. Yes , I am aiming for them , but don;t know how to succeed as Junior level is bit tougher than the rest due to lot of new concepts being introduced. Yes, I do know That 12thies can't give RMO :( @Satvik Golechha

Krishna Ar - 6 years, 12 months ago

Log in to reply

@Krishna Ar Should we talk to each other some day....you know, we've been good net-friends for a long time, and still we don't know how the other of us looks. @Krishna Ar Have you seen previous year RMO papers? Havyu been able ter solve any of them?

Satvik Golechha - 6 years, 12 months ago

Log in to reply

@Satvik Golechha Damn it :) It reached lvl 4 agn........

Satvik Golechha - 6 years, 12 months ago

Log in to reply

@Satvik Golechha @Satvik Golechha -Do u know Grvil singal and saqib mohammed?

Krishna Ar - 6 years, 12 months ago

Log in to reply

@Krishna Ar Yeah........and they're superb in maths, their ratings account for it. @Krishna Ar How're you going to prepare for RMO & NMTC (except Brilliant, of course).D'you have any more of NMTC papers?

Satvik Golechha - 6 years, 12 months ago

Log in to reply

@Satvik Golechha Are both of them in grade-10? How are they so super awesome in Math!! :-o:?

Krishna Ar - 6 years, 12 months ago

Log in to reply

@Krishna Ar @Krishna Ar Yup, they're, like us, in 10th standard. And I reckon only God knows why they're so super awesome in Math!! P.S. What is (:-o:)??

Satvik Golechha - 6 years, 12 months ago

Log in to reply

@Satvik Golechha @Satvik Golechha - Wil you reply or not? Also, be sure to check out my 2014 ques

Krishna Ar - 6 years, 11 months ago

Log in to reply

@Krishna Ar Yeah....nice problem, but it lacked a good presentation, to be honest........also, I approxxed (my new word) the inequalities and got the answer by crossing out options.......BTW You forgot putting the #2014 tag...

Satvik Golechha - 6 years, 11 months ago

Log in to reply

@Satvik Golechha Oh! Yeah I should have made it tougher :( And, FYI I have tagged it #2014! And, it couldn't have had a better presentation! That's because you can't expect me to type that whole mess out in LaTeX @Satvik Golechha

Krishna Ar - 6 years, 11 months ago

@Satvik Golechha @Satvik Golechha - Hey, is Parth Lohomi your classmate? Is the geometry problem you posted tough? I think you go it from reso sheet.Can you mail it to me? What topics did that sheet cover? WHere did you get your latest ques (Real solution) form?

Krishna Ar - 6 years, 11 months ago

Log in to reply

@Krishna Ar The sheet is a set of 8 questions in all, and its a hard-copy, so I can't send it. I'll try to post all good questions which I find. That question about real speed is entirely mine. I created it!. BTW do you know that it was hardly 20 seconds between myself posting the question and Sharky solving it.... :P

Satvik Golechha - 6 years, 11 months ago

Log in to reply

@Satvik Golechha Oh! :-o....I would appreciate if you could put up a solution :-/ And to your five problem too @Satvik Golechha

Krishna Ar - 6 years, 11 months ago

@Satvik Golechha @Satvik Golechha - I dont have them currently, though I may get some NMTC past papers in the near future

Krishna Ar - 6 years, 12 months ago

Log in to reply

@Krishna Ar @Krishna Ar From where are you planning to get them? If you get them, do I need to tell you to send them to me too (please)?

Satvik Golechha - 6 years, 12 months ago

Log in to reply

@Satvik Golechha @Satvik Golechha -I would probably get them in the form of a book if its available. I shall post some questions from it on Brilliant once I get it. I cant send it as it would be in a book format. Is Divyansh S also your classmate? How all are level 5,level 5, level :-o? :-o means an emoticon expressing shock/awe! Shreyansh is too very samrt! You are better than me, thus I am the worst! Proved! :(

Krishna Ar - 6 years, 12 months ago

Log in to reply

@Krishna Ar @Krishna Ar You are definitely better than me, now your levels also prove that. Ad your gr8 ranks in IMO lvl2, NMTC, etc,,. And they were on Brilliant when the question sets were there, and since then they're in level 5. The AMTI gives some books for NMTC, and you may buy them if you like.......BTW from where did you get that paper which you gave me??

Satvik Golechha - 6 years, 11 months ago

Log in to reply

@Satvik Golechha Hi! @Satvik Golechha -Do you have any of AMTI's books?:-o? How come in Raj you have them? How do you plan to perepare for AMTI? And what difference does it make if I join Brilliant late? What do you mean questions ssets were there...since then? The paper I gave you , I got it ....from my house :P

Krishna Ar - 6 years, 11 months ago

Log in to reply

@Krishna Ar I aven't got any AMT books as o' now, an' me house dusn' giv' me anythin'. Earlier, Billian' was diffren' from what it is today. We got weekly prob'em sets, which had 8 probs in each topic, written by Calvin or Aaron, or posed be pep'l like us'. @Krishna Ar

Satvik Golechha - 6 years, 11 months ago

Log in to reply

@Satvik Golechha Me house? As of now- in the sense you may get them later? What about preparation statregy? Reso must be prepping you for it ;) @Satvik Golechha

Krishna Ar - 6 years, 11 months ago

@Satvik Golechha @Satvik Golechha -Yes, I too want to meet you in person,but I guess that would never happen :( Life's so cruel that it restricted my time on Brilliant to a bare minimum :'(. School has started and it really sucks! No one even knows what functions are and if I'd give this question to them, they'd be like...what any answer other than 13? :P....I can't do higher math and I'm forced to be a dunce! I could barely solve two problems in an RMO paper I saw...maybe more knowledge would help and I must focus on learning more. Whatsay you? I say life sux! :P

Krishna Ar - 6 years, 12 months ago

Log in to reply

@Krishna Ar I understand @Krishna Ar how much life'd suck for you. But you know, I live in an envt. where most of my pals are equal to me in maths. Many a time I've a hard time matching up withem.

Satvik Golechha - 6 years, 12 months ago

Log in to reply

@Satvik Golechha Lucky you! I would love to race with them :P. I guess you have more emphasis on maths and science and we have more emphasis on Mugging and vomitting :P. Aniket's contact?

Krishna Ar - 6 years, 12 months ago

@Satvik Golechha @Satvik Golechha - I think Aniket would top NMTC if he writes it.. Where does he get all these awesome questions form? If its fine with him, can you give me his contact?

Krishna Ar - 6 years, 12 months ago

Log in to reply

@Krishna Ar Well, you know, Aniket gives me these questions from I-dunno-where and this doesn't mean that he can solve em' all........he's a physics guy, and is good in 11th class maths. He'sn't so good in olympiad mathematics...

Satvik Golechha - 6 years, 12 months ago

@Satvik Golechha why not 13?

harikrushna vangala - 6 years, 7 months ago

@Satvik Golechha Ya! Congratulations dear friend! I shouldn't have solved it so early when it had a rating of just 1782. :(

Krishna Ar - 6 years, 12 months ago

Can this be done through Lagrange polynomial?

Mangesh Sonawane - 7 years ago

Log in to reply

Yes it can. Can you tell me more about that?

Krishna Ar - 7 years ago

Too tricky to solve!!!! Still did it.

Shreyansh Vats - 7 years ago

Log in to reply

Wow! Did you use the same method? And could you tell me how to solve "circles surrounded by many circles". I would be grateful @Shreyansh Vats

Krishna Ar - 7 years ago

Log in to reply

Well, honestly I began solving in the same manner but just lost the path. I could still fathom the answer somehow (and that's what matters!!!). And for "circles surrounded by many circles" problems, even I have been looking out for a solution to them. I would ecstatically share it when I figure one out. @Krishna Ar

Shreyansh Vats - 7 years ago

F (1)=1 , f (2)=1 , f (3)= 1+1=2, f (4)= 1+2=3, f (5)= 2+3=5, f (6) = 3+5=8, so f (7) = 5+3=13

safwat garas - 7 years ago

Log in to reply

I think 5+3=8

Saigeetha Jayakumar - 6 years, 3 months ago

But by the fundamental theorem of Algebra, if the polynomial (of degree 5) f ( x ) = F n f\left( x \right) ={ F }_{ n } for 5 + 1 = 6 5 + 1 = 6 values of n n , then f ( x ) = F n f\left( x \right) ={ F }_{ n } for all values of n n .

Aryan Gaikwad - 5 years, 9 months ago

This is actually called "finite differences" https://en.wikipedia.org/wiki/Finite_difference If any of you know calculus, you know that the nth derivative of a polynomial of degree n is a constant--namely the leading coefficient. This is not the fibonacci sequence because the question explicitly said "quintic polynomial"

Jonathan Yang - 5 years, 5 months ago

use this [http://s1.daumcdn.net/editor/fp/service nc/pencil/Pencil chromestore.html] and then put it inside Latex

Rishabh Deep Singh - 5 years, 4 months ago

We can make a linear system and solve it by gauss elimenation

ahmed alaradi - 4 years, 11 months ago

am i the only one who used excel's data trendline to solve this?

Tarun Akash - 2 years, 1 month ago

Can u give the solution in a algorithmic way please

Hitesh Sai - 7 years ago

The answer is 13

safwat garas - 7 years ago

Log in to reply

No. Itsn't.

Satvik Golechha - 6 years, 12 months ago

f(n)= f(n-1)+ f(n-2) f(7)= f(6) + f(5)= 13

parviz noori - 6 years, 12 months ago

No, the correct answer is 13 as long as F(0)=0. If F(0)=1 then f(7)=8... U indians, don't let me donw next time!

http://en.wikipedia.org/wiki/Fibonacci_number

Yuri Dechiche - 6 years, 12 months ago

Log in to reply

Well, it is not Indians who have let you down, it is you yourself. And let me make it very clear that this question is perfectly correct, and the only person to dispute it in its 4000 viewers is you. And it is I who has posted this problem, so you should say what you want directly to me. What's the point to blame all Indians for that.

Satvik Golechha - 6 years, 12 months ago

Log in to reply

Well said, @Satvik Golechha , Well said.

Mehul Arora - 5 years, 3 months ago

Log in to reply

@Mehul Arora Absolutely well said , we have more manners to be cool and calm .

Aditya Narayan Sharma - 5 years, 2 months ago

@Mehul Arora Absolutely Agreed. 😎

Hua Zhi Vee - 3 years, 5 months ago

It said quintic polynomial (degree 5), so obviously it is not the Fibonacci numbers. Read that wiki. Did you even read it before you link it to us?

Hua Zhi Vee - 3 years, 5 months ago

Taking the original problem as given and doing the same finite difference method to find f(0) yields f(0) = 8.

If you change the problem so there is no information about f(6) and f(0) is given as equaling 0, then the finite difference method shows that f(6) = 16.

This quintic polynomial bears only a superficial similarity to the Fibonacci sequence, and 13 is offered as a possible multiple choice answer only to confuse you.

Emily Falces - 3 years, 2 months ago
Avineil Jain
May 30, 2014

NOTE \textbf{NOTE} - I just have understood the solution given by Krishna Ar and made a table for it as the problem writer couldn't make a table. This Solution is not mine \textbf{not mine}

f ( x ) D 1 D 2 D 3 D 4 D 5 1 1 0 2 1 0 3 1 0 1 5 2 1 1 2 8 3 1 0 1 3 f ( 7 ) 0 3 4 4 3 \begin{array}{c|c|c|c|c|c}f(x) & D_{1} & D_{2} & D_{3} & D_{4} & D_{5}\\\hline 1\\\hline 1 & 0\\\hline 2 & 1 & 0\\\hline3 & 1 & 0 & -1\\\hline5 & 2 & 1 & 1 & 2\\\hline8 & 3 & 1 & 0 & -1 & -3\\\hline f(7) & 0 & -3 & -4 & -4 & -3 \\\hline \end{array}

Hence, f ( 7 ) = 8 f(7) = 8

I have seen all these solutions but understood none of them can someone explain it to me

skaid dkhu - 7 years ago

Log in to reply

Check out the wiki - https://brilliant.org/wiki/method-of-differences/#method-of-differences It's really helpful!

Arulx Z - 5 years, 7 months ago

There is an error in the table .. for f(3), D2=1, not 0.

David Moore - 5 years, 7 months ago

Log in to reply

The only comment saying "there is an error" that is actually correct :)

Vilim Lendvaj - 2 years, 9 months ago

Thank you very much @Avineil Jain :D Can you teach me how to make such tables? Did you have a different solution?

Krishna Ar - 7 years ago

Log in to reply

@Krishna Ar the formatting is a simple array! You can find more by searching at Google!

Carl Joshua Quines - 7 years ago

Log in to reply

Thanks....

Krishna Ar - 7 years ago

My solution relied on brute force. solved 6 variables! to learn latex, see this https://brilliant.org/discussions/thread/beginner-latex-guide/

Avineil Jain - 7 years ago

Log in to reply

Thanks ...

Krishna Ar - 7 years ago

how did you think of this table..........i mean is there a name for this........

waqar vickzza - 7 years ago

Log in to reply

Using binomial theorem or general algebra one can generalize such solutions, please look up to my solution and hope you understand :)

Krishna Ar - 7 years ago

How do you know that difference will be 0

Trevor Arashiro - 6 years, 5 months ago

Log in to reply

You work backwards from D5=-3 to find D4, D3, D2, and finally D1=0. We know D5 is -3 because a polynomial of degree 5 will have a constant D5 (see wiki sited earlier).

Isaac Nichols - 4 years, 10 months ago

Log in to reply

I didnt understand the last part " we know d5 ......" Can u explain it again?

AMiR E - 2 years, 8 months ago

How D5 is constant

RITIK ROUSHAN - 2 years, 2 months ago
Shyan Akmal
Jun 1, 2014

First define the polynomial g ( x ) = f ( x + 1 ) f ( x ) g(x) = f(x+1) - f(x) . We easily get that g ( 1 ) = 0 , g ( 2 ) = g ( 3 ) = 1 , g ( 4 ) = 2 , g(1) = 0, g(2) = g(3) = 1, g(4) = 2, and g ( 5 ) = 3 g(5) = 3 .

Now define h ( x ) = g ( x + 1 ) g ( x ) h(x) = g(x+1) - g(x) , so that h ( 1 ) = h ( 3 ) = h ( 4 ) = 1 h(1) = h(3) = h(4) = 1 and h ( 2 ) = 0 h(2)=0 .

Now we must have for some constant c c that h ( x ) = c ( x 1 ) ( x 3 ) ( x 4 ) + 1 h(x) = c(x-1)(x-3)(x-4)+1 , since the polynomial h ( x ) 1 h(x)-1 has roots at x = 1 , 3 , 4. x=1,3,4. .

Of course, we also have h ( 2 ) = 0 h(2) = 0 , which means that c = 1 2 c=-\frac{1}{2} .

Now we simply have f ( 7 ) = f ( 6 ) + g ( 6 ) = 8 + g ( 6 ) = f(7) = f(6) + g(6) = 8+g(6)= = 8 + g ( 5 ) = h ( 5 ) = =8+g(5)=h(5) = = 11 + 1 1 2 ( 5 1 ) ( 5 3 ) ( 5 4 ) = 12 4 = 8. = 11 + 1 -\frac{1}{2}\cdot (5-1)(5-3)(5-4) = 12 - 4 =8.

h ( x ) s h(x)'s degree must be 5 but you showed that its 3 ? ? ? 3??? and also as h ( 2 ) = 0 h(2)=0 , 2 2 must be a root. You got the answer by luck.

mietantei conan - 7 years ago

Log in to reply

Why dont you post a proper solution in this method? I t wud be nice. @mietantei conan

Krishna Ar - 6 years, 11 months ago
Aviel Livay
Oct 12, 2016

The definition of a quintic polynomial is f ( x ) = a x 5 + b x 4 + c x 3 + d x 2 + e x 1 + f f(x) = ax^5+bx^4+cx^3+dx^2+ex^1+f

in our case

f ( 1 ) = a 1 5 + b 1 4 + c 1 3 + d 1 2 + e 1 1 + f = a + b + c + d + e + f = 1 f(1)=a*1^5+b*1^4+c*1^3+d*1^2+e*1^1+f = a + b + c + d + e + f = 1 f ( 2 ) = a 2 5 + b 2 4 + c 2 3 + d 2 2 + e 2 1 + f = 32 a + 16 b + 8 c + 4 d + 2 e + f = 1 f(2)=a*2^5+b*2^4+c*2^3+d*2^2+e*2^1+f = 32a + 16b + 8c + 4d + 2e + f = 1 f ( 3 ) = a 3 5 + b 3 4 + c 3 3 + d 3 2 + e 3 1 + f = 243 a + 81 b + 27 c + 9 d + 3 e + f = 2 f(3)=a*3^5+b*3^4+c*3^3+d*3^2+e*3^1+f = 243a + 81b + 27c + 9d + 3e + f = 2 f ( 4 ) = a 4 5 + b 4 4 + c 4 3 + d 4 2 + e 4 1 + f = 1024 a + 256 b + 64 c + 16 d + 4 e + f = 3 f(4)=a*4^5+b*4^4+c*4^3+d*4^2+e*4^1+f = 1024a + 256b + 64c + 16d + 4e + f = 3 f ( 5 ) = a 5 5 + b 5 4 + c 5 3 + d 5 2 + e 5 1 + f = 3125 a + 625 b + 125 c + 25 d + 5 e + f = 5 f(5)=a*5^5+b*5^4+c*5^3+d*5^2+e*5^1+f = 3125a + 625b + 125c + 25d + 5e + f = 5 f ( 6 ) = a 6 5 + b 6 4 + c 6 3 + d 6 2 + e 6 1 + f = 7776 a + 1296 b + 216 c + 36 d + 6 e + f = 8 f(6)=a*6^5+b*6^4+c*6^3+d*6^2+e*6^1+f = 7776a + 1296b + 216c + 36d + 6e + f = 8

We got 6 linear equations with 6 variables.

Solving -

a = 1 40 a=-\frac{1}{40} b = 11 24 b=\frac{11}{24} c = 25 8 c=-\frac{25}{8} d = 241 24 d=\frac{241}{24} e = 287 20 e=-\frac{287}{20} f = 8 f=-8

and now

f ( 7 ) = a 7 5 + b 7 4 + c 7 3 + d 7 2 + e 7 1 + f = 16807 1 40 + 2401 11 24 + 343 25 8 + 49 241 24 + 7 287 20 8 = 8 f(7)=a*7^5+b*7^4+c*7^3+d*7^2+e*7^1+f = 16807*-\frac{1}{40} + 2401*\frac{11}{24} + 343*-\frac{25}{8} + 49*\frac{241}{24} + 7*-\frac{287}{20} - 8 = \boxed{8}

I did it in the same way. Love seeing all the solutions here.

Jasper Eenhoorn - 4 years, 1 month ago

This was also what I thought but did not continue..how did you solve this 6 eqns 6 unknowns in a maybe shortcut way??

David Louie Bedia - 2 years, 9 months ago

this is a long way

Nitin Kumar - 1 year, 3 months ago
Boris Barron
Jan 9, 2016

Since the 5th difference will be constant.

Working backwards with finite differences. Smart!

Matt P - 4 years, 4 months ago

Most elegant solution I've seen. Bravo!

Asa Schiller - 2 years, 4 months ago
Patrick Corn
May 29, 2014

Lagrange interpolation gives f ( x ) = 1 40 x 5 + 11 24 x 4 25 8 x 3 + 241 24 x 2 287 20 x + 8 f(x) = -\frac1{40}x^5 + \frac{11}{24}x^4 - \frac{25}8x^3 + \frac{241}{24}x^2 - \frac{287}{20}x + 8 , so f ( 7 ) = 8 f(7) = 8 . Not the most elegant solution!

What is Lagrange interpolation?

Satvik Golechha - 7 years ago

Log in to reply

http://mathworld.wolfram.com/LagrangeInterpolatingPolynomial.html

You can look at Nathan Ramesh's solution as well, since he uses Lagrange interpolation (without identifying it by name).

Patrick Corn - 7 years ago
Evan Yao
Jun 15, 2014

Let f 5 ( x ) = a x 5 + b x 4 + c x 3 + d x 2 + e x + f f_5(x)=ax^5+bx^4+cx^3+dx^2+ex+f . Notice that if we let f 4 ( x ) = f 5 ( x + 1 ) f 5 ( x ) f_4(x) = f_5(x+1) - f_5(x) , then f 4 f_4 is a fourth degree polynomial. Again, let f 3 ( x ) = f 4 ( x + 1 ) f 4 ( x ) f_3(x) = f_4(x+1) - f_4(x) , so f 3 f_3 is a third degree polynomial. We continue doing this until and define f 0 f_0 which is a constant function (or 0th degree polynomial).

Now, we know f 5 ( 1 ) . . . f 5 ( 6 ) f_5(1)...f_5(6) so we can easily find f 4 ( 1 ) . . . f 4 ( 5 ) f_4(1)...f_4(5) , and then we can find f 3 ( 1 ) . . . f 3 ( 4 ) f_3(1)...f_3(4) and so on. We eventually find that f 0 ( 1 ) = 3 f_0(1) = -3 . But, since f 0 f_0 is a constant function, f 0 ( 2 ) f_0(2) must also be 3 -3 . Using that, we can calculate f 1 ( 3 ) f_1(3) , which we didn't before because we only know f 1 ( 1 ) , f 1 ( 2 ) f_1 (1), f_1(2) . Then, working out way back up, we can easily calculate f 5 ( 7 ) f_5(7) .

In a diagram, this looks like:

f 5 f_5 1 1 2 3 5 8 8

f 4 f_4 0 1 1 2 3 0

f 3 f_3 1 0 1 1 -3

f 2 f_2 -1 1 0 -4

f 1 f_1 - 2 -1 -4

f 0 f_0 -3 -3

The Fibonacci numbers are just there to trick you! In fact, if you were to construct a 6th degree polynomial with f(1)...f(7) equal to 1,1,2,3,5,8, and 13, I bet you f(8) will not be 21.

Ok; I see how the answer now is 8. All my friends said 13, but I was the only one to say "8". xD They were thinking of using Fibonacci's Sequence.

Lew Sterling Jr - 6 years, 7 months ago

Could you do something similar with values which are not in an arithmetic progression?

Romain Farthoat - 4 years, 11 months ago
Andrea Marino
Jun 15, 2014

<p> I will integrate the solution with a general method. </p> <p> When you have a polynomial of degree n n with n + 1 n+1 fixed values, the polynomial is fixed too. There are mainly three ways to work out the polynomial: </p> <p> 1) By hand . If p ( a ) = y p(a) = y , then <br /> </p> <p> p ( x ) = y + ( x a ) q ( x ) p(x) = y+ (x-a) q(x) <br /> </p> <p> for some polynomial q ( x ) q(x) such that deg q = deg p 1 \deg q = \deg p -1 . If you put the values you know into the polynomial you'll gradually construct it. <br />
</p> <p> 2) Lagrange formula . Suppose you know that <br /> </p> <p> p ( x i ) = y i p(x_i) = y_i , for i = 0 , , n i=0, \ldots, n .<br /> </p> <p> We want to costruct some polynomials p i ( x ) p_i(x) for i = 0 , , n i=0, \ldots, n such that ( divide et impera method): <br /> </p> <p> p i ( x i ) = 1 p_i(x_i) = 1 and p i ( x j ) = 0 p_i(x_j) = 0 for every j i j \neq i . <br /> </p> <p> We note that <br /> </p> <p> p i ( x ) = j i ( x x j ) ( x i x j ) \displaystyle p_i(x) = \prod_{j \neq i} \frac{ (x-x_j) }{ (x_i -x_j)} <br /> </p> <p>is exactly what we were searching for. So our p ( x ) p(x) is (why?) </p> <p> p ( x ) = i = 0 n y i p i ( x ) = i = 0 n j i ( x x j ) ( x i x j ) \displaystyle p(x) = \sum_{i=0}^n y_i p_i(x) = \sum_{i=0}^n \prod_{j \neq i} \frac{ (x-x_j)}{(x_i-x_j)} </p> </p> <p> 3) Finite difference polynomials . Let's define, for every polynomial p p : </p> <p> p i ( x ) = p i 1 ( x + 1 ) p i 1 ( x ) p_i(x) = p_{i-1}(x+1)-p_{i-1}(x) , where p 0 ( x ) = p ( x ) p_0(x) = p(x) . </p> <p> You can easily check that deg p i + 1 = deg p i 1 \deg p_{i+1} = \deg p_i - 1 if deg p i + 1 > 0 \deg p_{i+1} > 0 . This means, by induction, that deg p i = n i \deg p_i =n -i for i = 0 , , n i=0, \ldots, n , where n = deg p n= \deg p , i.e. p n ( x ) p_n(x) is constant. </p> <p>This observations are not enough to work out to polynomial, but allow to find other values of the polynomial.
</p> <p>Suppose you know that p ( i ) = y i p(i) = y_i for i = 0 , , n i=0,\ldots, n . <br /> </p> <p>Let's construct the FDA (finite difference array) in this way: </p> <p> LINE 1: p ( 0 ) , , p ( n ) p(0), \ \ \ \ldots \ \ \ , p(n) </p> <p> LINE 2: p 1 ( 0 ) , , p 1 ( n 1 ) \ \ p_1(0), \ \ \ldots \ \ , p_1(n-1) </p> <p> .. </p> <p> LINE i + 1 i+1 : p i ( 0 ) , , p i ( n i ) p_i(0), \ \ \ldots \ \ , p_i(n-i) <br /> </p> <p> .. </p> <p> LINE n + 1 n+1 : p n ( 0 ) p_n(0) </p> <p> Now, using the fact that p n p_n is constant, you can find the value of p ( n + 1 ) p(n+1) by going from the bottom to the top of the pyramid. </p> <p> A little bit more. There is a way to work out the polynomial with FDA. Let's call c i = p i ( 0 ) c_i = p_i(0) . We claim that </p> <p> p ( x ) = i = 0 n c i ( x i ) ( ) \displaystyle p(x) = \sum_{i=0}^n c_i \binom{x}{i} (*) </p> <p> where ( x k ) = x ( x k + 1 ) k ! \displaystyle \binom{x}{k} = \frac{ x \cdot \ldots \cdot (x-k+1)}{k!} . </p> <p> If q ( x ) = ( x k ) \displaystyle q(x) = \binom{x}{k} ,you can easily verify that q i ( x ) = ( x k i ) \displaystyle q_i(x) = \binom{x}{k-i} for i = 0 , , k i=0, \ldots, k using the fact that ( x + 1 k ) ( x k ) = ( x k 1 ) \displaystyle \binom{x+1}{k} - \binom{x}{k} = \binom{x}{k-1} , and 0 if i > k i>k . Then we can verify that (*) holds by demonstrating that p i ( 0 ) = c i p_i(0) = c_i : </p> <p> p i ( 0 ) = j = 0 n c j ( 0 j i ) = c i \displaystyle p_i(0) = \sum_{j=0}^n c_j \binom{0}{j-i} = c_i </p> <p> because ( 0 i ) \binom{0}{i} is 0 if i 0 i \neq 0 and 1 if i = 0 i=0 . </p> Aargh, this is the less professional place where to write math. I can't find a newline command which preserve latex (as markdown doesn't do). Can you help me?

Jubayer Nirjhor
Jun 1, 2014

A straightforward application of Lagrange Interpolation Formula .

Mat Baluch
Jul 7, 2015

Here is a solution requiring moderate algebra, somehow intermediate between the 6 variable equation resolution, and the more clever solutions presented in other comments (with finite differences of f).

We can notice that this category of problem usually involves finding a function which has the same value as f on the given points.

The simplest (linear) function that we can quickly identify is

g ( x ) = x 1 g(x) = x - 1

g equals f on x = 2 , 3 , 4 x = 2, 3, 4 such that if

h ( x ) = f ( x ) g ( x ) h(x) = f(x) - g(x)

Then h can be written :

h ( x ) = ( x 2 ) ( x 3 ) ( x 4 ) P ( x ) h(x) = (x-2)(x-3)(x-4)P(x)

Where P [ X ] P[X] is a polynom of degree 2.

Solving P for x = 1 , x = 5 , x = 6 x = 1, x = 5, x = 6

We find:

P ( x ) = 1 40 x 2 + 7 30 x + 9 24 P(x) = \frac{-1}{40} x^2 + \frac{7}{30} x + \frac{-9}{24}

And the exact expression for f

f ( x ) = ( x 2 ) ( x 3 ) ( x 4 ) ( 1 40 x 2 + 7 30 x + 9 24 ) + ( x 1 ) f(x) = (x-2)(x-3)(x-4) (\frac{-1}{40} x^2 + \frac{7}{30} x + \frac{-9}{24}) + (x-1)

Lu Chee Ket
Aug 27, 2014

With F(x) = a x^5 + b x^4 + c x^3 + d x^2 + e x + f, joining (1, 1), (2, 1), (3, 2), (4, 3), (5, 5), (6, 8) and finding (7, ?). Substitutes all points to function to form 6 simultaneous equations of 6 unknowns namely a, b, c, d, e and f. Solve by Cramer's formulation for evaluating seven 6 x 6:

D = -34560;

Da = 864 => a = -0.025;

Db = -15840 => b = 0.4583333+;

Dc = 108000 => c = -3.125;

Dd = -347040 => d = 10.0416666+;

De = 495936 => e = -14.35;

Df = -276480 => f = 8;

Therefore F(7) = 8. We can draw and observe. You would appreciate the curve. {The 'f' is taken as constant while replaced with 'F'.} Quintic curve is not suitable for interpolation for Fibonacci Function outside its actual range. Nevertheless, non-integers in between are good.

Let f(x) =ax^5+bx^4+cx^3+dx^2+ex+f, and evaluate in x=1,2...6. You will have a 6x6 system. Solve it and you will get the coeficients of f(x), Then evaluate f(7)=8

Wont it take months to solve it by your way?...........without a calc, of course!

Satvik Golechha - 7 years ago

Log in to reply

No... You can apply some (fortunate) shortcuts(?)... Write out a x 5 + b x 4 + c x 3 + d x 2 + e x + f ax^{5}+bx^{4}+cx^{3}+dx^{2}+ex+f as: ( x 1 ) ( x 2 ) ( p x 3 + q x 2 + r x + s ) + 1 (x-1)(x-2)(px^{3}+qx^{2}+rx+s) + 1 Now the task is to find the cubic... yet solving four linear equations in four variables is still undesirable... call this cubic g ( x ) g(x) , and notice that g ( 4 ) = g ( 5 ) = 1 3 g(4)=g(5)=\frac{1}{3} so this cubic in turn becomes: u ( x 4 ) ( x 5 ) ( x v ) + 1 3 u(x-4)(x-5)(x-v) + \frac{1}{3} Now use the information for values at x=3, x=6, to solve only TWO(!) linear equations to find u u and v v ...

Aditya Kumar - 7 years ago
Icholus Qln
Sep 11, 2019

Iain Tarves
Apr 16, 2018

There is a very long, convoluted process that you can perform using row reduction , or, more specifically, Gaussian elimination. If one has ever tried applying linear algebra to solve giant systems of linear equations, using and simplifying augmented matrices using Gaussian elimination is a safe and easy, but very complicated, way to go about solving problems like these.

First of all, the general form of a quintic function is f ( x ) = A x 5 + B x 4 + C x 3 + D x 2 + E x + F f(x) = Ax^5 + Bx^4 + Cx^3 + Dx^2 + Ex + F . The coefficients, A , B , C , D , E , and F , are what we do not know and wish to solve for, and, fortunately, we are given six inputs and outputs of the function, and we have six unknowns. This means that we can set up a system of six linear equations in six unknowns.

However, to compact our system into a more reasonable space, we can put the coefficients of the unknowns (which you get by substituting the function arguments given in the problem for where there is an x ) inside an augmented matrix. Then, using Gaussian elimination, the row echelon form of the initial matrix is

The row reduction process takes 21 steps, most of which have been omitted to just the original matrix and the final matrix in row echelon form. Try this on your own if the details seem hazy to you.

If one does not know linear algebra and is not comfortable with Gaussian elimination, I would not recommend that one use this approach, but it is a much faster method than using the elimination method of linear combination for solving linear systems of equations.

Just some quick refreshers: row echelon form is when a matrix has all 1's as leading entries (nonzero entries that come first in a row of their kind), each leading entry is to the right and below the previous leading entry, and that rows with all zeros are at the bottom of the matrix. An augmented matrix is an array of numbers that has extra columns separated from the main columns by a divider. Gaussian elimination is the process through which a matrix can be reduced to row echelon form. (There is a longer procedure called Gauss-Jordan elimination, which changes the matrix to reduced row echelon form, which has all the properties of row echelon form and an additional rule that each leading entry must be the only nonzero entry in its column.)

Iain Tarves - 3 years, 1 month ago

Could not think of a way so I solved it in MATLAB :P

A=[ 1 1 1 1 1 1 ; 2^5 2^4 2^3 2^2 2^1 1; 3^5 3^4 3^3 3^2 3^1 1; 4^5 4^4 4^3 4^2 4^1 1;5^5 5^4 5^3 5^2 5^1 1;6^5 6^4 6^3 6^2 6^1 1];

b=[1;1;2;3;5;8];

x=inv(A)*b;

x(1) 7^5+x(2) 7^4+x(3) 7^3+x(4) 7^2+x(5)*7+x(6) %=8

Lagrange interpolation was of course the solution but I did not come up with it by myself.

Omar El Amrani
Jan 3, 2016

I think that it would be better to have this as some logical sequence, than a math problem (well it would be an easy logic test btw)

Elkio deAtn
Oct 16, 2015

Hwang Seung Hwan
Jun 1, 2014

f(x+1)-f(x)=a(x-5)(x-4)(x-3)(x-b) , where a,b are constants. input x=2,1 to determine a,b and we get a=-1/8,b=2/3. At the end, input x=6

OH!! I am sorry. There is a mistake. f(x+1)-f(x)-(x-2)=a(x-5)(x-4)(x-3)(x-b)

Hwang seung hwan - 7 years ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...