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.

A264826 Primitive Eisenstein triples: (a,b,c) in lexicographic order such that a^2 + b^2 - a*b - c^2 = 0, a < b < c, and gcd(a, b) = 1.

Original entry on oeis.org

3, 7, 8, 5, 7, 8, 5, 19, 21, 7, 13, 15, 7, 37, 40, 8, 13, 15, 9, 61, 65, 11, 31, 35, 11, 91, 96, 13, 43, 48, 13, 127, 133, 15, 169, 176, 16, 19, 21, 16, 49, 55, 17, 73, 80, 17, 217, 225, 19, 91, 99, 19, 271, 280, 21, 331, 341, 23, 133, 143, 23, 397, 408
Offset: 1

Views

Author

Colin Barker, Nov 26 2015

Keywords

Comments

The sides of a primitive 60-degree integer triangle.

Crossrefs

Programs

  • 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