OFFSET
1,1
COMMENTS
The sides of a primitive 60-degree integer triangle.
LINKS
Colin Barker, Table of n, a(n) for n = 1..9999
Eric Weisstein's World of Mathematics, Pythagorean Triple
Wikipedia, Eisenstein triple
PROG
(PARI)
pt60(a) = {
my(L=List(), n=-3*a^2, f, g, b, c);
fordiv(n, f,
g=n\f;
if(f>g && (g+f)%2==0 && (f-g)%4==0,
b=(f-g)\4; c=((f+g)\2+a)\2;
if(c>0 && a<b && gcd(a, c)==1, listput(L, [a, b, c]))
)
);
Vec(L)
}
concat(concat(vector(30, a, pt60(a))))
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Colin Barker, Nov 26 2015
STATUS
approved