OFFSET
1,2
COMMENTS
Also Matula-Goebel numbers of semi-lone-child-avoiding locally disjoint rooted identity trees. A rooted tree is locally disjoint if no child of any vertex has branches overlapping the branches of any other (inequivalent) child of the same vertex. It is semi-lone-child-avoiding if there are no vertices with exactly one child unless that child is an endpoint/leaf. In an identity tree, the branches of any given vertex are all distinct. The Matula-Goebel number of a rooted tree is the product of primes indexed by the Matula-Goebel numbers of the branches of its root, which gives a bijective correspondence between positive integers and unlabeled rooted trees.
FORMULA
EXAMPLE
The sequence of terms together with their associated trees begins:
1: o
2: (o)
6: (o(o))
26: (o(o(o)))
202: (o(o(o(o))))
2462: (o(o(o(o(o)))))
MATHEMATICA
msiQ[n_]:=n==1||n==2||!PrimeQ[n]&&SquareFreeQ[n]&&(PrimePowerQ[n]||CoprimeQ@@PrimePi/@First/@FactorInteger[n])&&And@@msiQ/@PrimePi/@First/@FactorInteger[n];
Select[Range[1000], msiQ]
CROSSREFS
The semi-identity tree version is A331681.
Not requiring an identity tree gives A331873.
Not requiring local disjointness gives A331963.
Not requiring lone-child-avoidance gives A316494.
MG-numbers of semi-lone-child-avoiding rooted trees are A331935.
KEYWORD
nonn,more
AUTHOR
Gus Wiseman, Feb 07 2020
EXTENSIONS
a(14)-a(15) from Giovanni Resta, Feb 10 2020
STATUS
approved