OFFSET
1,2
COMMENTS
A bi-unitary divisor d of n is a divisor d such that the greatest common unitary divisor of d and n/d is 1.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
Multiplicative with a(p^e) = p^e if e is odd, and a(p^e) = p^e - (p-1)*p^(e/2 - 1) if e is even.
a(n) = n - A390868(n).
a(n) <= n, with equality if and only if n is an exponentially odd number (A268335).
Dirichlet g.f.: zeta(s-1) * zeta(2*s-1) * Product_{p prime} (1 - 2/p^(2*s-1) + 1/p^(2*s) + 1/p^(3*s-2) - 1/p^(3*s-1)).
Sum_{k=1..n} a(k) ~ c * n^2 / 2, where c = zeta(3) * Product_{p prime} (1 - 2/p^3 + 2/p^4 - 1/p^5) = 0.93941855007394376855... .
MATHEMATICA
f[p_, e_] := p^e - If[EvenQ[e], (p - 1)*p^(e/2 - 1), 0]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100]
PROG
(PARI) a(n) = {my(f = factor(n)); prod(i = 1, #f~, f[i, 1]^f[i, 2] - if(!(f[i, 2] % 2), (f[i, 1]-1)*f[i, 1]^(f[i, 2]/2 - 1))); }
CROSSREFS
The number of integers k from 1 to n such that gcd(n, k) is a divisor of n of type: A003557 (coreful), A055653 (unitary), A055654 (nonunitary), A010848 (non-coreful), A390863 (infinitary), A390864 (noninfinitary), A390865 (exponential), A390866 (nonexponential), this sequence (bi-unitary), A390868 (non-bi-unitary).
KEYWORD
nonn,mult,easy
AUTHOR
Amiram Eldar, Nov 22 2025
STATUS
approved
