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!)
A270954 Number of set partitions of [n] having no pairs (m,m+1) such that m+1 is in some block b and m is in block b+1. 2
1, 1, 2, 4, 9, 25, 84, 323, 1377, 6412, 32312, 174941, 1011357, 6210298, 40323011, 275763910, 1979709852, 14875239212, 116679269248, 953201694216, 8093501305721, 71291395351760, 650357174742217, 6134966541625355, 59759476024690454, 600309156303711764 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
EXAMPLE
a(3) = 4: 123, 12|3, 1|23, 1|2|3.
a(4) = 9: 1234, 123|4, 12|34, 12|3|4, 1|234, 1|23|4, 14|2|3, 1|2|34, 1|2|3|4.
MAPLE
b:= proc(n, i, m) option remember; `if`(n=0, 1, add(
`if`(j=i-1, 0, b(n-1, j, max(m, j))), j=1..m+1))
end:
a:= n-> b(n, 1, 0):
seq(a(n), n=0..25);
MATHEMATICA
b[n_, i_, m_] := b[n, i, m] = If[n == 0, 1, Sum[If[j == i - 1, 0, b[n - 1, j, Max[m, j]]], {j, 1, m + 1}]];
a[n_] := b[n, 1, 0];
Table[a[n], {n, 0, 25}] (* Jean-François Alcover, May 27 2018, translated from Maple *)
CROSSREFS
Column k=0 of A270953.
Sequence in context: A335342 A140290 A192801 * A173496 A173311 A127055
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Mar 26 2016
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 August 11 07:13 EDT 2024. Contains 375059 sequences. (Running on oeis4.)