OFFSET
1,9
COMMENTS
Conjecture: a(n) > 0 for all n > 13.
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(12) = 1 since 12 = 5 + 7 with 5, 5 + 2 = 7 and 5 + prime(7) + 1 = 5 + 17 + 1 = 23 all prime.
a(85) = 1 since 85 = 29 + 56 with 29, 29 + 2 = 31 and 29 + prime(56) + 1 = 29 + 263 + 1 = 293 all prime.
MATHEMATICA
p[n_, m_]:=PrimeQ[m+2]&&PrimeQ[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