OFFSET
0,1
COMMENTS
FORMULA
a(n) = Sum_{k=1..n} prime(k) + n mod 2 + 2 for n>0, a(0)=2 (from Pari code).
EXAMPLE
MATHEMATICA
s = Accumulate@ Prime@ Range@ 1200; {2}~Join~Table[s[[n]] + If[OddQ@ n, 3, 2], {n, 46}] (* Michael De Vlieger, Sep 21 2015 *)
PROG
(PARI) a(n) = sum(k=1, n, prime(k)) + (n%2) + 2;
vector(50, n, a(n-1))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Altug Alkan, Sep 21 2015
STATUS
approved