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!)
A213162 Smallest prime p such that (k+1)*p^2-k are prime for k=1..n. 0

%I #13 Jan 11 2023 05:12:07

%S 2,199,409,17569,981091,3918251,1329433951,75902670689,45048280453021

%N Smallest prime p such that (k+1)*p^2-k are prime for k=1..n.

%C a(1..8) are the first terms correspondingly in A106483, A213078, A213079, A213107, A213125, A213159, A213161, A213334.

%o (PARI) a(n) = {my(p = 2); until (ok, ok = 1; for (k = 1, n, if (! isprime((k+1)*p^2-k), ok = 0; break;);); if (!ok, p = nextprime(p+1);)); return (p);} \\ _Michel Marcus_, Apr 19 2013

%K nonn,more

%O 1,1

%A _Zak Seidov_, Jun 06 2012

%E a(9) from _Tyler Busby_, Jan 11 2023

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 25 14:55 EDT 2024. Contains 371989 sequences. (Running on oeis4.)