A325697 Number of rooted trees with n vertices with no proper terminal subtree appearing at only one position.
1, 0, 1, 1, 2, 2, 5, 5, 11, 13, 27, 30, 69, 76, 168
Offset: 1
Examples
The a(4) = 1 through a(9) = 11 rooted trees: (ooo) (oooo) (ooooo) (oooooo) (ooooooo) (oooooooo) ((o)(o)) (o(o)(o)) ((oo)(oo)) (o(oo)(oo)) ((ooo)(ooo)) (oo(o)(o)) (ooo(o)(o)) (oo(oo)(oo)) ((o)(o)(o)) (o(o)(o)(o)) (oooo(o)(o)) (((o))((o))) (o((o))((o))) (oo(o)(o)(o)) (((oo))((oo))) ((o)(o)(o)(o)) ((o(o))(o(o))) (oo((o))((o))) ((o)((o))((o))) ((((o)))(((o))))
Programs
-
Mathematica
urt[n_]:=Join@@Table[Union[Sort/@Tuples[urt/@ptn]],{ptn,IntegerPartitions[n-1]}]; Table[Length[Select[urt[n],!MemberQ[Length/@Split[Sort[Extract[#,Most[Position[#,_List]]]]],1]&]],{n,15}]
Comments