The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A322876 Number of set partitions of [n] such that the maximal absolute difference between the least elements of consecutive blocks equals three. 2
0, 1, 7, 39, 209, 1123, 6153, 34723, 202852, 1229672, 7742792, 50653678, 344195782, 2427812876, 17761759538, 134650690097, 1056676856777, 8574943334545, 71881479393513, 621792661601615, 5544644720281979, 50918125911279963, 481093310682127190 (list; graph; refs; listen; history; text; internal format)
OFFSET
3,3
LINKS
FORMULA
a(n) = A287253(n) - A287252(n).
MAPLE
b:= proc(n, k, m, l) option remember; `if`(n<1, 1,
`if`(l-n>k, 0, b(n-1, k, m+1, n))+m*b(n-1, k, m, l))
end:
A:= (n, k)-> b(n-1, min(k, n-1), 1, n):
a:= n-> (k-> A(n, k)-A(n, k-1))(3):
seq(a(n), n=3..30);
MATHEMATICA
b[n_, k_, m_, l_] := b[n, k, m, l] = If[n < 1, 1, If[l - n > k, 0, b[n - 1, k, m + 1, n]] + m b[n - 1, k, m, l]];
A[n_, k_] := b[n - 1, Min[k, n - 1], 1, n];
a[n_] := With[{k = 3}, A[n, k] - A[n, k - 1]];
a /@ Range[3, 30] (* Jean-François Alcover, May 05 2020, after Maple *)
CROSSREFS
Column k=3 of A287215.
Sequence in context: A016127 A099460 A246987 * A092923 A164550 A125786
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Dec 29 2018
STATUS
approved

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 May 14 05:21 EDT 2024. Contains 372528 sequences. (Running on oeis4.)