OFFSET
1,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A330587(n,n).
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:
f:= proc(n) option remember; b(g(n)) end:
a:= proc() local a, b, t; a, b, t:= proc() end, proc() 0 end, -1;
proc(k) local h;
while b(k)<k do t:= t+1; h:= f(t);
b(h):= b(h)+1; if b(h)=h then a(h):= t fi
od: a(k)
end
end():
seq(a(n), n=1..50);
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Dec 18 2019
STATUS
approved