Let f ( x ) be a quintic polynomial such that
f ( 1 ) f ( 2 ) f ( 3 ) f ( 4 ) f ( 5 ) f ( 6 ) = 1 = 1 = 2 = 3 = 5 = 8 .
Determine 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.
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.
Wow! :) how did you manage to see it?
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..
And how did you find the polynomial?
Log in to reply
It is the Lagrange Interpolation formula.
Log in to reply
I was actually unaware that it was called Lagrange Interpolation.
Nice! :) Lagrange Interpolation sounds so cool!!!! :D
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
Log in to reply
i didnt understand why f(7) is 8 again instead of 13.. please post proper solution
please post a detailed solution.
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
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.
Can you show me the table, please, thanx
Really wanta detailed solution. Only in class 10th just yet
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.
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
Log in to reply
@Krishna Ar – why D5 have a constant difference?
@Krishna Ar – for D1 case values are 0,1,1,2,3,0(???) How does this last 0 is consider
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.
Log in to reply
@Krishna Ar – it might seems that i am stupid but how do you get the vales of D(n)
Log in to reply
@Ahmed Mahmoud – *the values
Log in to reply
@Ahmed Mahmoud – Refer: https://brilliant.org/wiki/method-of-differences/
Then why is the word Fibonacci used for this sequence :@
Yes, this is called the method of Finite Differences . I did the same method as you ^_^
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 ?
Log in to reply
You are correct but it is not the same for this function. It was a trick.
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
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
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.
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!
Log in to reply
@Krishna Ar – I've completed only 3 chaps in H&K. I learnt AM-GM from...........I dunno where.
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!!!!!!!!!!
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?
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
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?
Log in to reply
@Satvik Golechha – Damn it :) It reached lvl 4 agn........
Log in to reply
@Satvik Golechha – @Satvik Golechha -Do u know Grvil singal and saqib mohammed?
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?
Log in to reply
@Satvik Golechha – Are both of them in grade-10? How are they so super awesome in Math!! :-o:?
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:)??
Log in to reply
@Satvik Golechha – @Satvik Golechha - Wil you reply or not? Also, be sure to check out my 2014 ques
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...
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
@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?
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
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
@Satvik Golechha – @Satvik Golechha - I dont have them currently, though I may get some NMTC past papers in the near future
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)?
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! :(
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??
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
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
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
@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
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.
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?
@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?
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 – why not 13?
@Satvik Golechha – Ya! Congratulations dear friend! I shouldn't have solved it so early when it had a rating of just 1782. :(
Can this be done through Lagrange polynomial?
Too tricky to solve!!!! Still did it.
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
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
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
But by the fundamental theorem of Algebra, if the polynomial (of degree 5) f ( x ) = F n for 5 + 1 = 6 values of n , then f ( x ) = F n for all values of n .
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"
use this [http://s1.daumcdn.net/editor/fp/service nc/pencil/Pencil chromestore.html] and then put it inside Latex
We can make a linear system and solve it by gauss elimenation
am i the only one who used excel's data trendline to solve this?
Can u give the solution in a algorithmic way please
The answer is 13
f(n)= f(n-1)+ f(n-2) f(7)= f(6) + f(5)= 13
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
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.
Log in to reply
Well said, @Satvik Golechha , Well said.
Log in to reply
@Mehul Arora – Absolutely well said , we have more manners to be cool and calm .
@Mehul Arora – Absolutely Agreed. 😎
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?
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.
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
f ( x ) 1 1 2 3 5 8 f ( 7 ) D 1 0 1 1 2 3 0 D 2 0 0 1 1 − 3 D 3 − 1 1 0 − 4 D 4 2 − 1 − 4 D 5 − 3 − 3
Hence, f ( 7 ) = 8
I have seen all these solutions but understood none of them can someone explain it to me
Log in to reply
Check out the wiki - https://brilliant.org/wiki/method-of-differences/#method-of-differences It's really helpful!
There is an error in the table .. for f(3), D2=1, not 0.
Log in to reply
The only comment saying "there is an error" that is actually correct :)
Thank you very much @Avineil Jain :D Can you teach me how to make such tables? Did you have a different solution?
Log in to reply
@Krishna Ar the formatting is a simple array! You can find more by searching at Google!
My solution relied on brute force. solved 6 variables! to learn latex, see this https://brilliant.org/discussions/thread/beginner-latex-guide/
how did you think of this table..........i mean is there a name for this........
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 :)
How do you know that difference will be 0
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).
Log in to reply
I didnt understand the last part " we know d5 ......" Can u explain it again?
How D5 is constant
First define the polynomial g ( x ) = f ( x + 1 ) − f ( x ) . We easily get that g ( 1 ) = 0 , g ( 2 ) = g ( 3 ) = 1 , g ( 4 ) = 2 , and g ( 5 ) = 3 .
Now define h ( x ) = g ( x + 1 ) − g ( x ) , so that h ( 1 ) = h ( 3 ) = h ( 4 ) = 1 and h ( 2 ) = 0 .
Now we must have for some constant c that h ( x ) = c ( x − 1 ) ( x − 3 ) ( x − 4 ) + 1 , since the polynomial h ( x ) − 1 has roots at x = 1 , 3 , 4 . .
Of course, we also have h ( 2 ) = 0 , which means that c = − 2 1 .
Now we simply have f ( 7 ) = f ( 6 ) + g ( 6 ) = 8 + g ( 6 ) = = 8 + g ( 5 ) = h ( 5 ) = = 1 1 + 1 − 2 1 ⋅ ( 5 − 1 ) ( 5 − 3 ) ( 5 − 4 ) = 1 2 − 4 = 8 .
h ( x ) ′ s degree must be 5 but you showed that its 3 ? ? ? and also as h ( 2 ) = 0 , 2 must be a root. You got the answer by luck.
Log in to reply
Why dont you post a proper solution in this method? I t wud be nice. @mietantei conan
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
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 ( 2 ) = a ∗ 2 5 + b ∗ 2 4 + c ∗ 2 3 + d ∗ 2 2 + e ∗ 2 1 + f = 3 2 a + 1 6 b + 8 c + 4 d + 2 e + f = 1 f ( 3 ) = a ∗ 3 5 + b ∗ 3 4 + c ∗ 3 3 + d ∗ 3 2 + e ∗ 3 1 + f = 2 4 3 a + 8 1 b + 2 7 c + 9 d + 3 e + f = 2 f ( 4 ) = a ∗ 4 5 + b ∗ 4 4 + c ∗ 4 3 + d ∗ 4 2 + e ∗ 4 1 + f = 1 0 2 4 a + 2 5 6 b + 6 4 c + 1 6 d + 4 e + f = 3 f ( 5 ) = a ∗ 5 5 + b ∗ 5 4 + c ∗ 5 3 + d ∗ 5 2 + e ∗ 5 1 + f = 3 1 2 5 a + 6 2 5 b + 1 2 5 c + 2 5 d + 5 e + f = 5 f ( 6 ) = a ∗ 6 5 + b ∗ 6 4 + c ∗ 6 3 + d ∗ 6 2 + e ∗ 6 1 + f = 7 7 7 6 a + 1 2 9 6 b + 2 1 6 c + 3 6 d + 6 e + f = 8
We got 6 linear equations with 6 variables.
Solving -
a = − 4 0 1 b = 2 4 1 1 c = − 8 2 5 d = 2 4 2 4 1 e = − 2 0 2 8 7 f = − 8
and now
f ( 7 ) = a ∗ 7 5 + b ∗ 7 4 + c ∗ 7 3 + d ∗ 7 2 + e ∗ 7 1 + f = 1 6 8 0 7 ∗ − 4 0 1 + 2 4 0 1 ∗ 2 4 1 1 + 3 4 3 ∗ − 8 2 5 + 4 9 ∗ 2 4 2 4 1 + 7 ∗ − 2 0 2 8 7 − 8 = 8
I did it in the same way. Love seeing all the solutions here.
This was also what I thought but did not continue..how did you solve this 6 eqns 6 unknowns in a maybe shortcut way??
this is a long way
Since the 5th difference will be constant.
Working backwards with finite differences. Smart!
Most elegant solution I've seen. Bravo!
Lagrange interpolation gives f ( x ) = − 4 0 1 x 5 + 2 4 1 1 x 4 − 8 2 5 x 3 + 2 4 2 4 1 x 2 − 2 0 2 8 7 x + 8 , so f ( 7 ) = 8 . Not the most elegant solution!
What is Lagrange interpolation?
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).
Let f 5 ( x ) = a x 5 + b x 4 + c x 3 + d x 2 + e x + f . Notice that if we let f 4 ( x ) = f 5 ( x + 1 ) − f 5 ( x ) , then f 4 is a fourth degree polynomial. Again, let f 3 ( x ) = f 4 ( x + 1 ) − f 4 ( x ) , so f 3 is a third degree polynomial. We continue doing this until and define f 0 which is a constant function (or 0th degree polynomial).
Now, we know f 5 ( 1 ) . . . f 5 ( 6 ) so we can easily find f 4 ( 1 ) . . . f 4 ( 5 ) , and then we can find f 3 ( 1 ) . . . f 3 ( 4 ) and so on. We eventually find that f 0 ( 1 ) = − 3 . But, since f 0 is a constant function, f 0 ( 2 ) must also be − 3 . Using that, we can calculate f 1 ( 3 ) , which we didn't before because we only know f 1 ( 1 ) , f 1 ( 2 ) . Then, working out way back up, we can easily calculate f 5 ( 7 ) .
In a diagram, this looks like:
f 5 1 1 2 3 5 8 8
f 4 0 1 1 2 3 0
f 3 1 0 1 1 -3
f 2 -1 1 0 -4
f 1 - 2 -1 -4
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.
Could you do something similar with values which are not in an arithmetic progression?
<p> I will integrate the solution with a general method. </p> <p>
When you have a polynomial of degree
n
with
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
, then <br />
</p> <p>
p
(
x
)
=
y
+
(
x
−
a
)
q
(
x
)
<br />
</p> <p> for some polynomial
q
(
x
)
such that
de
g
q
=
de
g
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
, for
i
=
0
,
…
,
n
.<br />
</p> <p> We want to costruct some polynomials
p
i
(
x
)
for
i
=
0
,
…
,
n
such that (
divide et impera
method): <br />
</p> <p>
p
i
(
x
i
)
=
1
and
p
i
(
x
j
)
=
0
for every
j
=
i
. <br />
</p> <p> We note that <br />
</p> <p>
p
i
(
x
)
=
j
=
i
∏
(
x
i
−
x
j
)
(
x
−
x
j
)
<br />
</p> <p>is exactly what we were searching for. So our
p
(
x
)
is (why?)
</p> <p>
p
(
x
)
=
i
=
0
∑
n
y
i
p
i
(
x
)
=
i
=
0
∑
n
j
=
i
∏
(
x
i
−
x
j
)
(
x
−
x
j
)
</p>
</p> <p> 3)
Finite difference polynomials
. Let's define, for every polynomial
p
:
</p> <p>
p
i
(
x
)
=
p
i
−
1
(
x
+
1
)
−
p
i
−
1
(
x
)
, where
p
0
(
x
)
=
p
(
x
)
.
</p> <p> You can easily check that
de
g
p
i
+
1
=
de
g
p
i
−
1
if
de
g
p
i
+
1
>
0
. This means, by induction, that
de
g
p
i
=
n
−
i
for
i
=
0
,
…
,
n
, where
n
=
de
g
p
, i.e.
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
for
i
=
0
,
…
,
n
. <br />
</p> <p>Let's construct the FDA (finite difference array) in this way:
</p> <p> LINE 1:
p
(
0
)
,
…
,
p
(
n
)
</p> <p> LINE 2:
p
1
(
0
)
,
…
,
p
1
(
n
−
1
)
</p> <p> ..
</p> <p> LINE
i
+
1
:
p
i
(
0
)
,
…
,
p
i
(
n
−
i
)
<br />
</p> <p> ..
</p> <p> LINE
n
+
1
:
p
n
(
0
)
</p> <p> Now, using the fact that
p
n
is constant, you can find the value of
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
)
. We claim that
</p> <p>
p
(
x
)
=
i
=
0
∑
n
c
i
(
i
x
)
(
∗
)
</p> <p> where
(
k
x
)
=
k
!
x
⋅
…
⋅
(
x
−
k
+
1
)
.
</p> <p> If
q
(
x
)
=
(
k
x
)
,you can easily verify that
q
i
(
x
)
=
(
k
−
i
x
)
for
i
=
0
,
…
,
k
using the fact that
(
k
x
+
1
)
−
(
k
x
)
=
(
k
−
1
x
)
, and 0 if
i
>
k
.
Then we can verify that (*) holds by demonstrating that
p
i
(
0
)
=
c
i
: </p>
<p>
p
i
(
0
)
=
j
=
0
∑
n
c
j
(
j
−
i
0
)
=
c
i
</p>
<p> because
(
i
0
)
is 0 if
i
=
0
and 1 if
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?
A straightforward application of Lagrange Interpolation Formula .
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 equals f on x = 2 , 3 , 4 such that if
h ( x ) = f ( x ) − g ( x )
Then h can be written :
h ( x ) = ( x − 2 ) ( x − 3 ) ( x − 4 ) P ( x )
Where P [ X ] is a polynom of degree 2.
Solving P for x = 1 , x = 5 , x = 6
We find:
P ( x ) = 4 0 − 1 x 2 + 3 0 7 x + 2 4 − 9
And the exact expression for f
f ( x ) = ( x − 2 ) ( x − 3 ) ( x − 4 ) ( 4 0 − 1 x 2 + 3 0 7 x + 2 4 − 9 ) + ( x − 1 )
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!
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 as: ( x − 1 ) ( x − 2 ) ( p x 3 + q x 2 + r x + 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 ) , and notice that g ( 4 ) = g ( 5 ) = 3 1 so this cubic in turn becomes: u ( x − 4 ) ( x − 5 ) ( x − v ) + 3 1 Now use the information for values at x=3, x=6, to solve only TWO(!) linear equations to find u and v ...
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 . 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.)
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.
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)
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)
Problem Loading...
Note Loading...
Set Loading...
We can split up the function into 6 pieces, one for each example given. It's easy to see that the polynomial is
1 5 1 ( x − 1 ) ( x − 2 ) ( x − 3 ) ( x − 4 ) ( x − 5 ) − 2 4 5 ( x − 1 ) ( x − 2 ) ( x − 3 ) ( x − 4 ) ( x − 6 ) + 4 1 ( x − 1 ) ( x − 2 ) ( x − 3 ) ( x − 5 ) ( x − 6 ) − 6 1 ( x − 1 ) ( x − 2 ) ( x − 4 ) ( x − 5 ) ( x − 6 ) + 2 4 1 ( x − 1 ) ( x − 3 ) ( x − 4 ) ( x − 5 ) ( x − 6 ) − 1 2 0 1 ( 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 ) .
Evaluating this at x = 7 we get 8 .