OFFSET
1,9
COMMENTS
A non-bi-unitary divisor d of n is a divisor d such that the greatest common unitary divisor of d and n/d is larger than 1.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = n - A390867(n).
Dirichlet g.f.: zeta(s-1) * (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 = 1 - zeta(3) * Product_{p prime} (1 - 2/p^3 + 2/p^4 - 1/p^5) = 0.060581449926056231448... .
MATHEMATICA
f[p_, e_] := p^e - If[EvenQ[e], (p - 1)*p^(e/2 - 1), 0]; a[1] = 0; a[n_] := n - Times @@ f @@@ FactorInteger[n]; Array[a, 100]
PROG
(PARI) a(n) = {my(f = factor(n)); 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), A390867 (bi-unitary), this sequence (non-bi-unitary).
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, Nov 22 2025
STATUS
approved
