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.

A330386 Running totals in A330385.

Original entry on oeis.org

1, 4, 0, 9, 16, 4, 9, 1, 16, 0, 25, 36, 49, 25, 64, 81, 100, 121, 144, 100, 64, 36, 16, 49, 9, 36, 4, 49, 1, 36, 121, 49, 100, 36, 169, 256, 196, 225, 256, 361, 484, 400, 441, 484, 625, 529, 576, 625, 784, 841, 900, 961, 1024, 1089, 1156, 1225, 1296, 1369
Offset: 1

Views

Author

Rémy Sigrist, Dec 12 2019

Keywords

Comments

All terms are nonnegative squares.

Crossrefs

Programs

  • PARI
    s=t=0; for (n=1, 58, for (v=1, oo, if (!bittest(s,v) && issquare(u=t-v*(-1)^v), print1 (t=u ", "); s+=2^v; break)))

Formula

a(n) = - Sum_{k = 1..n } A330385(k) * (-1)^A330385(k).