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 A202822 #37 Aug 18 2017 09:41:43 %S A202822 1,4,7,13,16,19,25,28,31,37,43,49,52,61,64,67,73,76,79,91,97,100,103, %T A202822 109,112,121,124,127,133,139,148,151,157,163,169,172,175,181,193,196, %U A202822 199,208,211,217,223,229,241,244,247,256,259,268,271,277,283,289,292 %N A202822 Numbers of the form 3*(x^2 + xy + y^2 + x + y) + 1 where x and y are integers. %C A202822 Closed under multiplication. %C A202822 Löschian numbers of the form 3*k+1. - _Altug Alkan_, Nov 18 2015 %H A202822 Reinhard Zumkeller, <a href="/A202822/b202822.txt">Table of n, a(n) for n = 1..10000</a> %H A202822 Joerg Arndt, <a href="https://arxiv.org/abs/1607.02433">Plane-filling curves on all uniform grids</a>, arXiv preprint arXiv:1607.02433 [math.CO], 2016. %F A202822 A033685(n) != 0 if and only if n is in the set. %t A202822 nf[{i_,j_}]:=3(i^2+i*j+j^2+i+j)+1; Union[nf/@Tuples[Range[-10,10],2]] (* _Harvey P. Dale_, Dec 31 2011 *) %o A202822 (PARI) isA(n) = if(n%3 == 0, 0, 0 != sumdiv( n, d, kronecker( -3, d))) %o A202822 (PARI) x='x+O('x^500); p=eta(x)^3/eta(x^3); for(n=0, 499, if(polcoeff(p, n) != 0 && n%3==1, print1(n, ", "))) \\ _Altug Alkan_, Nov 18 2015 %o A202822 (PARI) is(n)=(n%3==1) && #bnfisintnorm(bnfinit(z^2+z+1), n); \\ _Joerg Arndt_, Jan 04 2016 %o A202822 (PARI) list(lim)=my(v=List(), y, t); for(x=0, sqrtint(lim\3), my(y=x, t); while((t=x^2+x*y+y^2)<=lim, if((x-y)%3, listput(v, t)); y++)); Set(v) \\ _Charles R Greathouse IV_, Jul 05 2017 %o A202822 (Haskell) %o A202822 a202822 n = a202822_list !! (n-1) %o A202822 a202822_list = filter ((== 1) . flip mod 3) a003136_list %o A202822 -- _Reinhard Zumkeller_, Nov 16 2015 %Y A202822 Cf. A033685, A045833. %Y A202822 Subsequence of A003136, A260682 (subsequence). %K A202822 nonn %O A202822 1,2 %A A202822 _Michael Somos_, Dec 25 2011