OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (0,100).
FORMULA
a(n) = (9*10^n + (-10)^n)/10.
G.f.: (1+8*x)/((1+10*x)*(1-10*x)).
E.g.f.: (9*exp(10*x) + exp(-10*x))/10.
MATHEMATICA
LinearRecurrence[{0, 100}, {1, 8}, 20] (* Harvey P. Dale, Jun 02 2019 *)
PROG
(Magma) [(9*10^n+(-10)^n)/10: n in [0..25]]; // Vincenzo Librandi, Jun 29 2011
(PARI) a(n)= (9*10^n+(-10)^n)/10 \\ Charles R Greathouse IV, Jun 29 2011
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Apr 23 2003
STATUS
approved