OFFSET
1,2
COMMENTS
a(n)=1 if 12n -/+ 1 are twin primes. Corresponding n's are in A124519: 1,5,6,9,15,16,19,20,26,29,35,36,50,...
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
MATHEMATICA
Table[ ( NextPrime[12*n, 1] - NextPrime[12*n, -1] )/2, {n, 1, 25}] (* G. C. Greubel, Oct 11 2016 *)
PROG
(PARI) a(n) = (nextprime(12*n) - precprime(12*n))/2; \\ Michel Marcus, Oct 12 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Feb 17 2008
STATUS
approved