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
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
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
KEYWORD
nonn,easy
AUTHOR
STATUS
approved