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

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A134017 Period 9: repeat 1, 2, 4, 3, 5, 3, 4, 2, 1. 0
 1, 2, 4, 3, 5, 3, 4, 2, 1, 1, 2, 4, 3, 5, 3, 4, 2, 1, 1, 2, 4, 3, 5, 3, 4, 2, 1, 1, 2, 4, 3, 5, 3, 4, 2, 1, 1, 2, 4, 3, 5, 3, 4, 2, 1, 1, 2, 4, 3, 5, 3, 4, 2, 1 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,2 LINKS Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,1). FORMULA a(n)=(1/324)*{25*(n mod 9)+61*[(n+1) mod 9]+97*[(n+2) mod 9]-11*[(n+3) mod 9]+97*[(n+4) mod 9]-47*[(n+5) mod 9]+61*[(n+6) mod 9]-47*[(n+7) mod 9]-11*[(n+8) mod 9]}, with n>=0 - Paolo P. Lava, Jan 25 2008 MATHEMATICA PadRight[{}, 120, {1, 2, 4, 3, 5, 3, 4, 2, 1}] (* Harvey P. Dale, Dec 03 2017 *) PROG (PARI) a(n)=[1, 2, 4, 3, 5, 3, 4, 2, 1][n%9+1] \\ Charles R Greathouse IV, Jul 13 2016 CROSSREFS Sequence in context: A019656 A256751 A249484 * A292285 A163984 A283366 Adjacent sequences:  A134014 A134015 A134016 * A134018 A134019 A134020 KEYWORD nonn,easy AUTHOR Paul Curtz, Jan 10 2008 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.

Last modified September 17 01:53 EDT 2021. Contains 347478 sequences. (Running on oeis4.)