OFFSET
0,3
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..700
Index entries for linear recurrences with constant coefficients, signature (20,-19).
FORMULA
a(n) = floor(19^n/18).
G.f.: x/((1-x)*(1-19*x)). - Bruno Berselli, Nov 06 2012
a(n) = 20*a(n-1) - 19*a(n-2). - Vincenzo Librandi, Nov 07 2012
E.g.f.: exp(10*x)*sinh(9*x)/9. - Stefano Spezia, Mar 11 2023
MATHEMATICA
LinearRecurrence[{20, -19}, {0, 1}, 40] (* Vincenzo Librandi, Nov 07 2012 *)
PROG
(PARI) A218722(n)=19^n\18
(Magma) [n le 2 select n-1 else 20*Self(n-1)-19*Self(n-2): n in [1..20]]; // Vincenzo Librandi, Nov 07 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
M. F. Hasler, Nov 04 2012
STATUS
approved