OFFSET
1,2
COMMENTS
Any positive integer greater than 1 can be written uniquely as a perfect power r(n)^k. We define a planted achiral (or generalized Bethe) tree b(n) for any positive integer greater than 1 by writing n as a perfect power r(d)^k and forming a tree with k branches all equal to b(d). Then a(n) is the number of nodes in b(n).
EXAMPLE
The first nineteen planted achiral trees are:
o,
(o),
((o)), (oo),
(((o))), ((oo)),
((((o)))), (ooo), ((o)(o)), (((oo))),
(((((o))))), ((ooo)), (((o)(o))), ((((oo)))),
((((((o)))))), (oooo), (((ooo))), ((((o)(o)))), (((((oo))))).
MATHEMATICA
nn=100;
rads=Select[Range[2, nn], GCD@@FactorInteger[#][[All, 2]]===1&];
a[1]:=1; a[n_]:=With[{k=GCD@@FactorInteger[n][[All, 2]]}, 1+k*a[Position[rads, n^(1/k)][[1, 1]]]];
Array[a, nn]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Sep 09 2017
STATUS
approved