A363332 a(n) is the number of divisors of n that are both coreful and bi-unitary.
1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 3, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1, 1, 1, 1, 1
Offset: 1
Examples
a(8) = 3 since 8 has 4 divisors, 1, 2, 4 and 8, all are bi-unitary and 3 of them (2, 4 and 8) are also coreful.
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
f[p_, e_] := If[OddQ[e], e, e - 1]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 120]
-
PARI
a(n)={my(e = factor(n)[,2]); prod(i=1, #e, e[i] - 1 + e[i] % 2);}
Formula
Multiplicative with a(p^e) = e - 1 + (e mod 2).
a(n) = 1 if and only if n is cubefree (A004709).
a(n) >= A362852(n), with equality if and only if n is cubefree.
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = Product_{p prime} (1 + 2/(p^3-p)) = 1.48264570900305853294... .
Dirichlet g.f.: zeta(s) * zeta(2*s) * Product_{p prime} (1 - 1/p^(2*s) + 2/p^(3*s)). - Amiram Eldar, Sep 24 2023
Comments