OFFSET
1,1
COMMENTS
Values of p: 2, 2, 3, 3, 3, 7, 2, 3, 3, 7, 3, 2, 3, 7, 2, 3, 7, 2, 3, 7, 3, 3, 2, 3, 3, 7, 2, 7, 11, 3, 19, 2, 13, 2, 3, 7, 3, 5, 3, 3, 7, 3, 2, 3, 37, 2, 37, 3, 5.
For n > 2, a(n) = A255609(n-1). - Jon E. Schoenfield, Nov 26 2017
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
PROG
(PARI) step(n)=forprime(p=2, , if(isprime(n+2*p), return(n+2*p)))
first(n)=my(v=vector(n)); v[1]=3; for(n=2, n, v[n]=step(v[n-1])); v \\ Charles R Greathouse IV, Jul 14 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Zak Seidov, Jul 11 2017
STATUS
approved