login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A132400 Period 4: repeat [1, 5, 3, 1]. 4
1, 5, 3, 1, 1, 5, 3, 1, 1, 5, 3, 1, 1, 5, 3, 1, 1, 5, 3, 1, 1, 5, 3, 1, 1, 5, 3, 1, 1, 5, 3, 1, 1, 5, 3, 1, 1, 5, 3, 1, 1, 5, 3, 1, 1, 5, 3, 1, 1, 5, 3, 1, 1, 5, 3, 1, 1, 5, 3, 1, 1, 5, 3, 1, 1, 5, 3, 1, 1, 5, 3, 1, 1, 5, 3, 1, 1, 5, 3, 1, 1, 5, 3, 1, 1, 5, 3, 1
(list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
Final digits of A082311.
O.g.f.: (1+5*x+3*x^2+x^3)/((1-x)*(x+1)*(1+x^2)) = (5/2)/(1-x)-(1/2)/(x+1)+(2*x-1)/(1+x^2). - R. J. Mathar, Nov 28 2007
From Wesley Ivan Hurt, Jul 09 2016: (Start)
a(n) = a(n-4) for n>3.
a(n) = (5-cos(n*Pi)-2*cos(n*Pi/2)+4*sin(n*Pi/2)-I*sin(n*Pi))/2. (End)
MAPLE
seq(op([1, 5, 3, 1]), n=0..40); # Wesley Ivan Hurt, Jul 09 2016
MATHEMATICA
PadRight[{}, 120, {1, 5, 3, 1}] (* Harvey P. Dale, Sep 15 2014 *)
PROG
(PARI) a(n)=[1, 5, 3, 1][n%4+1] \\ Charles R Greathouse IV, Jun 02 2011
(Magma) &cat [[1, 5, 3, 1]^^30]; // Wesley Ivan Hurt, Jul 09 2016
CROSSREFS
Cf. A082311.
Sequence in context: A096937 A097527 A204063 * A232810 A063268 A179613
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Nov 20 2007
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | 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 September 19 05:53 EDT 2024. Contains 376004 sequences. (Running on oeis4.)