OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..2000
MAPLE
b:= proc(n, i, m, t) option remember; `if`(n=0, t,
`if`(i<1, 0, b(n, i-1, m, t)+add(b(n-i*j, i-1, min(j, m),
`if`(j<m, 1, `if`(j=m, t+1, t))), j=1..n/i)))
end:
a:= n-> b(n$3, 0):
seq(a(n), n=0..45);
MATHEMATICA
b[n_, i_, m_, t_] := b[n, i, m, t] = If[n == 0, t,
If[i < 1, 0, b[n, i - 1, m, t] + Sum[b[n - i*j, i - 1, Min[j, m],
If[j < m, 1, If[j == m, t + 1, t]]], {j, 1, n/i}]]];
a[n_] := b[n, n, n, 0];
Table[a[n], {n, 0, 45}] (* Jean-François Alcover, May 10 2024, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, May 07 2024
STATUS
approved