%I #21 Sep 08 2022 08:45:52
%S 1,1,-5,-29,-71,-23,547,2395,4657,-2927,-53621,-188141,-269975,613369,
%T 4883251,14012683,12101473,-77708255,-419746277,-979610813,-140726759,
%U 8253590281,34280901955,62841295291,-57162936431,-794223403343
%N Expansion of (1-3*x)/(1-4*x+9*x^2).
%C Hankel transform of A176332.
%H Michael De Vlieger, <a href="/A176333/b176333.txt">Table of n, a(n) for n = 0..2097</a>
%H Beata Bajorska-Harapińska, Barbara Smoleń, Roman Wituła, <a href="https://doi.org/10.1007/s00006-019-0969-9">On Quaternion Equivalents for Quasi-Fibonacci Numbers, Shortly Quaternaccis</a>, Advances in Applied Clifford Algebras (2019) Vol. 29, 54.
%H <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (4,-9).
%F a(n) = 3^n*( cos(2n*atan(1/sqrt(5)) - sin(2n*atan(1/sqrt(5))/sqrt(5) ).
%F a(0)=1, a(1)=1, a(n) = 4*a(n-1) - 9*a(n-2). - _Harvey P. Dale_, Sep 17 2012
%F a(n) = -3*A190967(n) + A190967(n+1). - _R. J. Mathar_, May 04 2013
%p seq(coeff(series((1-3*x)/(1-4*x+9*x^2), x, n+1), x, n), n = 0..30); # _G. C. Greubel_, Dec 07 2019
%t CoefficientList[Series[(1-3x)/(1-4x+9x^2),{x,0,30}],x] (* or *) LinearRecurrence[{4,-9},{1,1},30] (* _Harvey P. Dale_, Sep 17 2012 *)
%o (PARI) my(x='x+O('x^30)); Vec((1-3*x)/(1-4*x+9*x^2)) \\ _G. C. Greubel_, Dec 07 2019
%o (Magma) I:=[1,1]; [n le 2 select I[n] else 4*Self(n-1) - 9*Self(n-2): n in [1..30]]; // _G. C. Greubel_, Dec 07 2019
%o (Sage)
%o def A176333_list(prec):
%o P.<x> = PowerSeriesRing(ZZ, prec)
%o return P( (1-3*x)/(1-4*x+9*x^2) ).list()
%o A176333_list(30) # _G. C. Greubel_, Dec 07 2019
%o (GAP) a:=[1,1];; for n in [3..30] do a[n]:=4*a[n-1]-9*a[n-2]; od; a; # _G. C. Greubel_, Dec 07 2019
%Y Cf. A176332, A190958, A190967.
%K easy,sign
%O 0,3
%A _Paul Barry_, Apr 15 2010
|