OFFSET
1,1
COMMENTS
a(n) > n^2 + n, so the sum of the reciprocals of the terms of this sequence converges: 1/3 + 1/7 + 1/13 + 1/23 + 1/37 + ... = 0.720731....
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
PROG
(PARI) {
p=2;
forstep(n=2, 100, 2,
p=nextprime(p+1);
while(!isprime(p+n), p=nextprime(p+1));
print1(p", "); p=p+n;
)
}
(PARI) first(n)=my(v=vector(n)); v[1]=3; for(k=2, n, forprime(p=v[k-1]+2*k, , if(isprime(p+2*k), v[k]=p; break))); v \\ Charles R Greathouse IV, Sep 13 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Dimitris Valianatos, Aug 18 2017
STATUS
approved