This site is supported by donations to The OEIS Foundation.

 Please make a donation to keep the OEIS running. We are now in our 55th year. In the past year we added 12000 new sequences and reached 8000 citations (which often say "discovered thanks to the OEIS"). We need to raise money to hire someone to manage submissions, which would reduce the load on our editors and speed up editing. Other ways to donate

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A010884 Simple periodic sequence: repeat 1,2,3,4,5. 2
 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,2 COMMENTS Partial sums are given by A130483(n)+n+1. - Hieronymus Fischer, Jun 08 2007 4115/33333=0,12345123451234512345... - Eric Desbiaux, Nov 03 2008 Terms of the simple continued fraction of 86/(sqrt(65029)-195). - Paolo P. Lava, Feb 16 2009 LINKS Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,1). FORMULA a(n) = 1 + (n mod 5) - Paolo P. Lava, Nov 21 2006 a(n)=A010874(n)+1. G.f.: g(x)=(5x^4+4x^3+3x^2+2x+1)/(1-x^5)=(5x^6-6x^5+1)/((1-x^5)(1-x)^2). - Hieronymus Fischer, Jun 08 2007 MATHEMATICA PadRight[{}, 120, Range[5]] (* Harvey P. Dale, Dec 08 2018 *) PROG (PARI) a(n)=n%5+1 \\ Charles R Greathouse IV, Jul 13 2016 CROSSREFS Cf. A010872, A010873, A010874, A010875, A010876, A004526, A002264, A002265, A002266. Cf. A177038 (decimal expansion of (195+sqrt(65029))/314). Sequence in context: A290397 A322425 A053841 * A105932 A106652 A193106 Adjacent sequences:  A010881 A010882 A010883 * A010885 A010886 A010887 KEYWORD nonn,easy AUTHOR 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 December 6 14:44 EST 2019. Contains 329806 sequences. (Running on oeis4.)