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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A130731 Period 4: repeat 1,2,0,0. 0
1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0, 1, 2, 0, 0 (list; graph; refs; listen; history; internal format)
OFFSET

0,2

LINKS

Index to sequences with linear recurrences with constant coefficients, signature (0,0,0,1).

FORMULA

a(n) = (1/8)*(-(n mod 4)+((n+1) mod 4)+5*((n+2) mod 4)-((n+3) mod 4)). - Paolo P. Lava, Aug 28 2007

a(n) = 3/4+(1/4-(1/2)*I)*I^n-(1/4)*(-1)^n+(1/4+(1/2)*I)*(-I)^n, I=sqrt(-1) - Paolo P. Lava, Jul 17 2008

a(n) = (n mod 4) mod 3, with offset 1..a(1)=1. - Gary Detlefs, Mar 28 2010

a(n) = floor(((2*n+4) mod 8)/3). - Gary Detlefs, Jul 02 2011

a(n) = (3-(-1)^n)*(1+i^((n-1)*n))/4, where i=sqrt(-1). - Bruno Berselli, Sep 28 2011

G.f.: (1+2*x)/(1-x^4). - Bruno Berselli, Sep 28 2011

CROSSREFS

Sequence in context: A035671 A190164 A131488 * A025875 A026840 A025873

Adjacent sequences:  A130728 A130729 A130730 * A130732 A130733 A130734

KEYWORD

nonn,easy

AUTHOR

Paul Curtz (bpcrtz(AT)free.fr), Aug 17 2007

EXTENSIONS

Edited by N. J. A. Sloane, Sep 15 2007

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 14:07 EST 2012. Contains 205930 sequences.