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!)
A152855 Period 5: Repeat [1, 2, 0, 2, 0]. 0
1, 2, 0, 2, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
a(n+5) = a(n) with a(0) = 1, a(1) = a(3) = 2 and a(2) = a(4) = 0.
O.g.f.: f(z) = (1+2*z+2*z^3)/(1-z^5).
a(n) = 1+(-1/5*((5-5^(1/2))^(1/2)-(5+5^(1/2))^(1/2))*2^(1/2))*sin(2*n*Pi/5)+(1/5*((5-5^(1/2))^(1/2)+(5+5^(1/2))^(1/2))*2^(1/2))*sin(4*n*Pi/5).
MATHEMATICA
PadRight[{}, 120, {1, 2, 0, 2, 0}] (* Harvey P. Dale, Dec 17 2022 *)
CROSSREFS
Cf. A026039.
Sequence in context: A174793 A245718 A192011 * A218907 A192575 A029401
KEYWORD
easy,nonn
AUTHOR
Richard Choulet, Dec 14 2008
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 30 01:56 EDT 2024. Contains 372118 sequences. (Running on oeis4.)