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!)
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
FORMULA
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: A361803 A344124 A237577 * A122219 A093348 A262604
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 | 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.)