Shivamani thinks that he has found a cubic polynomial f ( x ) such that f ( n ) = n -th prime number. He found that
⎩ ⎪ ⎪ ⎪ ⎨ ⎪ ⎪ ⎪ ⎧ f ( 1 ) = 2 f ( 2 ) = 3 f ( 3 ) = 5 f ( 4 ) = 7
Help him find the value of f ( 5 ) .
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.
Nice loophole! I wonder how would we solve for f ( 6 ) if we were further given that f ( 5 ) = 1 1 .
I used a chart to find the third difference then went backwards.
Log in to reply
Ya method of differences can be used here:)
Then a cubic polynomial wouldn't have sufficed You would need a biquadratic polynomial (5 unknowns)
I used the method of differences!
I solved in a kinda-longway solution, and Mr Corn solution was fantastic, I don't know how he came up with that 2x - 1, but here's my solution: f(x) is a cubic polynomial so it can be written as : ax^3 + bx^2 + cx + d (a, b, c, d are real numbers ) with every varies of f(x) we receive an equation, we have for equations, four unknowns (a,b,c,d ). After solving the above you will have a = -1/6 , b = 3/2 , c= -7/3, d = 3. Sub x=5 with the cubic polynomial you've just found you receice f(5) = 8
i did it the same way
Problem Loading...
Note Loading...
Set Loading...
Let h ( x ) = f ( x ) − 2 x + 1 . Then h ( 1 ) = 1 , h ( 2 ) = h ( 3 ) = h ( 4 ) = 0 . Since h is cubic, it must equal − 6 1 ( x − 2 ) ( x − 3 ) ( x − 4 ) . So f ( x ) = 2 x − 1 − 6 1 ( x − 2 ) ( x − 3 ) ( x − 4 ) , so f ( 5 ) = 8 .