|
|
A117452
|
|
Periodic {2, -1, 1, 0, 0} - 0^n.
|
|
2
|
|
|
1, -1, 1, 0, 0, 2, -1, 1, 0, 0, 2, -1, 1, 0, 0, 2, -1, 1, 0, 0, 2, -1, 1, 0, 0, 2, -1, 1, 0, 0, 2, -1, 1, 0, 0, 2, -1, 1, 0, 0, 2, -1, 1, 0, 0, 2, -1, 1, 0, 0, 2, -1, 1, 0, 0, 2, -1, 1, 0, 0, 2, -1, 1, 0, 0, 2, -1, 1, 0, 0, 2, -1, 1, 0, 0, 2, -1, 1, 0, 0, 2, -1, 1, 0, 0, 2, -1, 1, 0, 0, 2, -1, 1, 0, 0, 2, -1, 1, 0
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,6
|
|
COMMENTS
|
For this entry, it is understood that 0^0 = 1 and 0^n = 0 for all n > 0. - Alonso del Arte, Mar 18 2018
|
|
LINKS
|
|
|
FORMULA
|
G.f.: (1 - x + x^2 + x^5)/(1 - x^5).
|
|
MATHEMATICA
|
ReplaceAll[3 -> -1][RealDigits[464 + 240/341, 4, 100][[1]]] (* Alonso del Arte, Mar 18 2018 *)
LinearRecurrence[{0, 0, 0, 0, 1}, {1, -1, 1, 0, 0, 2}, 120] (* or *) PadRight[{1}, 120, {2, -1, 1, 0, 0}] (* Harvey P. Dale, Jun 25 2023 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
easy,sign
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|