OFFSET
1,13
COMMENTS
Conjecture: a(n)>0 for all n>8.
The author has verified this for n up to 5*10^6.
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..10000
Zhi-Wei Sun, More conjectures on alternating sums of consecutive primes, a message to Number Theory List, March 2, 2013.
EXAMPLE
a(11)=1 since 11=8+(7-5+3-2) with 4, 8, 12 all practical.
MATHEMATICA
f[n_]:=f[n]=FactorInteger[n]
Pow[n_, i_]:=Pow[n, i]=Part[Part[f[n], i], 1]^(Part[Part[f[n], i], 2])
Con[n_]:=Con[n]=Sum[If[Part[Part[f[n], s+1], 1]<=DivisorSigma[1, Product[Pow[n, i], {i, 1, s}]]+1, 0, 1], {s, 1, Length[f[n]]-1}]
pr[n_]:=pr[n]=n>0&&(n<3||Mod[n, 2]+Con[n]==0)
q[n_]:=q[n]=pr[n-4]==True&&pr[n]==True&&pr[n+4]==True
s[0_]:=0
s[n_]:=s[n]=Prime[n]-s[n-1]
a[n_]:=a[n]=Sum[If[n-s[m]>0&&q[n-s[m]], 1, 0], {m, 1, n}]
Table[a[n], {n, 1, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Mar 03 2013
STATUS
approved