OFFSET
1,2
COMMENTS
These trees are counted by A330951.
A rooted tree is singleton-reduced if no non-leaf node has all singleton branches, where a rooted tree is a singleton if its root has degree 1.
The Matula-Goebel number of a rooted tree is the product of primes of the Matula-Goebel numbers of its branches. This gives a bijective correspondence between positive integers and unlabeled rooted trees.
A prime index of n is a number m such that prime(m) divides n. A number belongs to this sequence iff it is 1 or its prime indices all belong to this sequence but are not all prime.
EXAMPLE
The sequence of all singleton-reduced rooted trees together with their Matula-Goebel numbers begins:
1: o
2: (o)
4: (oo)
6: (o(o))
7: ((oo))
8: (ooo)
12: (oo(o))
13: ((o(o)))
14: (o(oo))
16: (oooo)
18: (o(o)(o))
19: ((ooo))
21: ((o)(oo))
24: (ooo(o))
26: (o(o(o)))
28: (oo(oo))
32: (ooooo)
34: (o((oo)))
36: (oo(o)(o))
37: ((oo(o)))
MATHEMATICA
primeMS[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
mgsingQ[n_]:=n==1||And@@mgsingQ/@primeMS[n]&&!And@@PrimeQ/@primeMS[n];
Select[Range[100], mgsingQ]
CROSSREFS
The series-reduced case is A291636.
Unlabeled rooted trees are counted by A000081.
Numbers whose prime indices are not all prime are A330945.
Singleton-reduced rooted trees are counted by A330951.
Singleton-reduced phylogenetic trees are A000311.
The set S of numbers whose prime indices do not all belong to S is A324694.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jan 13 2020
STATUS
approved