OFFSET
0,5
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..100
FORMULA
a(n) = A152474(n,n).
MAPLE
f:= proc(n) option remember; `if`(n<2, 1, f(n-1)*(q^n-1)/(q-1)) end:
b:= proc(n, i) option remember; simplify(`if`(n=0, 1, `if`(i<1, 0,
add(b(n-i*j, i-1)/f(i)^j/j!, j=0..n/i))))
end:
a:= n-> coeff(simplify(n!*f(n)*b(n$2)), q, n):
seq(a(n), n=0..19);
MATHEMATICA
f[n_] := f[n] = If[n < 2, 1, f[n - 1]*(q^n - 1)/(q - 1)];
b[n_, i_] := b[n, i] = If[n == 0, 1, If[i < 1, 0,
Sum[b[n - i*j, i - 1]/f[i]^j/j!, {j, 0, n/i}]]];
a[n_] := SeriesCoefficient[n!*f[n]*b[n, n], {q, 0, n}];
Table[a[n], {n, 0, 19}] (* Jean-François Alcover, Apr 07 2022, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Aug 09 2021
STATUS
approved