OFFSET
1,2
EXAMPLE
The sequence of rooted trees together with their Matula-Goebel numbers begins:
1: o
2: (o)
4: (oo)
6: (o(o))
8: (ooo)
12: (oo(o))
16: (oooo)
18: (o(o)(o))
24: (ooo(o))
28: (oo(oo))
32: (ooooo)
36: (oo(o)(o))
48: (oooo(o))
54: (o(o)(o)(o))
56: (ooo(oo))
64: (oooooo)
72: (ooo(o)(o))
78: (o(o)(o(o)))
84: (oo(o)(oo))
96: (ooooo(o))
MATHEMATICA
primeMS[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
qaQ[n_]:=And[And@@Table[Divisible[n, x], {x, primeMS[n]}], And@@qaQ/@primeMS[n]];
Select[Range[1000], qaQ]
CROSSREFS
A subsequence of A120383.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Mar 18 2019
STATUS
approved