cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A174737 a(n) = a(n-1) - a(n-2), with a(0)=2, a(1)=-1.

Original entry on oeis.org

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

Views

Author

Zachary Berger (zsb1244(AT)rit.edu), Mar 28 2010

Keywords

References

  • Rosen, Discrete Mathematics and its Applications, McGraw-Hill, 2007, p. 456, Question 1b.

Programs

  • 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

Formula

G.f.: ( 2-3*x ) / ( 1-x+x^2 ). - R. J. Mathar, Jan 08 2011
a(n) = 2*cos(n*Pi/3)-4*sin(n*Pi/3)/sqrt(3). - Wesley Ivan Hurt, Sep 01 2025

Extensions

Typo in definition fixed by Emeric Deutsch, Apr 05 2010