OFFSET
1,1
COMMENTS
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..1000
EXAMPLE
2*2-1=3, 4*3+1=13, 6*13+1=79, 8*79-1=631, 10*631+1=6311, 12*6311-1=75731, where 2, 3, 13, 79, 631, 6311 and 75731 are all prime numbers; so 2 is the first term.
PROG
(PARI) forprime(P=2, 130000000, my(Q=2*P-1, R=4*Q+1, S=6*R+1, T=8*S-1, U=10*T+1, V=12*U-1); if(isprime(Q)&&isprime(R)&&isprime(S)&&isprime(T)&&isprime(U)&&isprime(V), print1(P, ", "))) \\ Hugo Pfoertner, Dec 17 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierre CAMI, Dec 13 2019
EXTENSIONS
a(12) and a(15) corrected by Chai Wah Wu, Jan 17 2020
STATUS
approved