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 A078909 #13 Feb 28 2020 04:12:47 %S A078909 0,2,0,4,3,2,0,6,0,5,0,4,5,2,3,8,5,2,0,7,0,2,0,6,6,7,0,4,7,5,0,10,0,7, %T A078909 3,4,7,2,5,9,9,2,0,4,3,2,0,8,0,8,5,9,9,2,3,6,0,9,0,7,11,2,0,12,8,2,0, %U A078909 9,0,5,0,6,11,9,6,4,0,7,0,11,0,11,0,4,8,2,7,6,13,5,5,4,0,2,3,10,13,2,0 %N A078909 Let r+i*s be the sum, with multiplicity, of the first-quadrant Gaussian primes dividing n; sequence gives s values. %C A078909 A Gaussian integer z = x+iy is in the first quadrant if x > 0, y >= 0. Just one of the 4 associates z, -z, i*z, -i*z is in the first quadrant. %C A078909 The sequence is fully additive. %H A078909 Amiram Eldar, <a href="/A078909/b078909.txt">Table of n, a(n) for n = 1..10000</a> %H A078909 Michael Somos, <a href="/A078458/a078458.txt">PARI program for finding prime decomposition of Gaussian integers</a> %H A078909 <a href="/index/Ga#gaussians">Index entries for Gaussian integers and primes</a> %e A078909 5 factors into the product of the primes 1+2*i, 1-2*i, but the first-quadrant associate of 1-2*i is i*(1-2*i) = 2+i, so r+i*s = 1+2*i + 2+i = 3+3*i. Therefore a(5) = 3. %t A078909 a[n_] := Module[{f = FactorInteger[n, GaussianIntegers->True]}, p = f[[;;,1]]; e = f[[;;,2]]; Im[Plus @@ ((If[Abs[#] == 1, 0, #]& /@ p) * e)]]; Array[a, 100] (* _Amiram Eldar_, Feb 28 2020 *) %Y A078909 Cf. A078458, A078908, A078910, A078911, A080088, A080089. %K A078909 nonn,easy %O A078909 1,2 %A A078909 _N. J. A. Sloane_, Jan 11 2003 %E A078909 More terms and further information from _Vladeta Jovovic_, Jan 27 2003