login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A330386
Running totals in A330385.
2
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,2
COMMENTS
All terms are nonnegative squares.
FORMULA
a(n) = - Sum_{k = 1..n } A330385(k) * (-1)^A330385(k).
PROG
(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)))
CROSSREFS
Sequence in context: A187027 A187850 A186965 * A098487 A174381 A184363
KEYWORD
nonn,look
AUTHOR
Rémy Sigrist, Dec 12 2019
STATUS
approved