OFFSET
0,5
MATHEMATICA
a[0] = 0; a[1] = 1; a[2] = 1;
a[n_] := a[n] = If[Mod[ n, 3] == 0, a[Floor[n/3]], If[Mod[n, 3] == 1, a[Floor[(n - 1)/3]] + a[Floor[(n + 2)/3]], a[Floor[(n - 2)/3]] + a[Floor[n/3]]]];
Table[a[n], {n, 0, 200}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula and Gary W. Adamson, May 24 2010
EXTENSIONS
Definition simplified, Mma notation replaced - The Assoc. Eds. of the OEIS, Jul 20 2010
STATUS
approved