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!)
A010884 Period 5: 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
LINKS
FORMULA
a(n) = 1 + (n mod 5). - Paolo P. Lava, Nov 21 2006
From Hieronymus Fischer, Jun 08 2007: (Start)
G.f.: (5*x^4+4*x^3+3*x^2+2*x+1)/(1-x^5) = (5*x^6-6*x^5+1)/((1-x^5)*(1-x)^2).
a(n) = A010874(n)+1. (End)
a(n) = a(n-5). - Wesley Ivan Hurt, Jan 15 2022
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. A177038 (decimal expansion of (195+sqrt(65029))/314).
Sequence in context: A290397 A322425 A053841 * A339146 A105932 A106652
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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 04:42 EDT 2024. Contains 371964 sequences. (Running on oeis4.)