OFFSET
0,3
COMMENTS
First differences give A160793. - Omar E. Pol, Oct 31 2011
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 0..5000
FORMULA
a(2n) = a(2n-1) + Sum_{j=1..n} prime(j); a(2n+1) = a(2n) + n + 1 for n >= 1. - Nathaniel Johnston, Jun 16 2011
MAPLE
A160792 := proc(n) option remember: if(n<=1)then return n: fi: if(n mod 2 = 0)then return procname(n-1)+add(ithprime(j), j=1..n/2): fi: return procname(n-1)+ceil(n/2): end: seq(A160792(n), n=0..49); # Nathaniel Johnston, Jun 16 2011
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Omar E. Pol, May 29 2009
EXTENSIONS
Terms after a(10) and edited by Nathaniel Johnston, Jun 16 2011
STATUS
approved