OFFSET
1,8
COMMENTS
Conjecture: a(n) > 0 if n is not a divisor of 12.
Clearly, this implies the twin prime conjecture.
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..10000
Z.-W. Sun, Problems on combinatorial properties of primes, arXiv:1402.6641, 2014
EXAMPLE
a(11) = 1 since 11 = 7 + 4 with 7, 3*(7 + prime(4)) - 1 = 3*14 - 1 = 41 and 3*(7 + prime(4)) + 1 = 3*14 + 1 = 43 all prime.
a(210) = 1 since 210 = 97 + 113 with 97, 3*(97 + prime(113)) - 1 = 3*(97 + 617) - 1 = 2141 and 3*(97 + prime(113)) + 1 = 3*(97 + 617) + 1 = 2143 all prime.
MATHEMATICA
p[n_, m_]:=PrimeQ[3(m+Prime[n-m])-1]&&PrimeQ[3(m+Prime[n-m])+1]
a[n_]:=Sum[If[p[n, Prime[k]], 1, 0], {k, 1, PrimePi[n-1]}]
Table[a[n], {n, 1, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Jan 31 2014
STATUS
approved