cp's OEIS Frontend

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.

A270672 Löschian numbers (A003136) that are multiples of 3.

This page as a plain text file.
%I A270672 #12 Jul 05 2017 13:27:22
%S A270672 0,3,9,12,21,27,36,39,48,57,63,75,81,84,93,108,111,117,129,144,147,
%T A270672 156,171,183,189,192,201,219,225,228,237,243,252,273,279,291,300,309,
%U A270672 324,327,333,336,351,363,372,381,387,399,417,432,441,444,453,468,471,489,507,513,516,525,543,549
%N A270672 Löschian numbers (A003136) that are multiples of 3.
%C A270672 Numbers of the form 3*(x^2 + xy + y^2).
%C A270672 Intersection of A008585 and A003136.
%H A270672 Charles R Greathouse IV, <a href="/A270672/b270672.txt">Table of n, a(n) for n = 1..10000</a>
%e A270672 21 is a term because 21 = 3*7 = 4^2 + 4*1 + 1^2.
%t A270672 Select[Range[0, 600], Resolve[Exists[{x, y}, Reduce[# == 3 (x^2 + x y + y^2), {x, y}, Integers]]] &] (* _Michael De Vlieger_, Mar 21 2016 *)
%o A270672 (PARI) x='x+O('x^1000); p=eta(x)^3/eta(x^3); for(n=0, 999, if(polcoeff(p, n) != 0 && n % 3 == 0, print1(n, ", ")));
%o A270672 (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, listput(v, t); y+=3)); Set(v) \\ _Charles R Greathouse IV_, Jul 05 2017
%Y A270672 Cf. Loeschian numbers: A003136 (all), A270248 (2*k), A266836 (2*k+1), A202822 (3*k+1), A260682 (6*k+1).
%K A270672 nonn
%O A270672 1,2
%A A270672 _Altug Alkan_, Mar 21 2016