OFFSET
1,4
LINKS
FORMULA
a(n) = Sum_{d|n} A349388(d).
Multiplicative with a(p^e) = (p^(e+1) - nextprime(p)*(p^e-1) - 1)/(p-1), where nextprime(p) = A151800(p). - Amiram Eldar, Jan 12 2025
MATHEMATICA
f[p_, e_] := (p^(e + 1) - NextPrime[p]*(p^e - 1) - 1)/(p - 1); a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Jan 12 2025 *)
PROG
CROSSREFS
KEYWORD
sign,mult,changed
AUTHOR
Antti Karttunen, Dec 11 2024
STATUS
approved