%I #19 Jan 01 2024 11:52:24
%S 1,3,21,111,633,3531,19821,111063,622641,3490131,19564293,109668351,
%T 614752041,3446023323,19316861661,108281656551,606978381153,
%U 3402448433571,19072599164661,106912432560783,599303122725081
%N a(n) = 4*a(n-1) + 9*a(n-2), for n>1, with a(0)=1, a(1)=3.
%H G. C. Greubel, <a href="/A122120/b122120.txt">Table of n, a(n) for n = 0..1000</a>
%H <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (4,9).
%F a(n) = Sum_{k=0..n} 3^(n-k)*A055380(n,k).
%F G.f.: (1-x)/(1-4*x-9*x^2).
%F lim_n -> infinity} a(n+1)/a(n) -> 2 + sqrt(13).
%t CoefficientList[Series[(1-x)/(1-4*x-9*x^2), {x, 0, 30}], x] (* _G. C. Greubel_, Feb 26 2019 *)
%t nxt[{a_,b_}]:={b,4b+9a}; NestList[nxt,{1,3},20][[All,1]] (* or *) LinearRecurrence[{4,9},{1,3},30] (* _Harvey P. Dale_, Oct 06 2020 *)
%o (PARI) my(x='x+O('x^30)); Vec((1-x)/(1-4*x-9*x^2)) \\ _G. C. Greubel_, Feb 26 2019
%o (Magma) R<x>:=PowerSeriesRing(Integers(), 30); Coefficients(R!( (1-x)/(1-4*x-9*x^2) )); // _G. C. Greubel_, Feb 26 2019
%o (Sage) ((1-x)/(1-4*x-9*x^2)).series(x, 30).coefficients(x, sparse=False) # _G. C. Greubel_, Feb 26 2019
%Y First differences of A015533.
%Y Binomial transform of A091914.
%K nonn,easy
%O 0,2
%A _Philippe Deléham_, Oct 19 2006
|