OFFSET
1,1
COMMENTS
EXAMPLE
S(21)=(..((((0+2)*-1)+3)*1)+5)*-1)+7)*1)+11)*- 1)+13)*1)+...+71)*1)+73)*-1 = -80, 1 + S(22) =1 + (-80 + 79)*1 = 0, hence 22 is a term.
S(37)=(..((((0+2)*-1)+3)*1)+5)*-1)+7)*1)+11)*- 1)+13)*1)+...+151)*1)+157)*-1 = -164, 1 + S(38) =1 + (-164 + 163)*1 = 0, hence 38 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