OFFSET
1,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
FORMULA
Multiplicative with a(p^e) = 1+Sum_{k=1..e, gcd(k, e)=1} p^k.
MATHEMATICA
a[1] = 1; a[p_?PrimeQ] = p + 1; a[n_] := Times @@ (1 + Sum[If[GCD[k, Last[#]] == 1, First[#]^k, 0], {k, 1, Last[#]}] & ) /@ FactorInteger[n]; Table[a[n], {n, 1, 71}] (* Jean-François Alcover, May 04 2012 *)
PROG
(Haskell)
a069915 n = product $ zipWith sum_1phi (a027748_row n) (a124010_row n)
where sum_1phi p e = 1 + sum [p ^ k | k <- a038566_row e]
-- Reinhard Zumkeller, Mar 13 2012
(PARI) a(n) = {my(f = factor(n)); prod(i = 1, #f~, 1 + sum(k = 1, f[i, 2], (gcd(k, f[i, 2]) == 1) * f[i, 1]^k)); } \\ Amiram Eldar, Aug 15 2023
CROSSREFS
KEYWORD
mult,nonn
AUTHOR
Vladeta Jovovic, Apr 23 2002
STATUS
approved