login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A140500
Period 18: repeat [1, 1, -2, 2, -1, -1, 1, -2, 1, -1, -1, 2, -2, 1, 1, -1, 2, -1].
0
1, 1, -2, 2, -1, -1, 1, -2, 1, -1, -1, 2, -2, 1, 1, -1, 2, -1, 1, 1, -2, 2, -1, -1, 1, -2, 1, -1, -1, 2, -2, 1, 1, -1, 2, -1, 1, 1, -2, 2, -1, -1, 1, -2, 1, -1, -1, 2, -2, 1, 1, -1, 2, -1, 1, 1, -2, 2, -1, -1, 1, -2, 1, -1, -1, 2, -2, 1, 1, -1, 2, -1, 1, 1, -2, 2, -1, -1, 1, -2, 1, -1, -1, 2, -2, 1, 1, -1, 2, -1, 1, 1, -2, 2
OFFSET
0,3
FORMULA
From Chai Wah Wu, Jun 04 2016: (Start)
a(n) = a(n-3) - a(n-6) for n > 5.
G.f.: (1 - x)*(1 + 2*x + x^3 - x^4)/(1 - x^3 + x^6). (End)
MATHEMATICA
CoefficientList[Series[(1 - x)*(1 + 2*x + x^3 - x^4)/(1 - x^3 + x^6), {x, 0, 80}], x] (* Wesley Ivan Hurt, Jan 01 2024 *)
PadRight[{}, 100, {1, 1, -2, 2, -1, -1, 1, -2, 1, -1, -1, 2, -2, 1, 1, -1, 2, -1}] (* or *) LinearRecurrence[{0, 0, 1, 0, 0, -1}, {1, 1, -2, 2, -1, -1}, 100] (* Harvey P. Dale, Jun 22 2024 *)
CROSSREFS
Sequence in context: A117898 A212810 A072344 * A156054 A030616 A066422
KEYWORD
sign,easy,less
AUTHOR
Paul Curtz, Jun 29 2008
STATUS
approved

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy