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

A115953
Periodic {1,-1,0,0,1,-2,1,0,0,-1,1,-1}.
1
1, -1, 0, 0, 1, -2, 1, 0, 0, -1, 1, -1, 1, -1, 0, 0, 1, -2, 1, 0, 0, -1, 1, -1, 1, -1, 0, 0, 1, -2, 1, 0, 0, -1, 1, -1, 1, -1, 0, 0, 1, -2, 1, 0, 0, -1, 1, -1, 1, -1, 0, 0, 1, -2, 1, 0, 0, -1, 1, -1, 1, -1, 0, 0, 1, -2, 1, 0, 0, -1, 1, -1
OFFSET
0,6
COMMENTS
Diagonal sums of number triangle A115952.
FORMULA
G.f.: (1-x^3-x^5)/((1-x^3)(1+x+x^2+x^3))
MATHEMATICA
LinearRecurrence[{-1, -1, 0, 1, 1, 1}, {1, -1, 0, 0, 1, -2}, 80] (* or *) PadRight[{}, 80, {1, -1, 0, 0, 1, -2, 1, 0, 0, -1, 1, -1}] (* Harvey P. Dale, Jan 28 2023 *)
CROSSREFS
Sequence in context: A363164 A255318 A249223 * A225245 A204770 A333382
KEYWORD
easy,sign
AUTHOR
Paul Barry, Feb 02 2006
STATUS
approved