OFFSET
1,2
LINKS
FORMULA
a(p^k) = (p + 1)*k where p is a prime and k > 0.
a(n) = Product_{p|n} (p + 1) if n is a squarefree (A005117).
Sum_{k=1..n} a(k) ~ c * n^2, where c = (Pi^2/12) * Product_{p prime} (1 - 1/p^2 + 1/p^3) = A072691 * A330596 = 0.6156455744... . - Amiram Eldar, Nov 30 2022
EXAMPLE
a(24) = a(2^3*3) = (2 + 1)*3 * (3 + 1)*1 = 36.
MATHEMATICA
a[n_] := Times @@ ((#[[1]] + 1) #[[2]] & /@ FactorInteger[n]); a[1] = 1; Table[a[n], {n, 72}]
Table[Total[Select[Divisors[n], SquareFreeQ]] DivisorSigma[0, n/Last[Select[Divisors[n], SquareFreeQ]]], {n, 72}]
PROG
(PARI) a(n)={my(f=factor(n)); prod(i=1, #f~, my(p=f[i, 1], e=f[i, 2]); (p+1)*e)} \\ Andrew Howroyd, Jul 24 2018
CROSSREFS
KEYWORD
nonn,mult
AUTHOR
Ilya Gutkovskiy, May 12 2018
STATUS
approved