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.

A320728 Numbers that are sums of consecutive odd squares (or centered octagonal numbers).

Original entry on oeis.org

0, 1, 9, 10, 25, 34, 35, 49, 74, 81, 83, 84, 121, 130, 155, 164, 165, 169, 202, 225, 251, 276, 285, 286, 289, 290, 361, 371, 394, 420, 441, 445, 454, 455, 514, 515, 529, 596, 625, 645, 650, 670, 679, 680, 683, 729, 802, 804, 841, 875, 885, 934, 959, 961, 968, 969, 970, 1044, 1089
Offset: 1

Views

Author

Ilya Gutkovskiy, Dec 21 2018

Keywords

Crossrefs

Programs

  • PARI
    ok(n)={my(i=sqrtint(n)); i=i-(i%2==0); while(i>0, my(a=i^2, j=i); while(j>0 && a<=n, if(a==n, return(1)); j-=2; a=a+j^2); i-=2); 0}
    concat([0], select(ok, [1..1200])) \\ Antonio Roldán, Mar 12 2020