OFFSET
1,1
COMMENTS
The values larger than 0 of the additive function b(n) defined by b(p^e) = p if p <= e, and 0 otherwise. - Amiram Eldar, Oct 05 2023
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = (Sum_{p prime} 1/p^(p-1))/(1 - Product_{p prime}(1 - 1/p^p)) = 2.203949957405925045806... . - Amiram Eldar, Oct 05 2023
EXAMPLE
a(30) = 5; A100716(30) = 108 has two divisors of the form p^p, namely 4 and 27 with prime factorization 2^2 and 3^3. The sum of the exponents of 2^2 and 3^3 is 2+3 = 5.
MATHEMATICA
f[p_, e_] := If[p <= e, p, 0]; b[1] = 0; b[n_] := Plus @@ f @@@ FactorInteger[n]; Select[Array[b, 1000], # > 0 &] (* Amiram Eldar, Oct 05 2023 *)
PROG
(PARI) b(n) = {my(f = factor(n)); sum(i = 1, #f~, if(f[i, 1] <= f[i, 2], f[i, 1], 0))};
lista(max) = {my(b1); for(k =1, max, b1 = b(k); if(b1 > 0, print1(b1, ", "))); } \\ Amiram Eldar, Oct 05 2023
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Feb 09 2022
STATUS
approved