OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..100
Wikipedia, Partition of a set
FORMULA
a(n) = A185982(2n,n).
MAPLE
b:= proc(n, i, m, k) option remember; `if`(k>n, 0, `if`(n=0, 1,
add(`if`(j=i+1 and k=0, 0, b(n-1, j, max(m, j), k-
`if`(j=i+1, 1, 0))), j=1..m+1)))
end:
a:= n-> b(2*n, 1, 0, n):
seq(a(n), n=0..18);
MATHEMATICA
b[n_, i_, m_, k_] := b[n, i, m, k] = If[k > n, 0, If[n == 0, 1, Sum[If[j == i + 1 && k == 0, 0, b[n - 1, j, Max[m, j], k - If[j == i + 1, 1, 0]]], {j, 1, m + 1}]]];
a[n_] := b[2*n, 1, 0, n];
Table[a[n], {n, 0, 18}] (* Jean-François Alcover, May 27 2018, translated from Maple *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Apr 15 2016
STATUS
approved