login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A133456 Period 18: repeat 3, 3, -5, 0, 3, -1, -3, 0, 7 followed by their negatives. 0
3, 3, -5, 0, 3, -1, -3, 0, 7, -3, -3, 5, 0, -3, 1, 3, 0, -7, 3, 3, -5, 0, 3, -1, -3, 0, 7, -3, -3, 5, 0, -3, 1, 3, 0, -7, 3, 3, -5, 0, 3, -1, -3, 0, 7, -3, -3, 5, 0, -3, 1, 3, 0, -7 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

LINKS

Table of n, a(n) for n=0..53.

Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,-1).

FORMULA

First differences 1, 4, 7, 2, 2, 5, 4 = A133390.

a(n) = (1/18)*{-10*(n mod 18)+7*[(n+1) mod 18]+3*[(n+2) mod 18]-2*[(n+3) mod 18]-4*[(n+4) mod 18]+3*[(n+5) mod 18]+5*[(n+6) mod 18]-8*[(n+7) mod 18]+10*[(n+9) mod 18]-7*[(n+10) mod 18]-3*[(n+11) mod 18]+2*[(n+12) mod 18]+4*[(n+13) mod 18]-3*[(n+14) mod 18]-5*[(n+15) mod 18]+8*[(n+16) mod 18]}. - Paolo P. Lava, Nov 30 2007

a(n) = -a(n-9) for n > 8. G.f.: (7*x^8 - 3*x^6 - x^5 + 3*x^4 - 5*x^2 + 3*x + 3)/(x^9 + 1). - Chai Wah Wu, Jun 04 2016

PROG

(PARI) a(n)=[3, 3, -5, 0, 3, -1, -3, 0, 7][n%9+1]*(-1)^(n\9) \\ Charles R Greathouse IV, Jul 13 2016

CROSSREFS

Sequence in context: A076183 A011445 A197137 * A271710 A246005 A103786

Adjacent sequences:  A133453 A133454 A133455 * A133457 A133458 A133459

KEYWORD

sign,easy

AUTHOR

Paul Curtz, Nov 27 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 18 10:19 EDT 2021. Contains 343995 sequences. (Running on oeis4.)