OFFSET
2,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 2..1000
EXAMPLE
a(6) = 10: [1,1,2,2], [1,2,1,2], [1,2,2,1], [2,1,1,2], [2,1,2,1], [2,2,1,1], [3,3], [1,1,4], [1,4,1], [4,1,1].
MAPLE
b:= proc(n, i, p, k) option remember; `if`(n=0, p!, `if`(i<1, 0,
add(b(n-i*j, i-1, p+j, k)/j!, j=0..min(n/i, k))))
end:
a:= n-> b(n$2, 0, 2) -b(n$2, 0, 1):
seq(a(n), n=2..45);
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, May 29 2014
STATUS
approved