OFFSET
1,2
COMMENTS
Partial sums of the sequence: a(1)=1, a(1), a(1), a(1), a(2), a(2), a(2), a(3), a(3), ... each term repeated 3 times.
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
MATHEMATICA
Fold[Append[#1, #1[[-1]] + #1[[Quotient[#2 + 1, 3]]]] &, {1, 2}, Range[3, 57]] (* Ivan Neretin, Nov 25 2016 *)
PROG
(PARI) a(n)=if(n<2, 1, a(n-1)+a(floor((n+1)/3)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Philippe Deléham, Jan 02 2004
STATUS
approved