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.

A124323 Triangle read by rows: T(n,k) is the number of partitions of an n-set having k singleton blocks (0<=k<=n).

This page as a plain text file.
%I A124323 #38 Sep 17 2024 20:41:12
%S A124323 1,0,1,1,0,1,1,3,0,1,4,4,6,0,1,11,20,10,10,0,1,41,66,60,20,15,0,1,162,
%T A124323 287,231,140,35,21,0,1,715,1296,1148,616,280,56,28,0,1,3425,6435,5832,
%U A124323 3444,1386,504,84,36,0,1,17722,34250,32175,19440,8610,2772,840,120,45,0,1
%N A124323 Triangle read by rows: T(n,k) is the number of partitions of an n-set having k singleton blocks (0<=k<=n).
%C A124323 Row sums are the Bell numbers (A000110). T(n,0)=A000296(n). T(n,k) = binomial(n,k)*T(n-k,0). Sum(k*T(n,k),k=0..n) = A052889(n) = n*B(n-1), where B(q) are the Bell numbers (A000110).
%C A124323 Exponential Riordan array [exp(exp(x)-1-x),x]. - _Paul Barry_, Apr 23 2009
%C A124323 Sum_{k=0..n} T(n,k)*2^k = A000110(n+1) is the number of binary relations on an n-set that are both symmetric and transitive. - _Geoffrey Critzer_, Jul 25 2014
%C A124323 Also the number of set partitions of {1, ..., n} with k cyclical adjacencies (successive elements in the same block, where 1 is a successor of n). Unlike A250104, we count {{1}} as having 1 cyclical adjacency. - _Gus Wiseman_, Feb 13 2019
%H A124323 Alois P. Heinz, <a href="/A124323/b124323.txt">Rows n = 0..140, flattened</a>
%H A124323 David Callan, <a href="https://arxiv.org/abs/math/0508052">On conjugates for set partitions and integer compositions</a>, arXiv:math/0508052 [math.CO], 2005.
%H A124323 T. Mansour, A. O. Munagi, <a href="https://doi.org/10.1016/j.ejc.2014.06.008">Set partitions with circular successions</a>, European Journal of Combinatorics, 42 (2014), 207-216.
%F A124323 T(n,k) = binomial(n,k)*[(-1)^(n-k)+sum((-1)^(j-1)*B(n-k-j), j=1..n-k)], where B(q) are the Bell numbers (A000110).
%F A124323 E.g.f.: G(t,z) = exp(exp(z)-1+(t-1)*z).
%F A124323 G.f.: 1/(1-xy-x^2/(1-xy-x-2x^2/(1-xy-2x-3x^2/(1-xy-3x-4x^2/(1-... (continued fraction). - _Paul Barry_, Apr 23 2009
%e A124323 T(4,2)=6 because we have 12|3|4, 13|2|4, 14|2|3, 1|23|4, 1|24|3 and 1|2|34 (if we take {1,2,3,4} as our 4-set).
%e A124323 Triangle starts:
%e A124323      1
%e A124323      0    1
%e A124323      1    0    1
%e A124323      1    3    0    1
%e A124323      4    4    6    0    1
%e A124323     11   20   10   10    0    1
%e A124323     41   66   60   20   15    0    1
%e A124323    162  287  231  140   35   21    0    1
%e A124323    715 1296 1148  616  280   56   28    0    1
%e A124323   3425 6435 5832 3444 1386  504   84   36    0    1
%e A124323 From _Gus Wiseman_, Feb 13 2019: (Start)
%e A124323 Row n = 5 counts the following set partitions by number of singletons:
%e A124323   {{1234}}    {{1}{234}}  {{1}{2}{34}}  {{1}{2}{3}{4}}
%e A124323   {{12}{34}}  {{123}{4}}  {{1}{23}{4}}
%e A124323   {{13}{24}}  {{124}{3}}  {{12}{3}{4}}
%e A124323   {{14}{23}}  {{134}{2}}  {{1}{24}{3}}
%e A124323                           {{13}{2}{4}}
%e A124323                           {{14}{2}{3}}
%e A124323 ... and the following set partitions by number of cyclical adjacencies:
%e A124323   {{13}{24}}      {{1}{2}{34}}  {{1}{234}}  {{1234}}
%e A124323   {{1}{24}{3}}    {{1}{23}{4}}  {{12}{34}}
%e A124323   {{13}{2}{4}}    {{12}{3}{4}}  {{123}{4}}
%e A124323   {{1}{2}{3}{4}}  {{14}{2}{3}}  {{124}{3}}
%e A124323                                 {{134}{2}}
%e A124323                                 {{14}{23}}
%e A124323 (End)
%e A124323 From _Paul Barry_, Apr 23 2009: (Start)
%e A124323 Production matrix is
%e A124323 0, 1,
%e A124323 1, 0, 1,
%e A124323 1, 2, 0, 1,
%e A124323 1, 3, 3, 0, 1,
%e A124323 1, 4, 6, 4, 0, 1,
%e A124323 1, 5, 10, 10, 5, 0, 1,
%e A124323 1, 6, 15, 20, 15, 6, 0, 1,
%e A124323 1, 7, 21, 35, 35, 21, 7, 0, 1,
%e A124323 1, 8, 28, 56, 70, 56, 28, 8, 0, 1 (End)
%p A124323 G:=exp(exp(z)-1+(t-1)*z): Gser:=simplify(series(G,z=0,14)): for n from 0 to 11 do P[n]:=sort(n!*coeff(Gser,z,n)) od: for n from 0 to 11 do seq(coeff(P[n],t,k),k=0..n) od; # yields sequence in triangular form
%p A124323 # Program from _R. J. Mathar_, Jan 22 2015:
%p A124323 A124323 := proc(n,k)
%p A124323     binomial(n,k)*A000296(n-k) ;
%p A124323 end proc:
%t A124323 Flatten[CoefficientList[Range[0,10]! CoefficientList[Series[Exp[x y] Exp[Exp[x] - x - 1], {x, 0,10}], x], y]] (* _Geoffrey Critzer_, Nov 24 2011 *)
%t A124323 sps[{}]:={{}};sps[set:{i_,___}]:=Join@@Function[s,Prepend[#,s]&/@sps[Complement[set,s]]]/@Cases[Subsets[set],{i,___}];
%t A124323 Table[Length[Select[sps[Range[n]],Count[#,{_}]==k&]],{n,0,9},{k,0,n}] (* _Gus Wiseman_, Feb 13 2019 *)
%Y A124323 Cf. A000110, A052889, A124324.
%Y A124323 A250104 is an essentially identical triangle, differing only in row 1.
%Y A124323 For columns see A000296, A250105, A250106, A250107.
%Y A124323 Cf. A000126, A001610, A032032, A052841, A066982, A080107, A169985, A187784, A324011, A324014, A324015.
%K A124323 nonn,tabl
%O A124323 0,8
%A A124323 _Emeric Deutsch_, Oct 28 2006