A317708 Number of aperiodic relatively prime trees with n nodes.
1, 1, 1, 2, 4, 10, 20, 48, 108, 255, 595, 1435, 3434, 8372, 20419, 50289, 124289, 309122, 771508, 1934462
Offset: 1
Examples
The a(6) = 10 aperiodic relatively prime trees: (((((o))))) (((o(o)))) ((o((o)))) ((oo(o))) (o(((o)))) (o(o(o))) ((o)((o))) (oo((o))) (o(o)(o)) (ooo(o))
Links
Crossrefs
Programs
-
Mathematica
rurt[n_]:=If[n==1,{{}},Join@@Table[Select[Union[Sort/@Tuples[rurt/@ptn]],Or[Length[#]==1,And[Intersection@@#=={},GCD@@Length/@Split[#]==1]]&],{ptn,IntegerPartitions[n-1]}]]; Table[Length[rurt[n]],{n,10}]
Comments