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!)
A134011 Period 9: repeat [1, 2, 3, 4, 5, 4, 3, 2, 1]. 1
1, 2, 3, 4, 5, 4, 3, 2, 1, 1, 2, 3, 4, 5, 4, 3, 2, 1, 1, 2, 3, 4, 5, 4, 3, 2, 1, 1, 2, 3, 4, 5, 4, 3, 2, 1, 1, 2, 3, 4, 5, 4, 3, 2, 1, 1, 2, 3, 4, 5, 4, 3, 2, 1, 1, 2, 3, 4, 5, 4, 3, 2, 1, 1, 2, 3, 4, 5, 4, 3, 2, 1, 1, 2, 3, 4, 5, 4, 3, 2, 1, 1, 2, 3, 4, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
a(n) = a(n-9) for n > 8. G.f.: (1 + x + x^2 + x^3 + x^4)^2/(1 - x^9). - Chai Wah Wu, Jun 04 2016
MAPLE
A134011:=n->[1, 2, 3, 4, 5, 4, 3, 2, 1][(n mod 9)+1]: seq(A134011(n), n=0..100); # Wesley Ivan Hurt, Jun 11 2016
MATHEMATICA
PadRight[{}, 81, {1, 2, 3, 4, 5, 4, 3, 2, 1}] (* Harvey P. Dale, Oct 31 2011 *)
PROG
(Magma) &cat [[1, 2, 3, 4, 5, 4, 3, 2, 1]: n in [0..8]]; // Wesley Ivan Hurt, Jun 11 2016
CROSSREFS
Cf. A131974.
Sequence in context: A339388 A271751 A017890 * A280913 A035343 A017880
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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 16:40 EDT 2024. Contains 371916 sequences. (Running on oeis4.)