The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A259552 a(n) = (1/4)*n^4 - (1/2)*n^3 + (3/4)*n^2 - (1/2)*n + 41. 1
41, 43, 53, 83, 151, 281, 503, 853, 1373, 2111, 3121, 4463, 6203, 8413, 11171, 14561, 18673, 23603, 29453, 36331, 44351, 53633, 64303, 76493, 90341, 105991, 123593, 143303, 165283, 189701, 216731, 246553, 279353, 315323, 354661, 397571, 444263, 494953 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Empirical Observation: Reasonably productive (better than 85% in first 24 terms) prime-generating polynomial.
All integers generated by this polynomial for 0 < n <= 24 are prime with the exception of a(14) = 47*179, a(17) = 71*263, and a(20) = 47*773.
Negative and zero values of n also produce primes but they are not unique.
a(n) = (1/4)*n^4 - (1/2)*n^3 + (3/4)*n^2 - (1/2)*n + 809, for 0 < n <= 24, is also reasonably productive but produces composites at a(4), a(7), a(19) and a(20).
a(n) = (1/4)*n^4 - (1/2)*n^3 + (3/4)*n^2 - (1/2)*n + 641, for 0 < n <= 24, is also quite productive.
LINKS
Eric Weisstein's World of Mathematics, Prime-Generating Polynomial
FORMULA
G.f.: x*(41 - 162*x + 248*x^2 - 162*x^3 + 41*x^4)/(1-x)^5. - Vincenzo Librandi, Jul 03 2015
a(n) = 5*a(n-1)-10*a(n-2)+10*a(n-3)-5*a(n-4)+a(n-5), n>5. - Wesley Ivan Hurt, Jul 09 2015
MAPLE
A259552:=n->n^4/4-n^3/2+3*n^2/4-n/2+41: seq(A259552(n), n=1..100); # Wesley Ivan Hurt, Jul 09 2015
MATHEMATICA
f[n_] := n^4/4 - n^3/2 + 3 n^2/4 - n/2 + 41; Array[f, 38] (* or *)
LinearRecurrence[{5, -10, 10, -5, 1}, {41, 43, 53, 83, 151}, 38] (* Robert G. Wilson v, Jul 07 2015 *)
PROG
(Magma) [(1/4)*n^4-(1/2)*n^3+(3/4)*n^2-(1/2)*n+41: n in [1..40]]; // Vincenzo Librandi, Jul 03 2015
CROSSREFS
Cf. A202018.
Sequence in context: A090152 A139774 A007643 * A290365 A277071 A186401
KEYWORD
nonn,easy
AUTHOR
Robert Potter, Jun 30 2015
EXTENSIONS
Corrected and extended by Vincenzo Librandi, Jul 03 2015
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 May 31 06:07 EDT 2024. Contains 372980 sequences. (Running on oeis4.)