OFFSET
0,4
COMMENTS
This is column 1 of the array at A253281.
LINKS
Clark Kimberling, Table of n, a(n) for n = 0..1000
MATHEMATICA
f[{x_, y_}] := If[IntegerQ[x/3], {y, x/3}, {x - Mod[x, 3], y}];
g[{x_, y_}] := Drop[FixedPointList[f, {x, y}], -1];
Table[-1 + Length[g[{n, 0}]], {n, 0, 200}] (* A253718 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, May 02 2015
STATUS
approved