OFFSET
1,8
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
a(n) >= 1, with equality if and only if n is cubefree (A004709).
Multiplicative with a(p^e) = 1 if e <= 2 and e+1 otherwise.
Dirichlet g.f.: zeta(s)^2 * Product_{p prime} (1 - 1/p^s + 3/p^(3*s) - 2/p^(4*s)).
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = zeta(2) * Product_{p prime} (1 - 1/p^2 + 3/p^3 + 1/p^4 - 2/p^5) = 1.76434793373691907811... .
MATHEMATICA
f[p_, e_] := If[e < 3, 1, e+1]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100]
PROG
(PARI) a(n) = vecprod(apply(x -> if(x < 3, 1, x+1), factor(n)[, 2]));
CROSSREFS
KEYWORD
nonn,easy,mult
AUTHOR
Amiram Eldar, Oct 01 2023
STATUS
approved