OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Cubefree.
Eric Weisstein's World of Mathematics, Squarefree.
FORMULA
From Amiram Eldar, Feb 01 2024: (Start)
b(n) = a(n) - 1 is multiplicative with b(p^e) = p^(1 + min(e, 2)).
Dirichlet g.f.: zeta(s) * (1 + Product_{p prime} (1 + 1/p^(s-2) - 1/p^s + 1/p^(2*s-3) - 1/p^(2*s-2)).
Sum_{k=1..n} a(k) ~ c * n^3 / 3, where c = zeta(3) * Product_{p prime} (1 - 1/p^2 - 1/p^4 + 1/p^5) = 0.69256837284462414024... . (End)
MATHEMATICA
f[p_, e_] := p^(1 + Min[e, 2]); a[1] = 2; a[n_] := 1 + Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Feb 01 2024 *)
PROG
(PARI) a(n) = {my(f = factor(n)); 1 + prod(i = 1, #f~, f[i, 1]^(1 + min(f[i, 2], 2))); } \\ Amiram Eldar, Feb 01 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Aug 11 2004
STATUS
approved