OFFSET
1,1
LINKS
Harry J. Smith, Table of n, a(n) for n=1..150
Index entries for linear recurrences with constant coefficients, signature (21,-120,100).
FORMULA
a(n) = 21*a(n-1)-120*a(n-2)+100*a(n-3). G.f.: x*(100*x-9) / ((x-1)*(10*x-1)^2). - Colin Barker, Sep 15 2014
MATHEMATICA
LinearRecurrence[{21, -120, 100}, {9, 89, 789}, 20] (* Harvey P. Dale, May 15 2022 *)
PROG
(PARI) { a=0; q=1; for (n=1, 150, a+=(10 - n)*q; q*=10; write("b064616.txt", n, " ", a) ) } \\ Harry J. Smith, Sep 20 2009
(PARI) Vec(x*(100*x-9)/((x-1)*(10*x-1)^2) + O(x^100)) \\ Colin Barker, Sep 15 2014
CROSSREFS
KEYWORD
base,easy,sign
AUTHOR
Henry Bottomley, Sep 26 2001
STATUS
approved