OFFSET
1,4
COMMENTS
If n is prime, a(n)=0.
a(n) is odd if and only if n is odd and A001222(n) is even.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
90 = 2*3*3*5 so a(90) = 2 + 2*3 + 2*3*3 = 26.
MAPLE
f:= proc(n)
local F, T, P, j;
F:= sort(map(t -> t[1]$t[2], ifactors(n)[2]));
T:= 0; P:= 1;
for j from 1 to nops(F)-1 do
P:= P*F[j];
T:= T+P;
od;
T
end proc:
map(f, [$1..200]);
PROG
(PARI) conv(n) = {my(f=factor(n), v=vector(bigomega(n)), k=1); for (i=1, #f~, for (j=1, f[i, 2], v[k] = f[i, 1]; k++; ); ); v; }
a(n) = {my(v=conv(n)); sum(k=1, #v-1, prod(j=1, k, v[j])); } \\ Michel Marcus, Dec 04 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Dec 03 2020
STATUS
approved