login
a(n) = 5*a(n-2) + 2*a(n-3).
0

%I #23 Feb 22 2025 17:40:14

%S 1,-1,1,-3,3,-13,9,-59,19,-277,-23,-1347,-669,-6781,-6039,-35243,

%T -43757,-188293,-289271,-1028979,-1822941,-5723437,-11172663,

%U -32263067,-67310189,-183660661,-401077079,-1052923683,-2372706717,-6066772573,-13969380951,-35079276299

%N a(n) = 5*a(n-2) + 2*a(n-3).

%H <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (0,5,2).

%F G.f.: (1-x-4x^2)/((1+2x)(1-2x-x^2)). - _R. J. Mathar_, Feb 07 2009

%t LinearRecurrence[{0, 5, 2}, {1, -1, 1}, 35] (* _Paolo Xausa_, Jan 29 2024 *)

%t CoefficientList[Series[(1 - x - 4 x^2)/((1 + 2 x) (1 - 2 x - x^2)), {x, 0, 40}], x] (* _Wesley Ivan Hurt_, Feb 22 2025 *)

%K sign,easy,changed

%O 0,4

%A _Paul Curtz_, Mar 02 2008

%E More terms from _R. J. Mathar_, Feb 07 2009

%E a(30)-a(31) from _Paolo Xausa_, Jan 29 2024