login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A288786 Number of blocks of size >= four in all set partitions of n. 2

%I #16 Jun 26 2022 05:52:15

%S 1,6,37,225,1395,8944,59585,413117,2981310,22380814,174600298,

%T 1413841252,11868587577,103155618776,927141821215,8606806236367,

%U 82430269073469,813600584094320,8267450613029789,86406853732930699,927993270700444588,10232636504064477996

%N Number of blocks of size >= four in all set partitions of n.

%H Alois P. Heinz, <a href="/A288786/b288786.txt">Table of n, a(n) for n = 4..575</a>

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

%F a(n) = Bell(n+1) - Sum_{j=0..3} binomial(n,j) * Bell(n-j).

%F a(n) = Sum_{j=0..n-4} binomial(n,j) * Bell(j).

%F E.g.f.: (exp(x) - Sum_{k=0..3} x^k/k!) * exp(exp(x) - 1). - _Ilya Gutkovskiy_, Jun 25 2022

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

%p b(n-j)*binomial(n-1, j-1), j=1..n))

%p end:

%p g:= proc(n, k) option remember; `if`(n<k, 0,

%p g(n, k+1) +binomial(n, k)*b(n-k))

%p end:

%p a:= n-> g(n, 4):

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

%p # second Maple program:

%p b:= proc(n) option remember; `if`(n=0, [1, 0], add((p-> p+[0,

%p `if`(j>3, p[1], 0)])(b(n-j)*binomial(n-1, j-1)), j=1..n))

%p end:

%p a:= n-> b(n)[2]:

%p seq(a(n), n=4..30); # _Alois P. Heinz_, Jan 06 2022

%t b[n_] := b[n] = If[n == 0, 1, Sum[b[n - j]*Binomial[n-1, j-1], {j, 1, n}]];

%t g[n_, k_] := g[n, k] = If[n < k, 0, g[n, k+1] + Binomial[n, k]*b[n - k]];

%t a[n_] := g[n, 4];

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

%Y Column k=4 of A283424.

%Y Cf. A000110.

%K nonn

%O 4,2

%A _Alois P. Heinz_, Jun 15 2017

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 13:02 EDT 2024. Contains 371969 sequences. (Running on oeis4.)