Shivamani thinks that he has found a quartic 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 f ( 5 ) = 1 1
Help him find the value of f ( 6 ) .
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.
A quartic polynomial is of the form a x 4 + b x 3 + c x 2 + d x + e = f ( x ) . If we substitute in the given values, a linear system results: ⎩ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎨ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎧ a + b + c + d + e = 2 1 6 a + 8 b + 4 c + 2 d + e = 3 8 1 a + 2 7 b + 9 c + 3 d + e = 5 2 5 6 a + 6 4 b + 1 6 c + 4 d + e = 7 6 2 5 a + 1 2 5 b + 2 5 c + 5 d + e = 1 1
Put into 5 x 6 matrix form, this system is written as ⎣ ⎢ ⎢ ⎢ ⎢ ⎡ 1 1 6 8 1 2 5 6 6 2 5 1 8 2 7 6 4 1 2 5 1 4 9 1 6 2 5 1 2 3 4 5 1 1 1 1 1 2 3 5 7 1 1 ⎦ ⎥ ⎥ ⎥ ⎥ ⎤
and reduces to ⎣ ⎢ ⎢ ⎢ ⎢ ⎡ 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 . 1 2 5 − 1 . 4 1 6 5 . 8 7 5 − 8 . 5 8 3 6 ⎦ ⎥ ⎥ ⎥ ⎥ ⎤
0 . 1 2 5 ⋅ 6 4 − 1 . 4 1 6 ⋅ 6 3 + 5 . 8 7 5 ⋅ 6 2 − 8 . 5 8 3 ⋅ 6 + 6 = 2 2
A simple application of linear algebra.
We can do it easily by Method of differences!! BTW yours is also good.
Problem Loading...
Note Loading...
Set Loading...
Apply the Method of Differences .
n 1 2 3 4 5 6 f ( n ) 2 3 5 7 1 1 D 1 1 2 2 4 D 2 1 0 2 D 3 − 1 2 D 4 3
n 1 2 3 4 5 6 f ( n ) 2 3 5 7 1 1 D 1 1 2 2 4 D 2 1 0 2 D 3 − 1 2 D 4 3 3
n 1 2 3 4 5 6 f ( n ) 2 3 5 7 1 1 2 2 D 1 1 2 2 4 1 1 D 2 1 0 2 7 D 3 − 1 2 5 D 4 3 3