login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A343787
Number of ordered partitions of an n-set without blocks of size 4.
6
1, 1, 3, 13, 74, 531, 4563, 45753, 524345, 6760039, 96837333, 1525909903, 26230304235, 488472319271, 9796281435125, 210496933103743, 4824574494068495, 117490079786298641, 3029472152485535343, 82454398253005541089, 2362311059301928969755, 71063998308414194250901
OFFSET
0,3
FORMULA
E.g.f.: 1 / (2 + x^4/4! - exp(x)).
MAPLE
a:= proc(n) option remember; `if`(n=0, 1, add(
`if`(j=4, 0, a(n-j)*binomial(n, j)), j=1..n))
end:
seq(a(n), n=0..21); # Alois P. Heinz, Apr 29 2021
MATHEMATICA
nmax = 21; CoefficientList[Series[1/(2 + x^4/4! - Exp[x]), {x, 0, nmax}], x] Range[0, nmax]!
a[n_] := a[n] = If[n == 0, 1, Sum[If[k == 4, 0, Binomial[n, k] a[n - k]], {k, 1, n}]]; Table[a[n], {n, 0, 21}]
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Apr 29 2021
STATUS
approved