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.

A020671 Numbers of form x^2 + 8 y^2.

Original entry on oeis.org

0, 1, 4, 8, 9, 12, 16, 17, 24, 25, 32, 33, 36, 41, 44, 48, 49, 57, 64, 68, 72, 73, 76, 81, 88, 89, 96, 97, 100, 108, 113, 121, 128, 129, 132, 136, 137, 144, 152, 153, 164, 169, 172, 176, 177, 192, 193, 196, 200, 201, 204, 209, 216, 225, 228, 233, 236, 241, 249, 256, 257
Offset: 1

Views

Author

Keywords

Crossrefs

Cf. A007519.

Programs

  • Magma
    [n: n in [0..230] | NormEquation(8, n) eq true]; // Vincenzo Librandi, Aug 31 2016
  • Mathematica
    lim=260; k=8; Union@Flatten@Table[x^2 + k y^2, {y, 0, Sqrt[lim/k]}, {x, 0, Sqrt[lim-k y^2]}] (* Vincenzo Librandi, Aug 31 2016 *)