OFFSET
1,4
COMMENTS
See A189668.
FORMULA
s(n)=s([(n+2)/3])+[(n+1)/3]-s([(n+1)/3]), where s(0)=0, s(1)=0.
MATHEMATICA
(See A189668.)
Accumulate[Nest[Flatten[#/.{0->{0, 1, 0}, 1->{1, 0, 0}}]&, {0}, 5]] (* Harvey P. Dale, Apr 24 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Apr 25 2011
STATUS
approved