OFFSET
0,9
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000 (terms n=1..1000 from R. H. Hardin)
MAPLE
F:= proc(n, i) option remember; (<<0|1>, <1|1>>^n)[1, 2] end:
b:= proc(n, i) option remember; `if`(n=0, 1, (f-> `if`(4*f<=n,
add(b(n-j*f, i+1), j=[0, $4..n/f]), 0))(F(i)))
end:
a:= n-> b(n, 2):
seq(a(n), n=0..80); # Alois P. Heinz, Feb 23 2019
MATHEMATICA
F[n_] := F[n] = MatrixPower[{{0, 1}, {1, 1}}, n][[1, 2]];
b[n_, i_] := b[n, i] = If[n == 0, 1, Function[f, If[4*f <= n, Sum[b[n-j*f, i+1], {j, Join[{0}, Range[4, n/f]]}], 0]][F[i]]];
a[n_] := b[n, 2];
Table[a[n], {n, 0, 80}] (* Jean-François Alcover, Jan 28 2024, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
R. H. Hardin, Jun 02 2009
EXTENSIONS
a(0)=1 prepended by Alois P. Heinz, Feb 23 2019
STATUS
approved