OFFSET
2,5
COMMENTS
Prime factors counted with multiplicity. - Harvey P. Dale, Jun 20 2013
Positions of 1's are A078175. a(n) is a divisor of Omega(n) = A001222(n). The average of prime indices (as opposed to prime factors) of n is A326567(n)/A326568(n). - Gus Wiseman, Jul 18 2019
LINKS
G. C. Greubel, Table of n, a(n) for n = 2..5000
MATHEMATICA
Table[Denominator[Mean[Flatten[Table[#[[1]], {#[[2]]}]&/@ FactorInteger[ n]]]], {n, 110}] (* Harvey P. Dale, Jun 20 2013 *)
PROG
(Python)
from math import gcd
from sympy import factorint
def A123529(n):
f = factorint(n)
return (l:=sum(f.values()))//gcd(l, sum(p*e for p, e in f.items())) # Chai Wah Wu, Jun 25 2026
(PARI) a(n) = my(f=factor(n)); denominator(sum(i=1, #f~, f[i, 1]*f[i, 2])/bigomega(f)); \\ Bruce Nye, Jun 26 2026
CROSSREFS
KEYWORD
frac,nonn,changed
AUTHOR
Franklin T. Adams-Watters, Oct 02 2006
STATUS
approved
