OFFSET
1,12
COMMENTS
A non-bi-unitary divisor d of n is a divisor d such that the greatest common unitary divisors of d and n/d is larger than 1.
The sum of these divisors is A319072(n).
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
MATHEMATICA
a[n_] := Module[{e = FactorInteger[n][[;; , 2]]}, Times @@ (e + 1) - Times @@ (If[OddQ[#], # + 1, #]& /@ e)]; a[1] = 0; Array[a, 100]
PROG
(PARI) a(n) = {my(e = factor(n)[, 2]); vecprod(apply(x -> x+1, e)) - vecprod(apply(x -> if(x % 2, x+1, x), e)); }
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, Nov 25 2025
STATUS
approved
