OFFSET
1,3
MATHEMATICA
t = Nest[Flatten[# /. {0->{0, 1}, 1->{1, 0, 0}}] &, {0}, 6] (*A189476*)
f[n_] := t[[n]]
s[n_] := Sum[f[i], {i, 1, n}]; s[0] = 0;
Table[s[n], {n, 1, 120}] (*A189575*)
Accumulate[Nest[Flatten[#/.{0->{0, 1}, 1->{1, 0, 0}}]&, {0}, 6]] (* Harvey P. Dale, Nov 11 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Apr 23 2011
STATUS
approved