A115953 Periodic {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, 1, -1, 0, 0, 1, -2, 1, 0, 0, -1, 1, -1
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (-1,-1,0,1,1,1)
Programs
-
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 *)
Formula
G.f.: (1-x^3-x^5)/((1-x^3)(1+x+x^2+x^3))
Comments