OFFSET
0,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..125
MAPLE
g:= proc(b, n) option remember; local t; if b<0 then 0 elif b=0 or n=0 then 1 elif b>=n then add(g(b-t, n) *binomial(n+1, t) *(-1)^(t+1), t=1..n+1) else g(b-1, n) +g(2*b, n-1) fi end: f:= proc(n) local t; t:= ilog2(2*n+1); g(n/2^(t-1), t) end: a:= n-> f(combinat[fibonacci](n)): seq(a(n), n=0..25); # Alois P. Heinz, Sep 26 2011
MATHEMATICA
g[b_, n_] := g[b, n] = If[b < 0, 0, If[b == 0 || n == 0, 1, If[b >= n, Sum[g[b - t, n] Binomial[n + 1, t] (-1)^(t + 1), {t, 1, n + 1}], g[b - 1, n] + g[2b, n - 1]]]];
f[n_] := With[{t = Floor@Log[2, 2n + 1]}, g[n/2^(t - 1), t]];
a[n_] := f[Fibonacci[n]];
a /@ Range[0, 25] (* Jean-François Alcover, Nov 19 2020, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna, Oct 02 2007
STATUS
approved