OFFSET
1,5
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(9) = 3 because (5,7), (7,11) and (11,13) are pairs of consecutive primes (p,q) with (18-q,18-p) = (11,13), (7,11) and (5,7) also consecutive primes.
MAPLE
f:= proc(n) local p, q, count;
q:= 2: count:= 0:
while q < 2*n -2 do
p:= q; q:= nextprime(q);
if isprime(2*n-p) and prevprime(2*n-p)=2*n-q then count:= count+1 fi;
od;
count
end proc:
map(f, [$1..100]);
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Feb 07 2021
STATUS
approved