login
Sum of the sizes of the seventh blocks in all set partitions of {1,2,...,n}.
2

%I #10 May 27 2018 02:29:15

%S 1,30,536,7473,90223,995191,10354804,103779309,1016654053,9840330258,

%T 94884791378,917358452410,8938608738199,88139900141632,

%U 882388425916186,8991438542446875,93434278760386701,991477889069432577,10753621593467498170,119276548511953973463

%N Sum of the sizes of the seventh blocks in all set partitions of {1,2,...,n}.

%H Alois P. Heinz, <a href="/A270499/b270499.txt">Table of n, a(n) for n = 7..575</a>

%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Partition_of_a_set">Partition of a set</a>

%p b:= proc(n, m) option remember; `if`(n=0, [1, 0],

%p add((p->`if`(j<8, [p[1], p[2]+p[1]*x^j], p))(

%p b(n-1, max(m, j))), j=1..m+1))

%p end:

%p a:= n-> coeff(b(n, 0)[2], x, 7):

%p seq(a(n), n=7..30);

%t b[n_, m_] := b[n, m] = If[n == 0, {1, 0}, Sum[Function[p, If[j < 8, {p[[1]], p[[2]] + p[[1]]*x^j}, p]][b[n - 1, Max[m, j]]], {j, 1, m + 1}]];

%t a[n_] := Coefficient[b[n, 0][[2]], x, 7];

%t Table[a[n], {n, 7, 30}] (* _Jean-François Alcover_, May 27 2018, translated from Maple *)

%Y Column p=7 of A270236.

%K nonn

%O 7,2

%A _Alois P. Heinz_, Mar 18 2016