|
1, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
COMMENTS
|
|
|
LINKS
|
|
|
FORMULA
|
G.f.: (1+3*x^2)/(1-x+x^2). a(n)=a(n-1)-a(n-2), n>2.
|
|
MATHEMATICA
|
CoefficientList[Series[(1 + 3*x^2)/(1 - x + x^2), {x, 0, 100}], x] (* Wesley Ivan Hurt, Jan 15 2017 *)
LinearRecurrence[{1, -1}, {1, 1, 3}, 120] (* Harvey P. Dale, Jun 14 2024 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
sign,easy
|
|
AUTHOR
|
Karem Boubaker (mmbb11112000(AT)yahoo.fr), Mar 01 2008; corrected Mar 03 2008
|
|
STATUS
|
approved
|
|