OFFSET
0,3
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..300
Index entries for linear recurrences with constant coefficients, signature (5,14).
FORMULA
a(n+1) - a(n) = 18 * (0 followed by A053573(n)).
a(n) = (7^n + 2*(-2)^n)/3. - Charles R Greathouse IV, Jun 06 2011
G.f.: (1-4*x)/(1 - 5*x - 14*x^2). - Bruno Berselli, Jun 07 2011
a(n) = 5*a(n-1) + 14*a(n-2).
MATHEMATICA
LinearRecurrence[{5, 14}, {1, 1}, 40] (* Harvey P. Dale, Mar 01 2017 *)
CoefficientList[Series[(1 - 4*x)/(1 - 5*x - 14*x^2), {x, 0, 20}], x] (* Stefano Spezia, Sep 12 2018 *)
PROG
(PARI) a(n)=(7^n+2*(-2)^n)/3 \\ Charles R Greathouse IV, Jun 06, 2011
(Magma) [(7^n+2*(-2)^n)/3: n in [0..30]]; // Vincenzo Librandi, Jun 07 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Jun 06 2011
STATUS
approved