OFFSET
1,12
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.
LINKS
FORMULA
a(n) = Sum_{d|n} [A056239(d) = A056239(n/d)], where [ ] is the Iverson bracket. - Antti Karttunen, Jan 20 2025
EXAMPLE
The a(3600) = 5 divisors, their prime indices, and the prime indices of their quotients:
45: {2,2,3} * {1,1,1,1,3}
50: {1,3,3} * {1,1,1,2,2}
60: {1,1,2,3} * {1,1,2,3}
72: {1,1,1,2,2} * {1,3,3}
80: {1,1,1,1,3} * {2,2,3}
MATHEMATICA
sumprix[n_]:=Total[Cases[FactorInteger[n], {p_, k_}:>k*PrimePi[p]]];
Table[Length[Select[Divisors[n], sumprix[#]==sumprix[n]/2&]], {n, 100}]
PROG
(PARI)
A056239(n) = if(1==n, 0, my(f=factor(n)); sum(i=1, #f~, f[i, 2] * primepi(f[i, 1])));
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Oct 27 2022
EXTENSIONS
Data section extended to a(108) by Antti Karttunen, Jan 20 2025
STATUS
approved