OFFSET
0,4
LINKS
Tanya Khovanova, Recursive Sequences
Index entries for linear recurrences with constant coefficients, signature (2, -1).
FORMULA
a(n) = 2*a(n-1) -a(n-2). G.f.: (-1+2*x)/(x-1)^2. - R. J. Mathar, Feb 11 2010
MATHEMATICA
Range[0, 80]-1 (* Harvey P. Dale, Apr 05 2012 *)
LinearRecurrence[{2, -1}, {-1, 0}, 75] (* Ray Chandler, Jul 30 2015 *)
PROG
(PARI) a(n)=n-1 \\ Charles R Greathouse IV, Aug 26 2011
CROSSREFS
KEYWORD
sign,easy
AUTHOR
STATUS
approved