The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A287252 Number of set partitions of [n] such that all absolute differences between least elements of consecutive blocks are <= two. 4
 1, 1, 2, 5, 14, 44, 152, 571, 2317, 10096, 47013, 232944, 1223428, 6786936, 39640947, 243060305, 1560340480, 10461611439, 73094563140, 531127372268, 4006242743228, 31316162403165, 253292622192153, 2116823651781702, 18255325000268015, 162261535224570326 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,3 LINKS Alois P. Heinz, Table of n, a(n) for n = 0..590 Wikipedia, Partition of a set FORMULA a(n) = A287216(n,2). a(n) = A000110(n) for n <= 3. 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-> b(n-1, min(2, n-1), 1, n): seq(a(n), n=0..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_] := b[n - 1, Min[2, n - 1], 1, n]; Table[a[n], {n, 0, 30}] (* Jean-François Alcover, May 28 2018, from Maple *) CROSSREFS Column k=2 of A287216. Cf. A000110. Sequence in context: A002890 A202856 A118929 * A204064 A081558 A202059 Adjacent sequences:  A287249 A287250 A287251 * A287253 A287254 A287255 KEYWORD nonn AUTHOR Alois P. Heinz, May 22 2017 STATUS approved

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

Last modified August 10 04:38 EDT 2020. Contains 336368 sequences. (Running on oeis4.)