A140118 Extrapolation for (n + 1)-st odd prime made by fitting least-degree polynomial to first n odd primes.
3, 7, 9, 19, 3, 49, -39, 151, -189, 381, -371, 219, 991, -4059, 11473, -26193, 53791, -100639, 175107, -281581, 410979, -506757, 391647, 401587, -2962157, 9621235, -24977199, 57408111, -120867183, 236098467, -428880285, 719991383, -1096219131, 1442605443, -1401210665, 99178397, 4340546667
Offset: 1
Keywords
Examples
The lowest-order polynomial having points (1,3), (2,5), (3,7) and (4,11) is f(x) = 1/3 (x^3 - 6x^2 + 17x - 3). When evaluated at x = 5, f(5) = 19.
Links
- Jonathan Wellons, Table of n, a(n) for n = 1..1500
Crossrefs
Cf. A140119.
Programs
-
PARI
a(n) = sum(i=1, n, prime(i+1)*(-1)^(n-i)*binomial(n, i-1)); \\ Michel Marcus, Jul 07 2025
Formula
a(n) = Sum_{i=1..n} prime(i+1)*(-1)^(n-i)*binomial(n, i-1).
Comments