This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A318608 #40 Dec 06 2024 10:24:50 %S A318608 1,0,-1,0,1,0,-1,0,0,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,0,0,0,0,1,0,-1, %T A318608 0,1,0,-1,0,1,0,-1,0,1,0,-1,0,0,0,-1,0,0,0,-1,0,1,0,-1,0,1,0,-1,0,1,0, %U A318608 0,0,1,0,-1,0,1,0,-1,0,1,0,0,0,1,0,-1,0,0,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,0,0,1,0,-1,0,1,0,-1,0 %N A318608 Moebius function mu(n) defined for the Gaussian integers. %C A318608 Just like the original Moebius function over the integers, a(n) = 0 if n has a squared Gaussian prime factor, otherwise (-1)^t if n is a product of a Gaussian unit and t distinct Gaussian prime factors. %C A318608 a(n) = 0 for even n since 2 = -i*(1 + i)^2 contains a squared factor. For rational primes p == 1 (mod 4), p is always factored as (x + y*i)(x - y*i), x + y*i and x - y*i are not associated so a(p) = (-1)*(-1) = 1. %C A318608 Interestingly, a(n) and A091069(n) have the same absolute value (= |A087003(n)|), since the discriminants of the quadratic fields Q[i] and Q[sqrt(2)] are -4 and 8 respectively, resulting in Q[i] and Q[sqrt(2)] being two of the three quadratic fields with discriminant a power of 2 or negated (the other one being Q[sqrt(-2)] with discriminant -8). %H A318608 Jianing Song, <a href="/A318608/b318608.txt">Table of n, a(n) for n = 1..10000</a> %H A318608 Wikipedia, <a href="https://en.wikipedia.org/wiki/Gaussian_integer">Gaussian integer</a> %F A318608 a(n) = 0 if n even or has a square prime factor, otherwise Product_{p divides n} (2 - (p mod 4)) where the product is taken over the primes. %F A318608 Multiplicative with a(p^e) = 0 if p = 2 or e > 1, a(p) = 1 if p == 1 (mod 4) and -1 if p == 3 (mod 4). %F A318608 a(n) = 0 if A078458(n) != A086275(n), otherwise (-1)^A086275(n). %F A318608 a(n) = A103226(n,0) = A103226(0,n). %F A318608 For squarefree n, a(n) = Kronecker symbol (-4, n) = A101455(n). Also for these n, a(n) = A091069(n) if n even or n == 1 (mod 8), otherwise -A091069(n). %e A318608 a(15) = -1 because 15 is factored as 3*(2 + i)*(2 - i) with three distinct Gaussian prime factors. %e A318608 a(21) = (-1)*(-1) = 1 because 21 = 3*7 where 3 and 7 are congruent to 3 mod 4 (thus being Gaussian primes). %t A318608 f[p_, e_] := If[p == 2 || e > 1, 0, Switch[Mod[p, 4], 1, 1, 3, -1]]; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* _Amiram Eldar_, Feb 10 2020 *) %o A318608 (PARI) %o A318608 a(n)= %o A318608 { %o A318608 my(r=1, f=factor(n)); %o A318608 for(j=1, #f[, 1], my(p=f[j, 1], e=f[j, 2]); %o A318608 if(p==2||e>=2, r=0); %o A318608 if(Mod(p,4)==3&e==1, r*=-1); %o A318608 ); %o A318608 return(r); %o A318608 } %Y A318608 Absolute values are the same as those of A087003. %Y A318608 First row and column of A103226. %Y A318608 Cf. A101455. %Y A318608 Equivalent of arithmetic functions in the ring of Gaussian integers (the corresponding functions in the ring of integers are in the parentheses): A062327 ("d", A000005), A317797 ("sigma", A000203), A079458 ("phi", A000010), A227334 ("psi", A002322), A086275 ("omega", A001221), A078458 ("Omega", A001222), this sequence ("mu", A008683). %Y A318608 Equivalent in the ring of Eisenstein integers: A319448. %Y A318608 Cf. A091069 (Moebius function over Z[sqrt(2)]). %K A318608 sign,easy,mult %O A318608 1,1 %A A318608 _Jianing Song_, Aug 30 2018