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 A055668 #11 Jun 17 2017 10:20:13 %S A055668 0,0,0,1,1,0,0,2,0,0,0,0,0,2,0,0,0,0,0,2,0,0,0,0,0,1,0,0,0,0,0,2,0,0, %T A055668 0,0,0,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,2, %U A055668 0,0,0,0,0,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,2,0 %N A055668 Number of inequivalent Eisenstein-Jacobi primes of norm n. %C A055668 These are the primes in the ring of integers a+b*omega, a and b rational integers, omega = (1+sqrt(-3))/2. %C A055668 Two primes are considered equivalent if they differ by multiplication by a unit (+-1, +-omega, +-omega^2). %D A055668 R. K. Guy, Unsolved Problems in Number Theory, A16. %D A055668 L. W. Reid, The Elements of the Theory of Algebraic Numbers, MacMillan, NY, 1910, see Chap. VI. %F A055668 a(n) = 2 if n is a prime = 1 (mod 6); a(n) = 1 if n = 3 or n = p^2 where p is a prime = 2 (mod 3); a(n) = 0 otherwise. - _Franklin T. Adams-Watters_, May 05 2006 %e A055668 There are 6 Eisenstein-Jacobi primes of norm 3, omega-omega^2 times one of the 6 units [ +-1, +-omega, +-omega^2 ] but only one up to equivalence. %t A055668 a[3] = 1; a[p_ /; PrimeQ[p] && Mod[p, 6] == 1] = 2; a[n_ /; PrimeQ[p = Sqrt[n]] && Mod[p, 3] == 2] = 1; a[_] = 0; Table[a[n], {n, 0, 104}] (* _Jean-François Alcover_, Aug 19 2013, after Franklin T. Adams-Watters *) %t A055668 Table[Which[PrimeQ[n]&&Mod[n,6]==1,2,n==3,1,PrimeQ[Sqrt[n]]&&Mod[ Sqrt[ n],3] == 2,1,True,0],{n,0,110}] (* _Harvey P. Dale_, Jun 17 2017 *) %Y A055668 Cf. A055664-A055667, A055025-A055029. See A004016 and A035019 for theta series of Eisenstein (or hexagonal) lattice. %K A055668 nonn,easy,nice %O A055668 0,8 %A A055668 _N. J. A. Sloane_, Jun 09 2000 %E A055668 More terms from _Franklin T. Adams-Watters_, May 05 2006