login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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).
From G. C. Greubel, Jun 03 2021: (Start)
a(n) = A117450(n) - 2*A117450(n-1) + A117450(n-2) (second difference of A117450).
a(n) = A117451(n) - A117451(n-1). (End)
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
Partial sums are A117451. Second partial sums are A117450.
Sequence in context: A152800 A223730 A353129 * A029412 A368571 A178670
KEYWORD
easy,sign
AUTHOR
Paul Barry, Mar 16 2006
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 19:52 EDT 2024. Contains 371963 sequences. (Running on oeis4.)