|
|
A130772
|
|
Periodic sequence with period 2 2 0 -2 -2 0.
|
|
7
|
|
|
2, 2, 0, -2, -2, 0, 2, 2, 0, -2, -2, 0, 2, 2, 0, -2, -2, 0, 2, 2, 0, -2, -2, 0, 2, 2, 0, -2, -2, 0, 2, 2, 0, -2, -2, 0, 2, 2, 0, -2, -2, 0, 2, 2, 0, -2, -2, 0, 2, 2
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,1
|
|
COMMENTS
|
Sequence is identical to its third differences.
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
G.f. = 2 + 2*x - 2*x^3 - 2*x^4 + 2*x^6 + 2*x^7 - 2*x^9 - 2*x^10 + ...
|
|
MATHEMATICA
|
PadRight[{}, 120, {2, 2, 0, -2, -2, 0}] (* or *) LinearRecurrence[{1, -1}, {2, 2}, 120] (* Harvey P. Dale, Jan 13 2014 *)
|
|
PROG
|
(Magma) I:=[2, 2]; [n le 2 select I[n] else Self(n-1) - Self(n-2): n in [1..30]]; // G. C. Greubel, Aug 04 2018
|
|
CROSSREFS
|
|
|
KEYWORD
|
sign,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|