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!)
A212325 Prime-generating polynomial: n^2 + 3*n - 167. 2

%I #28 Sep 08 2022 08:46:02

%S -167,-163,-157,-149,-139,-127,-113,-97,-79,-59,-37,-13,13,41,71,103,

%T 137,173,211,251,293,337,383,431,481,533,587,643,701,761,823,887,953,

%U 1021,1091,1163,1237,1313,1391,1471,1553,1637,1723,1811,1901,1993,2087,2183

%N Prime-generating polynomial: n^2 + 3*n - 167.

%C The polynomial generates 24 primes in absolute value (23 distinct ones) in row starting from n=0 (and 42 primes in absolute value for n from 0 to 46).

%C The polynomial n^2 - 49*n + 431 generates the same primes in reverse order.

%C Note: we found in the same family of prime-generating polynomials (with the discriminant equal to 677) the polynomial 13*n^2 - 311*n + 1847 (13*n^2 - 469*n + 4217) generating 23 primes and two noncomposite numbers (in absolute value) in row starting from n=0 (1847, 1549, 1277, 1031, 811, 617, 449, 307, 191, 101, 37, -1, -13, 1, 41, 107, 199, 317, 461, 631, 827, 1049, 1297, 1571, 1871).

%C Note: another interesting algorithm to produce prime-generating polynomials could be N = m*n^2 + (6*m+1)*n + 8*m + 3, where m, 6*m+1 and 8*m+3 are primes. For m=7 then n=t-20 we get N = 7*t^2 - 237*t + 1999, which generates the following primes: 239, 163, 101, 53, 19, -1, -7, 1, 23, 59, 109, 173, 251 (we can see the same pattern: …, -1, -m, 1, …).

%H Bruno Berselli, <a href="/A212325/b212325.txt">Table of n, a(n) for n = 0..1000</a>

%H E. W. Weisstein, <a href="http://mathworld.wolfram.com/Prime-GeneratingPolynomial.html">MathWorld: Prime-Generating Polynomial</a>

%H <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (3,-3,1).

%F G.f.: (-167+338*x-169x^2)/(1-x)^3. - _Bruno Berselli_, May 18 2012

%t Table[n^2+3n-167,{n,0,50}] (* or *) LinearRecurrence[{3,-3,1},{-167,-163,-157},50] (* _Harvey P. Dale_, Feb 08 2020 *)

%o (Magma) [n^2+3*n-167: n in [0..47]]; // _Bruno Berselli_, May 18 2012

%o (PARI) Vec((-167+338*x-169*x^2)/(1-x)^3+O(x^99)) \\ _Charles R Greathouse IV_, Oct 01 2012

%K sign,easy

%O 0,1

%A _Marius Coman_, May 14 2012

%E Edited from _Bruno Berselli_, May 18 2012

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 April 24 00:30 EDT 2024. Contains 371917 sequences. (Running on oeis4.)