OFFSET
1,18
COMMENTS
Conjecture: a(n) > 0 for all n > 24.
This implies that there are infinitely many primes p with prime(p) - p + 1 and (p^2 - 1)/4 - prime(p) both prime.
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..10000
EXAMPLE
a(30) = 1 since prime(6) + phi(24)/2 = 13 + 4 = 17, prime(17) - 16 = 59 - 16 = 43 and (17^2 - 1)/4 - prime(17) = 72 - 59 = 13 are all prime.
a(35) = 1 since prime(19) + phi(16)/2 = 67 + 4 = 71, prime(71) - 70 = 353 - 70 = 283 and (71^2 - 1)/4 - prime(71) = 1260 - 353 = 907 are all prime.
MATHEMATICA
PQ[n_]:=PQ[n]=n>0&&PrimeQ[n]
p[n_]:=p[n]=PrimeQ[n]&&PrimeQ[Prime[n]-n+1]&&PQ[(n^2-1)/4-Prime[n]]
f[n_, k_]:=f[n, k]=Prime[k]+EulerPhi[n-k]/2
a[n_]:=a[n]=Sum[If[p[f[n, k]], 1, 0], {k, 1, n-3}]
Table[a[n], {n, 1, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Jan 17 2014
STATUS
approved