A330654 Number of series/singleton-reduced rooted trees on normal multisets of size n.
1, 1, 2, 12, 112, 1444, 24099, 492434, 11913985
Offset: 0
Examples
The a(0) = 1 through a(3) = 12 trees: {} {1} {1,1} {1,1,1} {1,2} {1,1,2} {1,2,2} {1,2,3} {{1},{1,1}} {{1},{1,2}} {{1},{2,2}} {{1},{2,3}} {{2},{1,1}} {{2},{1,2}} {{2},{1,3}} {{3},{1,2}}
Crossrefs
Programs
-
Mathematica
sps[{}]:={{}};sps[set:{i_,_}]:=Join@@Function[s,Prepend[#,s]&/@sps[Complement[set,s]]]/@Cases[Subsets[set],{i,_}]; mps[set_]:=Union[Sort[Sort/@(#/.x_Integer:>set[[x]])]&/@sps[Range[Length[set]]]]; allnorm[n_]:=If[n<=0,{{}},Function[s,Array[Count[s,y_/;y<=#]+1&,n]]/@Subsets[Range[n-1]+1]]; ssrtrees[m_]:=Prepend[Join@@Table[Tuples[ssrtrees/@p],{p,Select[mps[m],Length[m]>Length[#1]>1&]}],m]; Table[Sum[Length[ssrtrees[s]],{s,allnorm[n]}],{n,0,5}]
Comments