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

 

Logo

Thanks to everyone who made a donation during our annual appeal!
To see the list of donors, or make a donation, see the OEIS Foundation home page.

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A152893 Periodic sequence [3, 3, 0, 0, 4] of period 5 1
3, 3, 0, 0, 4, 3, 3, 0, 0, 4, 3, 3, 0, 0, 4, 3, 3, 0, 0, 4, 3, 3, 0, 0, 4, 3, 3, 0, 0, 4, 3, 3, 0, 0, 4, 3, 3, 0, 0, 4, 3, 3, 0, 0, 4, 3, 3, 0, 0, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

LINKS

Table of n, a(n) for n=0..49.

FORMULA

a(n+5) = a(n) with a(0) = a(1) = 3, a(2) = a(3) = 0 and a(4) = 4 ; o.g.f f(z) = ((3+3*z+4*z^4)/(1-z^5)) ; a(n) = 2+(1/2+7/10*5^(1/2))*cos(2*n*Pi/5)+(-1/10*2^(1/2)*(5+5^(1/2))^(1/2))*sin(2*n*Pi/5)+(1/2-7/10*5^(1/2))*cos(4*n*Pi/5)+(-1/10*2^(1/2)*(5-5^(1/2))^(1/2))*sin(4*n*Pi/5)

a(n)=(1/5)*{2*(n mod 5)-3*[(n+1) mod 5]+[(n+2) mod 5]+4*[(n+3) mod 5]+[(n+4) mod 5]}, with n>=0 [From Paolo P. Lava, Dec 15 2008]

a(n)= [(n-2)^3 -(n-2)^2] mod 5 [From Gary Detlefs, Mar 20 2010]

MATHEMATICA

PadRight[{}, 120, {3, 3, 0, 0, 4}] (* Harvey P. Dale, Sep 17 2018 *)

CROSSREFS

A026056

Sequence in context: A170852 A245320 A330341 * A297978 A298629 A298461

Adjacent sequences:  A152890 A152891 A152892 * A152894 A152895 A152896

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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified January 18 19:46 EST 2020. Contains 331030 sequences. (Running on oeis4.)