OFFSET
1,2
LINKS
PROG
(PARI)
A048675(n) = { my(f = factor(n)); sum(k=1, #f~, f[k, 2]*2^primepi(f[k, 1]))/2; };
rgs_transform(invec) = { my(om = Map(), outvec = vector(length(invec)), u=1); for(i=1, length(invec), if(mapisdefined(om, invec[i]), my(pp = mapget(om, invec[i])); outvec[i] = outvec[pp] , mapput(om, invec[i], i); outvec[i] = u; u++ )); outvec; };
v304736 = rgs_transform(vector(65539, n, A304735(n)));
A304736(n) = v304736[n];
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, May 18 2018
STATUS
approved