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.
Every sequence can be uniquely split into a sequence of non-overlapping runs. For example, the runs of (2,2,1,1,1,3,2,2) are ((2,2),(1,1,1),(3),(2,2)), with sums (4,3,3,4).
EXAMPLE
The prime indices of 72 are {1,1,1,2,2}, with run-sums {3,4}, so a(72) = 3.
MATHEMATICA
Table[Min@@Cases[FactorInteger[n], {p_, k_}:>PrimePi[p]*k], {n, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jun 07 2022
STATUS
approved