A120402 a(1)=2; a(n)=first even number greater than a(n-1) such that 2*a(n)-1 is prime and a(i)+a(n)-1 is prime for all 1<=i<=n-1.
2, 4, 10, 70, 430, 4090, 86530, 513100, 913570, 7914340, 6593621380, 9366241600
Offset: 1
Examples
a(2)=4 since 4 is the first even number > a(1)=2 such that 2*4-1=7 is prime and 4+2-1=5 is prime.
Programs
-
Maple
EP:=[2]: for w to 1 do for k from 0 to 12^8 do n:=6*k+4; p:=2*n-1; Q:=map(z-> z+n-1, EP); if isprime(p) and andmap(isprime,Q) then EP:=[op(EP),n]; print(n); fi od od;
Formula
a(1)=2; a(n) = s where s is the first even number s>a(n-1) such that 2*s-1 is prime and s+a(i)-1 is prime, 1<=i<=n-1.
Extensions
a(11)-a(12) from Bert Dobbelaere, Apr 17 2019
Comments