OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (10,-9).
FORMULA
a(n) = 9*a(n-1) - 8 = A001019(n) + 1 = 10*a(n-1) - 9*a(n-2).
From Mohammad K. Azarian, Jan 02 2009: (Start)
G.f.: 1/(1-x) + 1/(1-9*x).
E.g.f.: e^x + e^(9*x). (End)
MATHEMATICA
Table[9^n + 1, {n, 0, 20}]
LinearRecurrence[{10, -9}, {2, 10}, 20] (* Harvey P. Dale, May 30 2013 *)
PROG
(Magma) [9^n + 1: n in [0..35]]; // Vincenzo Librandi, Apr 30 2011
(PARI) a(n)=9^n+1 \\ Charles R Greathouse IV, Sep 24 2015
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Henry Bottomley, Jun 22 2001
STATUS
approved