login
A332476
The number of unitary divisors of n in Gaussian integers.
3
1, 2, 2, 2, 4, 4, 2, 2, 2, 8, 2, 4, 4, 4, 8, 2, 4, 4, 2, 8, 4, 4, 2, 4, 4, 8, 2, 4, 4, 16, 2, 2, 4, 8, 8, 4, 4, 4, 8, 8, 4, 8, 2, 4, 8, 4, 2, 4, 2, 8, 8, 8, 4, 4, 8, 4, 4, 8, 2, 16, 4, 4, 4, 2, 16, 8, 2, 8, 4, 16, 2, 4, 4, 8, 8, 4, 4, 16, 2, 8, 2, 8, 2, 8, 16
OFFSET
1,2
LINKS
FORMULA
Multiplicative with a(p^e) = 4 if p == 1 (mod 4) and 2 otherwise.
a(n) = 2^A086275(n).
EXAMPLE
a(2) = 2 since 2 = -i * (1 + i)^2, so it has 2 unitary divisors (up to associates): 1 and (1 + i)^2.
MATHEMATICA
f[p_, e_] := If[Abs[p] == 1, 1, 2]; a[n_] := Times @@ f @@@ FactorInteger[n, GaussianIntegers -> True]; Array[a, 100]
CROSSREFS
KEYWORD
nonn,mult
AUTHOR
Amiram Eldar, Feb 13 2020
STATUS
approved