login
This site is supported by donations to The OEIS Foundation.
Logo

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

0,4

FORMULA

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

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

a(n) = (n^3-n) mod 5 [From Gary Detlefs (gdetlefs(AT)aol.com), Mar 20 2010]

MAPLE

seq((n^3-n) mod 5, n=0..50); [From Gary Detlefs (gdetlefs(AT)aol.com), Mar 20 2010]

CROSSREFS

A026062

Sequence in context: A070206 A136448 A128975 * A152898 A028719 A028662

Adjacent sequences:  A152891 A152892 A152893 * A152895 A152896 A152897

KEYWORD

easy,nonn

AUTHOR

Richard Choulet (richardchoulet(AT)yahoo.fr), Dec 14 2008

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 21:51 EST 2012. Contains 205978 sequences.