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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A122876 a(0)=1, a(1)=1, a(2)=2, a(n)=a(n-1)-a(n-2) for n>2. 2
1, 1, 2, 1, -1, -2, -1, 1, 2, 1, -1, -2, -1, 1, 2, 1, -1, -2, -1, 1, 2, 1, -1, -2, -1, 1, 2, 1, -1, -2, -1, 1, 2, 1, -1, -2, -1, 1, 2, 1, -1, -2, -1, 1, 2, 1, -1, -2, -1, 1, 2, 1, -1, -2, -1, 1, 2, 1, -1, -2, -1, 1, 2, 1, -1, -2, -1, 1, 2, 1, -1, -2, -1, 1, 2, 1, -1, -2, -1 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

COMMENTS

Essentially the same as A057079, A087204 and A100051.

LINKS

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

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

FORMULA

a(n)=Sum_{k, 0<=k<=[n/2]}(-2)^k*A055830(n-k,k) . G.f.:(1+2*x^2)/(1-x+x^2)

a(n)=(1/2)*[(1/2)-(1/2)*I*sqrt(3)]^(n-1)+(1/2)*[(1/2)+(1/2)*I*sqrt(3)]^(n-1)+(1/2)*I*[(1/2)-(1/2)*I *sqrt(3)]^(n-1)*sqrt(3)-(1/2)*I*[(1/2)+(1/2)*I*sqrt(3)]^(n-1)*sqrt(3)+[C(2*n,n) mod 2], with n>=0 and I=sqrt(-1) [From Paolo P. Lava, Nov 19 2008]

CROSSREFS

Sequence in context: A131713 A099837 A100051 * A100063 A057079 A132419

Adjacent sequences:  A122873 A122874 A122875 * A122877 A122878 A122879

KEYWORD

sign,easy

AUTHOR

Philippe DELEHAM, Oct 24 2006

STATUS

approved

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 May 19 01:49 EDT 2013. Contains 225428 sequences.