%I #21 Dec 08 2023 07:11:44
%S 0,0,1,2,12,35,206,780,4949,22686,156972,837333,6301550,38122554,
%T 310279615,2090641920,18293310174,135445359397,1267153412532,
%U 10202944645270,101557600812015,881921432827544,9299499328238110,86508104545175503,962663031508255416
%N Total number of blocks containing only even elements in all partitions of [n].
%H Alois P. Heinz, <a href="/A363453/b363453.txt">Table of n, a(n) for n = 0..250</a>
%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Partition_of_a_set">Partition of a set</a>
%F a(n) = Sum_{k=0..floor(n/2)} k * A124422(n,k).
%F a(n) = A363434(n) - A363452(n).
%F a(2n) = A363452(2n).
%F a(2n+1) = A363452(2n+1) - A094577(n).
%e a(3) = 2 = 0 + 0 + 1 + 0 + 1 : 123, 12|3, 13|2, 1|23, 1|2|3.
%p b:= proc(n, k) local g, u; g:= floor(n/2); u:=ceil(n/2);
%p add(Stirling2(i, k)*binomial(g, i)*
%p add(Stirling2(u, j)*j^(g-i), j=0..u), i=k..g)
%p end:
%p a:= n-> add(b(n, k)*k, k=0..floor(n/2)):
%p seq(a(n), n=0..25);
%p # second Maple program:
%p b:= proc(n, x, y, m) option remember; `if`(n=0, x,
%p `if`(x+m>0, b(n-1, y, x, m)*(x+m), 0)+b(n-1, y, x+1, m)+
%p `if`(y>0, b(n-1, y-1, x, m+1)*y, 0))
%p end:
%p a:= n-> b(n, 0$3):
%p seq(a(n), n=0..25);
%t b[n_, x_, y_, m_] := b[n, x, y, m] = If[n == 0, x,
%t If[x+m > 0, b[n-1, y, x, m]*(x+m), 0] + b[n-1, y, x+1, m] +
%t If[y > 0, b[n-1, y-1, x, m+1]*y, 0]];
%t a[n_] := b[n, 0, 0, 0];
%t Table[a[n], {n, 0, 25}] (* _Jean-François Alcover_, Dec 08 2023, after _Alois P. Heinz_ *)
%Y Cf. A000110, A094577, A124422, A363434, A363452.
%K nonn
%O 0,4
%A _Alois P. Heinz_, Jun 02 2023
|