OFFSET
0,4
COMMENTS
Programmed during one of my OEIS banned period and never entered.
MATHEMATICA
f[0] = 0; f[1] = 1; f[2] = 1;
f[n_] := f[n] = f[f[n - 1]] +
If[n < 6, f[n - f[(n - 1)]], If[ Mod[n, 6] == 0, f[f[n/6]],
If[Mod[1 + n, 6] == 1, f[f[(n - 1)/6]], If[Mod[2 + n, 6] == 2,
f[f[(n - 2)/6]], If[Mod[3 + n, 6] == 3, f[f[(n - 3)/6]],
If[Mod[4 + n, 6] == 4, f[f[(n - 4)/6]],
If[ Mod[5 + n, 6] == 5, f[f[(n - 5)/6]], f[n - f[(n - 2)]]]]]]]]];
Table[f[n], {n, 0, 100}]
CROSSREFS
KEYWORD
nonn,uned
AUTHOR
Roger L. Bagula, Mar 13 2010
STATUS
approved