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.

A020677 Numbers of form 3*x^2 + 4*y^2.

Original entry on oeis.org

0, 3, 4, 7, 12, 16, 19, 27, 28, 31, 36, 39, 43, 48, 52, 63, 64, 67, 75, 76, 79, 84, 91, 100, 103, 108, 111, 112, 124, 127, 139, 144, 147, 148, 151, 156, 163, 171, 172, 175, 183, 192, 196, 199, 208, 211, 219, 223, 228, 243, 244, 247, 252, 256, 259, 268, 271, 279, 283, 291
Offset: 1

Views

Author

Keywords

Comments

Each of these numbers is congruent to 0, 3, 4 or 7 mod 12. Therefore, except for 3, all the primes in this sequence are of the form 12k + 7. - Alonso del Arte, Jan 23 2014

Crossrefs

Cf. A068229.

Programs

  • Mathematica
    max = 300; Select[Union[Flatten[Table[3x^2 + 4y^2, {x, 0, Ceiling[Sqrt[max/3]]}, {y, 0, Ceiling[Sqrt[max/4]]}]]], # < max &] (* Alonso del Arte, Jan 23 2014 *)