OFFSET
1,2
LINKS
FORMULA
EXAMPLE
a(20) = a(2^2*5) = (2 - 1)*(2 + 1) * (5 - 1)*(1 + 1) = 24.
MAPLE
a:= n-> mul((i[1]-1)*(i[2]+1), i=ifactors(n)[2]):
seq(a(n), n=1..80); # Alois P. Heinz, Jan 05 2021
MATHEMATICA
a[n_] := Times @@ ((#[[1]] - 1) (#[[2]] + 1) & /@ FactorInteger[n]); a[1] = 1; Table[a[n], {n, 70}]
Table[DivisorSigma[0, n] EulerPhi[Last[Select[Divisors[n], SquareFreeQ]]], {n, 70}]
PROG
(PARI) a(n)={my(f=factor(n)); prod(i=1, #f~, my(p=f[i, 1], e=f[i, 2]); (p-1)*(e+1))} \\ Andrew Howroyd, Jul 24 2018
CROSSREFS
KEYWORD
nonn,mult
AUTHOR
Ilya Gutkovskiy, May 12 2018
STATUS
approved