OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..200
Wikipedia, Partition (number theory)
FORMULA
MAPLE
b:= proc(n, i, r) option remember; `if`(i*(i+1)/2<n, 0, `if`(n=0,
r, b(n, i-1, r) +b(n-i, min(i-1, n-i), ilcm(i, r))))
end:
a:= n-> b(n$2, 1):
seq(a(n), n=0..44);
MATHEMATICA
b[n_, i_, r_] := b[n, i, r] = If[i(i+1)/2 < n, 0, If[n == 0, r, b[n, i-1, r] + b[n-i, Min[i-1, n-i], LCM[i, r]]]];
a[n_] := b[n, n, 1];
Table[a[n], {n, 0, 44}] (* Jean-François Alcover, Mar 20 2019, translated from Maple *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Mar 17 2019
STATUS
approved