OFFSET
1,4
COMMENTS
Conjecture: a(n) > 0 for all n > 2.
Clearly, this implies Lemoine's conjecture which states that any odd number 2*n + 1 > 5 can be written as 2*p + q with p and q both prime.
See also A234808 for a similar conjecture.
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..10000
EXAMPLE
a(5) = 1 since 1 + phi(4) = 3 and 2*(5-3) + 1 = 5 are both prime.
a(16) = 1 since 7 + phi(9) = 13 and 2*(16-13) + 1 = 7 are both prime.
a(41) = 1 since 7 +phi(34) = 23 and 2*(41-23) + 1 = 37 are both prime.
a(156) = 1 since 131 + phi(25) = 151 and 2*(156-151) + 1 = 11 are both prime.
MATHEMATICA
f[n_, k_]:=k+EulerPhi[n-k]
p[n_, k_]:=PrimeQ[f[n, k]]&&PrimeQ[2*(n-f[n, k])+1]
a[n_]:=a[n]=Sum[If[p[n, k], 1, 0], {k, 1, n-1}]
Table[a[n], {n, 1, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Dec 30 2013
STATUS
approved