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!)
A131974 Period 8: repeat [1, 2, 3, 4, -5, -4, -3, -2]. 2
1, 2, 3, 4, -5, -4, -3, -2, 1, 2, 3, 4, -5, -4, -3, -2, 1, 2, 3, 4, -5, -4, -3, -2, 1, 2, 3, 4, -5, -4, -3, -2, 1, 2, 3, 4, -5, -4, -3, -2, 1, 2, 3, 4, -5, -4, -3, -2, 1, 2, 3, 4, -5, -4, -3, -2, 1, 2, 3, 4, -5, -4, -3, -2, 1, 2, 3, 4, -5, -4, -3, -2 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
G.f.: (1 + 2*x + 3*x^2 + 4*x^3 - 5*x^4 - 4*x^5 - 3*x^6 - 2*x^7)/(1-x^8). - Wesley Ivan Hurt, Aug 31 2019
a(n) = a(n-8). - Wesley Ivan Hurt, Nov 28 2021
MATHEMATICA
CoefficientList[Series[(1 + 2*x + 3*x^2 + 4*x^3 - 5*x^4 - 4*x^5 - 3*x^6 - 2*x^7)/(1 - x^8), {x, 0, 80}], x] (* Wesley Ivan Hurt, Aug 31 2019 *)
PadRight[{}, 120, {1, 2, 3, 4, -5, -4, -3, -2}] (* Harvey P. Dale, Aug 10 2022 *)
PROG
(PARI) a(n)=[1, 2, 3, 4, -5, -4, -3, -2][n%8+1] \\ Charles R Greathouse IV, Jun 02 2011
CROSSREFS
Sequence in context: A035343 A017880 A086144 * A181975 A062406 A271800
KEYWORD
sign,easy,less
AUTHOR
Paul Curtz, Oct 06 2007
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 March 28 05:39 EDT 2024. Contains 371235 sequences. (Running on oeis4.)