OFFSET
1,3
COMMENTS
p(n) is the n-th prime; # denotes primorial (A002110).
a(n) seems to grow like 4*log(p(n)).
EXAMPLE
a(3) = 3 because for (j,k) = (1,3),(2,3),(3,3), j*(5#)/p(k)+-1 are primes.
PROG
(PARI) a(n) = {my(p=vector(n, i, prime(i)), x, y=prod(i=1, n, p[i])); sum(j=1, prime(n+1)-1, sum(k=1, n, j%p[k]>0 && ispseudoprime(x=j*y/p[k]-1) && ispseudoprime(x+2))); } \\ Jinyuan Wang, Mar 20 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierre CAMI, Oct 25 2003
EXTENSIONS
Edited by Don Reble, Nov 16 2005
More terms from Jinyuan Wang, Mar 20 2020
STATUS
approved