login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A140119 Extrapolation for (n + 1)-st prime made by fitting least-degree polynomial to first n primes. 5
2, 4, 8, 8, 22, -6, 72, -92, 266, -426, 838, -1172, 1432, -398, -3614, 15140, -41274, 95126, -195698, 370876, -652384, 1063442, -1570116, 1961852, -1560168, -1401888, 11023226, -36000318, 93408538, -214275608, 450374202, -879254356, 1599245876, -2695464868, 4138070460, -5539280974 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Construct the least-degree polynomial p(x) which fits the first n primes (p has degree n-1 or less). Then predict the next prime by evaluating p(n+1).
Can anything be said about the pattern of positive and negative values?
Row sums of triangle A095195. - Reinhard Zumkeller, Oct 10 2013
LINKS
FORMULA
a(n) = Sum_{i=1..n} prime(i) * (-1)^(n-i) * C(n,i-1).
EXAMPLE
The lowest-order polynomial having points (1,2), (2,3), (3,5) and (4,7) is f(x) = 1/6 (-x^3 +9x^2 -14x +18). When evaluated at x = 5, f(5) = 8.
PROG
(Haskell)
a140119 = sum . a095195_row -- Reinhard Zumkeller, Oct 10 2013
(PARI) a(n) = sum(i=1, n, prime(i)*(-1)^(n-i)*binomial(n, i-1)); \\ Michel Marcus, Jun 28 2020
CROSSREFS
Sequence in context: A029930 A334284 A193850 * A273068 A362532 A193846
KEYWORD
sign
AUTHOR
Jonathan Wellons (wellons(AT)gmail.com), May 08, 2008
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 19 01:22 EDT 2024. Contains 375284 sequences. (Running on oeis4.)