%I #19 Sep 08 2022 08:44:55
%S 30,901,54090,1623601,97470150,2925728101,175641156210,5272160414401,
%T 316505266020270,9500430141022501,570342313727370330,
%U 17119769841962132401,1027756532831455314390,30849815754785621564101,1852016701819968749160450,55591350870353848096377601
%N Numerators of continued fraction convergents to sqrt(902).
%H Vincenzo Librandi, <a href="/A042742/b042742.txt">Table of n, a(n) for n = 0..200</a>
%H <a href="/index/Rec">Index entries for linear recurrences with constant coefficients</a>, signature (0,1802,0,-1).
%F G.f.: -(x^3-30*x^2-901*x-30) / (x^4-1802*x^2+1). - _Vincenzo Librandi_, Dec 03 2013, simplified by _Colin Barker_, Dec 27 2013
%F a(n) = 1802*a(n-2) - a(n-4). - _Vincenzo Librandi_, Dec 03 2013, simplified by _Colin Barker_, Dec 27 2013
%t Numerator[Convergents[Sqrt[902], 30]] (* or *) CoefficientList[Series[(30 + 901 x + 30 x^2 - x^3)/(1 - 1802 x^2 + x^4), {x, 0, 30}], x] (* _Vincenzo Librandi_, Dec 03 2013 *)
%o (Magma) I:=[30, 901, 54090, 1623601]; [n le 4 select I[n] else 1802*Self(n-2)-Self(n-4): n in [1..30]]; // _Vincenzo Librandi_, Dec 03 2013
%Y Cf. A042743, A040871.
%K nonn,frac,easy
%O 0,1
%A _N. J. A. Sloane_.
%E More terms from _Vincenzo Librandi_, Dec 03 2013
|