OFFSET
4,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 4..1716 (terms n = 4..59 from R. H. Hardin)
MAPLE
b:= proc(n, i, k) option remember; `if`(n=0, 1,
`if`(i=0, 0, add(b(n-j, i-1, k), j=0..min(n, k))))
end:
a:= n-> (k-> b(n$2, k)-b(n$2, k-1))(4):
seq(a(n), n=4..30); # Alois P. Heinz, Aug 17 2018
MATHEMATICA
b[n_, i_, k_] := b[n, i, k] = If[n == 0, 1, If[i == 0, 0, Sum[b[n - j, i - 1, k], {j, 0, Min[n, k]}]]];
a[n_] := If[n == 0, 1, b[n, n, 4] - b[n, n, 3]];
Table[a[n], {n, 4, 30}] (* Jean-François Alcover, Aug 28 2022, after Maple program *)
CROSSREFS
KEYWORD
nonn
AUTHOR
R. H. Hardin, Aug 24 2010
STATUS
approved