A335403 If n = Product_{i=1..k} p_i^e_i then a(n) = Sum_{i=1..k} e_i * prime(p_i).
0, 3, 5, 6, 11, 8, 17, 9, 10, 14, 31, 11, 41, 20, 16, 12, 59, 13, 67, 17, 22, 34, 83, 14, 22, 44, 15, 23, 109, 19, 127, 15, 36, 62, 28, 16, 157, 70, 46, 20, 179, 25, 191, 37, 21, 86, 211, 17, 34, 25, 64, 47, 241, 18, 42, 26, 72, 112, 277, 22, 283, 130, 27, 18
Offset: 1
Examples
The prime factors of 18 are 2 * 3 * 3, so a(18) = prime(2) + prime(3) + prime(3) = 13.
Links
- Wikipedia, Additive function
Crossrefs
Programs
-
Mathematica
Table[Total[Cases[FactorInteger[n],{p_,k_}:>k*Prime[p]]],{n,30}]
-
PARI
a(n) = my(f=factor(n)); sum(k=1, #f~, prime(f[k,1])*f[k,2]); \\ Michel Marcus, Jun 07 2020
Extensions
Edited by N. J. A. Sloane, Jun 20 2020 following a suggestion from Bernard Schott.
Comments