OFFSET
1,4
COMMENTS
Differs from A345222 at n = 64, 128, 192, 320, 384, ... .
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
MATHEMATICA
f[p_, e_] := BitLength[e]; a[1] = 0; a[n_] := Plus @@ f @@@ FactorInteger[n]; Array[a, 100]
PROG
(PARI) a(n) = vecsum(apply(x -> exponent(x) + 1, factor(n)[, 2]));
(Python)
from sympy import factorint
def A372502(n): return sum(e.bit_length() for e in factorint(n).values()) # Chai Wah Wu, Feb 18 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, May 04 2024
STATUS
approved
