OFFSET
0,3
COMMENTS
a(n) = number of edges from 0 to n in the tree at A258237.
LINKS
Clark Kimberling, Table of n, a(n) for n = 0..10000
EXAMPLE
36->25->17->24->16->11->7->4->2->1->0, so that a(36) = 10.
MATHEMATICA
r = Sqrt[2]; w = Table[Floor[r*n], {n, 1, 1000}];
f[x_] := If[MemberQ[w, x], Floor[x/r], Floor[r*x]];
g[x_] := Drop[FixedPointList[f, x], -1];
Table[-1+ Length[g[n]], {n, 0, 100}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jun 05 2015
STATUS
approved