OFFSET
0,3
FORMULA
a(n) = A337584(2n,n).
EXAMPLE
a(0) = 1: [].
a(1) = 1: [1].
a(2) = 2: [2], [1,1].
a(3) = 3: [3], [1,2], [1,1,1].
a(4) = 4: [4], [1,3], [2,2], [1,1,2].
a(5) = 4: [5], [1,4], [1,1,3], [1,2,2].
a(6) = 8: [6], [1,5], [2,4], [3,3], [1,1,4], [1,2,3], [2,2,2], [1,1,1,3].
a(7) = 8: [7], [1,6], [1,1,5], [1,2,4], [1,3,3], [2,2,3], [1,1,1,4], [1,1,2,3].
MAPLE
b:= proc(n, i) option remember; `if`(n=0 or i=1, `if`(n=0, {[]}, {[n]}),
{b(n, i-1)[], seq(map(x-> sort([x[], j]), b(n-i*j, i-1))[], j=1..n/i)})
end:
a:= n-> nops(select(l-> add(i, i=l)=n, b(2*n$2))):
seq(a(n), n=0..30);
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Aug 17 2021
STATUS
approved