OFFSET
1,2
LINKS
EXAMPLE
The sequence of terms together with their Matula-Goebel numbers begins:
1: o
2: (o)
3: ((o))
4: (oo)
5: (((o)))
7: ((oo))
8: (ooo)
9: ((o)(o))
10: (o((o)))
11: ((((o))))
14: (o(oo))
16: (oooo)
17: (((oo)))
19: ((ooo))
20: (oo((o)))
21: ((o)(oo))
22: (o(((o))))
23: (((o)(o)))
25: (((o))((o)))
27: ((o)(o)(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, DeleteCases[primeMS[n], 1]}], And@@qaQ/@primeMS[n]];
Select[Range[100], qaQ]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Mar 18 2019
STATUS
approved