OFFSET
1,2
COMMENTS
See A289078 for the definition of orderless same-tree.
EXAMPLE
a(20)=12031 corresponds to the following same-tree: {{1,1,1,1},{{1,1},{1,1}}}.
MATHEMATICA
nn=200000;
primeMS[n_]:=If[n===1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
leafcount[n_]:=If[n===1, 1, With[{m=primeMS[n]}, If[Length[m]===1, leafcount[First[m]], Total[leafcount/@m]]]];
sameQ[n_]:=Or[n===1, With[{m=primeMS[n]}, And[Length[m]>1, SameQ@@leafcount/@m, And@@sameQ/@m]]];
Select[Range[nn], sameQ]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Aug 23 2017
EXTENSIONS
More terms from Jinyuan Wang, Jun 21 2020
STATUS
approved