login
A156536
Period 12: repeat 7,5,-1,1,-5,-7,-7,-5,1,-1,5,7.
0
7, 5, -1, 1, -5, -7, -7, -5, 1, -1, 5, 7, 7, 5, -1, 1, -5, -7, -7, -5, 1, -1, 5, 7, 7, 5, -1, 1, -5, -7, -7, -5, 1, -1, 5, 7, 7, 5, -1, 1, -5, -7, -7, -5, 1, -1, 5, 7, 7, 5, -1, 1, -5, -7, -7, -5, 1, -1, 5, 7, 7, 5, -1, 1, -5, -7, -7, -5, 1, -1, 5, 7, 7, 5, -1, 1, -5, -7, -7, -5, 1, -1, 5, 7, 7, 5
OFFSET
0,1
FORMULA
a(n) = A154811(n+6) - A154811(n).
From R. J. Mathar, Apr 10 2009: (Start)
a(n) = -a(n-6).
G.f.: -(x-1)*(7*x^4 + 12*x^3 + 11*x^2 + 12*x + 7)/((1+x^2)*(x^4 - x^2 + 1)). (End)
G.f.: (-7*x^5 - 5*x^4 + x^3 - x^2 + 5*x + 7)/(x^6 + 1). - Chai Wah Wu, Feb 16 2021
MATHEMATICA
PadRight[{}, 120, {7, 5, -1, 1, -5, -7, -7, -5, 1, -1, 5, 7}] (* or *) LinearRecurrence[{0, 0, 0, 0, 0, -1}, {7, 5, -1, 1, -5, -7}, 120] (* Harvey P. Dale, Oct 15 2023 *)
CROSSREFS
Cf. A154870.
Sequence in context: A241837 A145176 A093205 * A110191 A233090 A254177
KEYWORD
sign,easy
AUTHOR
Paul Curtz, Feb 09 2009
EXTENSIONS
Edited by R. J. Mathar, Apr 10 2009
STATUS
approved