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!)
A215968 Smallest k > 0 such that 240*k*p+1 , 6*k*p*(240*k*p+1)+1 , and 40*(6*k*p*(240*k*p+1)+1)+1 are prime or 0 if no solution, where p = prime(n). 1
11, 21, 36, 8, 2, 140, 389, 45, 56, 145, 235, 71, 0, 121, 155, 56, 280, 80, 109, 37, 187, 217, 21, 97, 89, 7, 66, 28, 2, 166, 26, 101, 129, 93, 148, 51, 39, 71, 28, 139, 65, 20, 78, 14, 149, 3, 411, 516 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Let 240*k*p(n)+1 = prime R, 6*k*p(n)*R+1 = prime Q, and 40*Q+1 = prime P.
P=(240*k*p(n))^2+240*k*p(n)+41=x^2+x+41 with x=240*k*p(n)
As R and Q are provable primes so is P a provable prime of the Euler polynomial x^2+x+41.
The only 0 is for p(13)=41 as R is always composite except for k=0 then P and Q are unity.
LINKS
David Broadhurst, A 132738-digit prime of the form x^2+x+41, Aug 14 2012 (archive of the nmbrthry mailing list).
EXAMPLE
240*11*2+1=5281 prime, 6*11*2*5281+1=697093 prime, (240*11*2)^2+(240*11*2)+41=27883721 prime. p(1)=2 so k(1)=11.
MATHEMATICA
a[n_] := (Clear[k]; p = Prime[n]; R = 240*k*p + 1; Q = 6*k*p*R + 1; P = 40*Q + 1; If[FactorList[P][[1, 1]] > 1, Return[0], For[k = 1, True, k++, If[PrimeQ[P] && PrimeQ[Q] && PrimeQ[R], Return[k]]]]); Table[a[n], {n, 1, 50}] (* Jean-François Alcover, Sep 10 2012 *)
PROG
PFGW and SCRYPTIFY
SCRIPT
DIM nn
DIM kk
DIM rr
DIM qq
DIM pp
DIMS tt
OPENFILEOUT myf, a(n).txt
LABEL loopn
SET nn, nn+1
IF nn==13 THEN SET nn, 14
IF nn>3500 THEN END
SET kk, 0
LABEL loopk
SET kk, kk+1
SET rr, 240*(kk*p(nn))+1
SETS tt, %d\,; kk
PRP rr, tt
IF ISPRP THEN GOTO a
GOTO loopk
LABEL a
SET qq, 6*(kk*mm)*rr+1
PRP qq, tt
IF ISPRP THEN GOTO b
GOTO loopk
LABEL b
SET pp, 40*qq+1
PRP pp, tt
IF ISPRP THEN GOTO c
GOTO loopk
LABEL c
WRITE myf, tt
GOTO loopn
CROSSREFS
Cf. A215697.
Sequence in context: A086982 A145060 A146246 * A064832 A129638 A333356
KEYWORD
nonn
AUTHOR
Pierre CAMI, Aug 29 2012
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 April 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)