OFFSET
0,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (14,-44).
FORMULA
a(n) = ((2+sqrt(5))*(7+sqrt(5))^n+(2-sqrt(5))*(7-sqrt(5))^n)/2.
G.f.: (2-9*x)/(1-14*x+44*x^2).
MATHEMATICA
CoefficientList[Series[(2-9*x)/(1-14*x+44*x^2), {x, 0, 50}], x] (* or *) LinearRecurrence[{14, -44}, {2, 19}, 30] (* G. C. Greubel, Dec 22 2017 *)
PROG
(Magma) [ n le 2 select 17*n-15 else 14*Self(n-1)-44*Self(n-2): n in [1..20] ];
(PARI) x='x+O('x^30); Vec((2-9*x)/(1-14*x+44*x^2)) \\ G. C. Greubel, Dec 22 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Klaus Brockhaus, Jul 20 2009
STATUS
approved