OFFSET
1,4
COMMENTS
For n > 1, this is one more than the number of adjacent equal terms in the multiset of prime factors of n.
LINKS
EXAMPLE
The prime factors of 540 are {2,2,3,3,3,5}, with maximal strictly increasing runs ({2},{2,3},{3},{3,5}), so a(540) = 4.
MATHEMATICA
Table[Length[Split[Flatten[ConstantArray@@@FactorInteger[n]], Less]], {n, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Aug 04 2024
STATUS
approved