OFFSET
1,3
COMMENTS
FORMULA
a(1) = 0, a(n) = 1/4 * (2^(i1+e1) + 2^(i2+e2) + ... + 2^(iz+ez)) if n = p_i1^e1*p_i2^e2*...*p_iz^ez, where p_i is i-th prime. (e.g. p1=2, p2=3).
MAPLE
bef2 := proc(n) local s, d; s := 0; for d in ifactors(n)[ 2 ] do s := s + (2^(nthprime(d[ 1 ])+d[ 2 ]-2)); od; RETURN(s); end; # for nthprime see A048675
PROG
(PARI) a(n) = {if (n==1, return (0)); my(f = factor(n)); sum(k=1, #f~, 2^(primepi(f[k, 1])+f[k, 2]))/4; } \\ Michel Marcus, Oct 02 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jul 14 1999
STATUS
approved