OFFSET
0,3
COMMENTS
Parts are unordered, sorts are ordered, all sorts up to the highest have to be present.
a(n) mod 2 = A040051(n).
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..424
FORMULA
a(n) = Sum_{k=0..n} A255970(n,k).
a(n) ~ n! / (2 * log(2)^(n+1)). - Vaclav Kotesovec, Sep 26 2023
EXAMPLE
a(3) = 17: 1a1a1a, 2a1a, 1a, 1a1a1b, 1a1b1a, 1b1a1a, 1b1b1a, 1b1a1b, 1a1b1b, 2a1b, 2b1a, 1a1b1c, 1a1c1b, 1b1a1c, 1b1c1a, 1c1a1b, 1c1b1a (in this example the sorts are labeled a, b, c).
MAPLE
b:= proc(n, i, k) option remember; `if`(n=0, 1, `if`(i<1, 0,
b(n, i-1, k) +`if`(i>n, 0, k*b(n-i, i, k))))
end:
a:= n-> add(add(b(n$2, k-i)*(-1)^i*binomial(k, i), i=0..k), k=0..n):
seq(a(n), n=0..25);
MATHEMATICA
b[n_, i_, k_] := b[n, i, k] = If[n==0, 1, If[i<1, 0, b[n, i-1, k] + If[i>n, 0, k*b[n-i, i, k]]]]; a[n_] := Sum[Sum[b[n, n, k-i]*(-1)^i*Binomial[k, i], {i, 0, k}], {k, 0, n}]; Table[a[n], {n, 0, 25}] (* Jean-François Alcover, Feb 06 2017, translated from Maple *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Nov 24 2016
STATUS
approved