OFFSET
1,4
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.
FORMULA
EXAMPLE
The prime factors of 12 are {2,2,3}, while the prime indices are {1,1,2}, so a(12) = 7 - 4 = 3.
MATHEMATICA
Table[Total[Cases[If[n==1, {}, FactorInteger[n]], {p_, k_}:>k*(p-PrimePi[p])]], {n, 30}]
CROSSREFS
The sum of prime factors of n is A001414(n).
The sum of prime indices of n is A056239(n).
Numbers divisible by the sum of their prime factors are A036844.
Sum of prime factors is divisible by sum of prime indices: A331380
Product of prime indices equals sum of prime factors: A331384.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jan 17 2020
STATUS
approved