login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A174737
a(n) = a(n-1) - a(n-2), with a(0)=2, a(1)=-1.
2
2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2, 1, 3, 2, -1, -3, -2
OFFSET
0,1
REFERENCES
Rosen, Discrete Mathematics and its Applications, McGraw-Hill, 2007, p. 456, Question 1b.
FORMULA
G.f.: ( 2-3*x ) / ( 1-x+x^2 ). - R. J. Mathar, Jan 08 2011
MAPLE
a[0] := 2: a[1] := -1: for n from 2 to 80 do a[n] := a[n-1]-a[n-2] end do: seq(a[n], n = 0 .. 75); # Emeric Deutsch, Apr 05 2010
CROSSREFS
Sequence in context: A118123 A181743 A330727 * A131756 A212620 A194859
KEYWORD
sign,easy
AUTHOR
Zachary Berger (zsb1244(AT)rit.edu), Mar 28 2010
EXTENSIONS
Typo in definition fixed by Emeric Deutsch, Apr 05 2010
STATUS
approved