(MAGMAMagma) I:=[24, 577, 27720, 665857]; [n le 4 select I[n] else 1154*Self(n-2)-Self(n-4): n in [1..30]]; // Vincenzo Librandi, Nov 16 2013
(MAGMAMagma) I:=[24, 577, 27720, 665857]; [n le 4 select I[n] else 1154*Self(n-2)-Self(n-4): n in [1..30]]; // Vincenzo Librandi, Nov 16 2013
editing
approved
LinearRecurrence[{0, 1154, 0, -1}, {24, 577, 27720, 665857}, 20] (* Harvey P. Dale, Jul 04 2015 *)
approved
editing
<a href="/index/Rec">Index to sequences with entries for linear recurrences with constant coefficients</a>, signature (0,1154,0,-1).
<a href="/index/Rea#recLCCRec">Index to sequences with linear recurrences with constant coefficients</a>, signature (0,1154,0,-1).
editing
approved
(MAGMA) I:=[24, 577, 27720, 665857]; [n le 4 select I[n] else 1154*Self(n-2)-Self(n-4): n in [1..30]]; // Vincenzo Librandi, Nov 16 2013
reviewed
editing
proposed
reviewed
editing
proposed
G.f.: -(x^3 - 24*x^2 - 577*x - 24)/(x^4 - 1154*x^2 + 1). - Vincenzo Librandi, Nov 16 2013
Numerator[Convergents[Sqrt[578], 30]] (* _or *) CoefficientList[Series[-(x^3 - 24 x^2 - 577 x - 24)/(x^4 - 1154 x^2 + 1), {x, 0, 30}], x] (* _Vincenzo Librandi_, Nov 16 2013 *)