OFFSET
1,1
COMMENTS
EXAMPLE
S(11)=(..((((0+2)*-1)+3)*1)+5)*-1)+7)*1)+11)*- 1)+13)*1)+...+29)*1)+31)*-1 = -36, 1 - S(12)=1 - (-36 + 37)*1 = 0, hence 12 is a term.
S(13)=(..((((0+2)*-1)+3)*1)+5)*-1)+7)*1)+11)*- 1)+13)*1)+...+37)*1)+41)*-1 = -42, 1 - S(14)=1 - (-42 + 43)*1 = 0, hence 14 is a term.
MATHEMATICA
S=0; a=0; Do[S=(S+Prime[n])*(-1)^n; If[1-S==0, a++; Print[a, " ", n]], {n, 1, 10^8, 1}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Manuel Valdivia, Sep 26 2007
STATUS
approved