OFFSET
1,3
EXAMPLE
a(20) = a(2*2*5) = a('10' * '10' * '101') = 1+1+2 = 4.
MATHEMATICA
sn1[n_]:=Total[Flatten[IntegerDigits[#, 2]&/@Flatten[Table[#[[1]], {#[[2]]}] &/@ FactorInteger[n]]]]; Join[{0}, Rest[Array[sn1, 110]]] (* Harvey P. Dale, Nov 19 2013 *)
PROG
(PARI) a(n) = my(f=factor(n)); sum(k=1, #f~, hammingweight(f[k, 1])*f[k, 2]); \\ Michel Marcus, Aug 28 2019
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Mar 10 2003
STATUS
approved