login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A277889
After zero, excess of the odd terms in A276573 (the infinite trunk of least squares beanstalk) over the even terms.
4
0, 1, 0, -1, 0, 1, 0, -1, 0, -1, 0, -1, -2, -1, -2, -3, -2, -1, -2, -1, 0, -1, 0, 1, 0, 1, 0, -1, 0, -1, -2, -1, 0, -1, -2, -1, -2, -1, -2, -1, -2, -3, -2, -1, -2, -1, -2, -3, -2, -3, -4, -3, -2, -3, -2, -1, -2, -1, -2, -3, -4, -3, -4, -3, -2, -3, -2, -1, -2, -1, -2, -1, -2, -3, -2, -1, -2, -1, -2, -1, 0, -1, 0, 1, 2, 1, 0
OFFSET
0,13
COMMENTS
Is a(2358) = 0 the last zero of this sequence? See also comments in A277891.
LINKS
FORMULA
a(0) = 0; for n >= 1, a(n) = a(n-1) - (-1)^A276573(n).
PROG
(Scheme, with memoization-macro definec)
(definec (A277889 n) (if (zero? n) n (- (A277889 (- n 1)) (expt -1 (A276573 n)))))
CROSSREFS
KEYWORD
sign
AUTHOR
Antti Karttunen, Nov 13 2016
STATUS
approved