OFFSET
1,6
LINKS
EXAMPLE
The a(2520) = 5 steps are {2,2,2,3,3,5,7} -> {1,1,2,3} -> {1,1,2} -> {1,2} -> {1,1} -> {2}.
MATHEMATICA
Table[Length[Select[FixedPointList[Sort[Length/@Split[#]]&, If[n===1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[p, {k}]]]]], Length[#]>1&]], {n, 100}]
PROG
(PARI)
A181819(n) = factorback(apply(e->prime(e), (factor(n)[, 2])));
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, May 12 2018
EXTENSIONS
More terms from Antti Karttunen, Dec 06 2018
STATUS
approved