cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A320768 Number of set partitions of the set of nonempty subsets of {1,...,n} where each block's elements are pairwise disjoint sets.

Original entry on oeis.org

1, 1, 2, 15, 2420, 333947200
Offset: 0

Views

Author

Gus Wiseman, Dec 09 2018

Keywords

Examples

			The a(3) = 15 set partitions:
  {{{1}},{{2}},{{3}},{{1,2}},{{1,3}},{{2,3}},{{1,2,3}}}
  {{{1}},{{2}},{{3},{1,2}},{{1,3}},{{2,3}},{{1,2,3}}}
  {{{1}},{{2},{3}},{{1,2}},{{1,3}},{{2,3}},{{1,2,3}}}
  {{{1}},{{2},{1,3}},{{3}},{{1,2}},{{2,3}},{{1,2,3}}}
  {{{1}},{{2},{1,3}},{{3},{1,2}},{{2,3}},{{1,2,3}}}
  {{{1},{2}},{{3}},{{1,2}},{{1,3}},{{2,3}},{{1,2,3}}}
  {{{1},{2}},{{3},{1,2}},{{1,3}},{{2,3}},{{1,2,3}}}
  {{{1},{3}},{{2}},{{1,2}},{{1,3}},{{2,3}},{{1,2,3}}}
  {{{1},{3}},{{2},{1,3}},{{1,2}},{{2,3}},{{1,2,3}}}
  {{{1},{2,3}},{{2}},{{3}},{{1,2}},{{1,3}},{{1,2,3}}}
  {{{1},{2,3}},{{2}},{{3},{1,2}},{{1,3}},{{1,2,3}}}
  {{{1},{2,3}},{{2},{3}},{{1,2}},{{1,3}},{{1,2,3}}}
  {{{1},{2,3}},{{2},{1,3}},{{3}},{{1,2}},{{1,2,3}}}
  {{{1},{2,3}},{{2},{1,3}},{{3},{1,2}},{{1,2,3}}}
  {{{1},{2},{3}},{{1,2}},{{1,3}},{{2,3}},{{1,2,3}}}
		

Crossrefs

Programs

  • Mathematica
    spsu[,{}]:={{}};spsu[foo,set:{i_,_}]:=Join@@Function[s,Prepend[#,s]&/@spsu[Select[foo,Complement[#,Complement[set,s]]=={}&],Complement[set,s]]]/@Cases[foo,{i,_}];
    sps[set_]:=spsu[Rest[Subsets[set]],set];
    Table[Length[spsu[Sort/@Union@@sps/@Rest[Subsets[Range[n]]],Rest[Subsets[Range[n]]]]],{n,4}]

Extensions

a(5) from, and definition clarified by Christian Sievers, Nov 30 2024