A297571 Matula-Goebel numbers of fully unbalanced rooted trees.
1, 2, 3, 5, 6, 10, 11, 13, 15, 22, 26, 29, 30, 31, 33, 39, 41, 47, 55, 58, 62, 65, 66, 78, 79, 82, 87, 93, 94, 101, 109, 110, 113, 123, 127, 130, 137, 141, 145, 155, 158, 165, 167, 174, 179, 186, 195, 202, 205, 211, 218, 226, 235, 237, 246, 254, 257, 271, 274
Offset: 1
Keywords
Examples
Sequence of fully unbalanced trees begins: 1 o 2 (o) 3 ((o)) 5 (((o))) 6 (o(o)) 10 (o((o))) 11 ((((o)))) 13 ((o(o))) 15 ((o)((o))) 22 (o(((o)))) 26 (o(o(o))) 29 ((o((o)))) 30 (o(o)((o))) 31 (((((o))))) 33 ((o)(((o)))) 39 ((o)(o(o))) 41 (((o(o)))) 47 (((o)((o))))
Crossrefs
Programs
-
Mathematica
nn=2000; primeMS[n_]:=If[n===1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]]; MGweight[n_]:=If[n===1,1,1+Total[Cases[FactorInteger[n],{p_,k_}:>k*MGweight[PrimePi[p]]]]]; imbalQ[n_]:=Or[n===1,With[{m=primeMS[n]},And[UnsameQ@@MGweight/@m,And@@imbalQ/@m]]]; Select[Range[nn],imbalQ]
Comments