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”).

A152032
a(n) = 3/8 + (3/8)*(-1)^n + ((n+1)/4)*(-1)^(n+1) + ((n+2)*(n+1)/4)*(-1)^(n+2).
0
1, -1, 3, -4, 7, -9, 13, -16, 21, -25, 31, -36, 43, -49, 57, -64, 73, -81, 91, -100, 111, -121, 133, -144, 157, -169, 183, -196, 211, -225, 241, -256, 273, -289, 307, -324, 343, -361, 381, -400, 421, -441, 463, -484, 507, -529, 553, -576, 601, -625, 651
OFFSET
0,3
FORMULA
O.g.f.: (1+z+z^2)/((1-z)*(1+z)^3).
a(n+4) = -2*a(n+3) + 2*a(n+1) + a(n).
MATHEMATICA
LinearRecurrence[{-2, 0, 2, 1}, {1, -1, 3, -4}, 60] (* Harvey P. Dale, Sep 23 2019 *)
CROSSREFS
Sequence in context: A073273 A247835 A072441 * A004652 A061568 A146994
KEYWORD
sign,easy
AUTHOR
Richard Choulet, Nov 20 2008
EXTENSIONS
More terms from 13; extended by Richard Choulet, Nov 26 2008
Definition corrected by Paolo P. Lava, Dec 02 2008
STATUS
approved