[go: up one dir, main page]

login
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
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
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