The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A131369 Period 10: repeat [5, 4, 5, 4, 3, 4, 5, 4, 5, 0]. 1
 5, 4, 5, 4, 3, 4, 5, 4, 5, 0, 5, 4, 5, 4, 3, 4, 5, 4, 5, 0, 5, 4, 5, 4, 3, 4, 5, 4, 5, 0, 5, 4, 5, 4, 3, 4, 5, 4, 5, 0, 5, 4, 5, 4, 3, 4, 5, 4, 5, 0, 5, 4, 5, 4, 3, 4, 5, 4, 5, 0, 5, 4, 5, 4, 3, 4, 5, 4, 5, 0, 5, 4, 5, 4, 3, 4, 5, 4, 5, 0, 5, 4, 5, 4, 3, 4, 5, 4, 5, 0, 5, 4, 5, 4, 3, 4, 5, 4, 5, 0, 5, 4, 5, 4, 3 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,1 COMMENTS Differences: [-1, 1, -1, -1, 1, 1, -1, 1, -5, 5]. LINKS Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,0,1). FORMULA a(n) = (1/75)*{-31*(n mod 10)+44*[(n+1) mod 10]-[(n+2) mod 10]+14*[(n+3) mod 10]-[(n+4) mod 10]-[(n+5) mod 10]+14*[(n+6) mod 10]+14*[(n+7) mod 10]-[(n+8) mod 10]+14*[(n+9) mod 10]}, with n>=0. - Paolo P. Lava, Oct 24 2007 From Wesley Ivan Hurt, Aug 29 2015: (Start) G.f.: (5+4*x+5*x^2+4*x^3+3*x^4+4*x^5+5*x^6+4*x^7+5*x^8)/(1-x^10). a(n) = a(n-10), n>9. a(n) = (9+(-1)^n)/2+((-1)^n-3)*(floor((n+1)/5)-floor(n/5)). (End) MAPLE A131369:=n->[5, 4, 5, 4, 3, 4, 5, 4, 5, 0][(n mod 10)+1]: seq(A131369(n), n=0..100); # Wesley Ivan Hurt, Aug 29 2015 MATHEMATICA CoefficientList[Series[(5 + 4 x + 5 x^2 + 4 x^3 + 3 x^4 + 4 x^5 + 5 x^6 + 4 x^7 + 5 x^8)/(1 - x^10), {x, 0, 100}], x] (* or *) LinearRecurrence[{0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, {5, 4, 5, 4, 3, 4, 5, 4, 5, 0}, 100] (* Wesley Ivan Hurt, Aug 29 2015 *) PROG (MAGMA) I:=[5, 4, 5, 4, 3, 4, 5, 4, 5, 0]; [n le 10 select I[n] else Self(n-10): n in [1..100]]; // Wesley Ivan Hurt, Aug 29 2015 CROSSREFS Sequence in context: A305394 A344124 A237577 * A122219 A093348 A262604 Adjacent sequences:  A131366 A131367 A131368 * A131370 A131371 A131372 KEYWORD nonn,easy AUTHOR Paul Curtz, Sep 30 2007 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 September 27 21:12 EDT 2021. Contains 347698 sequences. (Running on oeis4.)