OFFSET
1,3
COMMENTS
A prime index of n is a number m such that prime(m) divides n. The multiset of prime indices of n is row n of A112798.
A run-sum of a sequence is the sum of any maximal consecutive constant subsequence.
EXAMPLE
The prime indices of 72 are {1,1,1,2,2}, with run-sums {3,4}, so a(72) = 4.
MATHEMATICA
Table[Max@@Cases[FactorInteger[n], {p_, k_}:>PrimePi[p]*k], {n, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, May 23 2022
STATUS
approved