OFFSET
1,4
COMMENTS
The sum of binary digits of an integer is the number of 1's in its binary representation. 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
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
Totally additive with a(prime(n)) = A000120(n).
MATHEMATICA
Table[Sum[pr[[2]]*DigitCount[PrimePi[pr[[1]]], 2, 1], {pr, FactorInteger[n]}], {n, 100}]
PROG
(PARI) a(n) = {my(f = factor(n)); sum(i = 1, #f~, f[i, 2] * hammingweight(primepi(f[i, 1]))); } \\ Amiram Eldar, Jan 17 2026
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Gus Wiseman, Mar 29 2019
STATUS
approved
