OFFSET
0,2
COMMENTS
Alternative definition: a(0)=1; thereafter a(n) = a(n-1) + prime(n) if a(n-1) < prime(n), otherwise a(n) = a(n-1) - prime(n). Cf. A008348. - N. J. A. Sloane, Aug 31 2019
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..10000
EXAMPLE
From Seiichi Manyama, Sep 05 2019: (Start)
a(0) = 1.
a(1) = 1 + 2 = 3.
a(2) = 1 + 2 - 3 = 0.
a(3) = 1 + 2 - 3 + 5 = 5.
a(4) = 1 + 2 - 3 + 5 + 7 = 12.
a(5) = 1 + 2 - 3 + 5 + 7 - 11 = 1. (End)
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Missing a(46)=94 inserted and name corrected by Sean A. Irvine, May 21 2019
STATUS
approved