OFFSET
0,1
COMMENTS
a(n) is the Euler characteristic of one-sided surface of genus n (see Courant and Herbert). - Stefano Spezia, Sep 10 2022
LINKS
Richard Courant and Herbert Robbins, What Is Mathematics?, Oxford, 1941, p. 262.
Tanya Khovanova, Recursive Sequences
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
From Paul Barry, Mar 31 2007: (Start)
G.f.: (2-3x)/(1-x)^2.
E.g.f.: exp(x)*(2-x). (End)
a(n) = 2*a(n-1) - a(n-2); a(0)=2, a(1)=1. - Philippe Deléham, Nov 03 2008
MATHEMATICA
2-Range[0, 60] (* or *) LinearRecurrence[{2, -1}, {2, 1}, 60] (* Harvey P. Dale, Feb 23 2023 *)
PROG
(PARI) a(n)=n-2 \\ Charles R Greathouse IV, Jun 11 2015
CROSSREFS
KEYWORD
sign,easy
AUTHOR
STATUS
approved