OFFSET
0,4
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..65536
MAPLE
b:= proc() 0 end:
g:= proc(n) option remember; local t;
t:= `if`(n<2, n, b(g(n-1))+b(g(n-2)));
b(t):= b(t)+1; t
end:
a:= proc(n) option remember; b(g(n)) end:
seq(a(n), n=0..200);
MATHEMATICA
b[_] = 0;
g[n_] := g[n] = Module[{t},
t = If[n<2, n, b[g[n-1]]+b[g[n-2]]];
b[t]++; t];
a[n_] := a[n] = b[g[n]];
a /@ Range[0, 200] (* _Jean-François Alcover_, Mar 30 2021, after _Alois P. Heinz_ *)
CROSSREFS
KEYWORD
nonn,look
AUTHOR
_Alois P. Heinz_, Dec 14 2019
STATUS
approved