|
|
A164581
|
|
a(n) = 5*a(n - 1) + a(n - 2), with a(0)=1, a(1)=2.
|
|
2
|
|
|
1, 2, 11, 57, 296, 1537, 7981, 41442, 215191, 1117397, 5802176, 30128277, 156443561, 812346082, 4218173971, 21903215937, 113734253656, 590574484217, 3066606674741, 15923607857922, 82684645964351, 429346837679677, 2229418834362736, 11576441009493357
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
LINKS
|
|
|
FORMULA
|
G.f.: (1-3*x)/(1-5*x-x^2).
a(n) = (2^(-1-n)*((5-sqrt(29))^n*(1+sqrt(29))+(-1+sqrt(29))*(5+sqrt(29))^n))/sqrt(29). - Colin Barker, Oct 13 2015
|
|
MATHEMATICA
|
LinearRecurrence[{5, 1}, {1, 2}, 40] (* or *) Rest[CoefficientList[Series [x (1 - 3 x) / (1 - 5 x - x^2), {x, 0, 40}], x]] (* Harvey P. Dale, May 02 2011 *)
|
|
PROG
|
(Magma) [ n le 2 select (n) else 5*Self(n-1)+Self(n-2): n in [1..25] ]; // Vincenzo Librandi, Sep 12 2013
(PARI) Vec((1-3*x)/(1-5*x-x^2) + O(x^40)) \\ Colin Barker, Oct 13 2015
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|