OFFSET
0,2
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..300
Index entries for linear recurrences with constant coefficients, signature (10,-21).
FORMULA
a(n) = 10*a(n-1)-21*a(n-2) for n > 1; a(0) = 1, a(1) = 9.
G.f.: (1-x)/((1-3*x)*(1-7*x)).
MATHEMATICA
LinearRecurrence[{10, -21}, {1, 9}, 25] (* Paolo Xausa, Apr 22 2024 *)
PROG
(Magma) [ (3*7^n-3^n)/2: n in [0..19] ];
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Klaus Brockhaus, Sep 15 2009
STATUS
approved