login
8n+5^n-3^n.
1

%I #20 Sep 08 2022 08:45:26

%S 0,10,32,122,576,2922,14944,75994,384128,1933514,9706656,48651066,

%T 243609280,1219108906,6098732768,30503229338,152544844032,

%U 762810313098,3814309845280,19072324066810,95363944856384,476826697850090

%N 8n+5^n-3^n.

%H Vincenzo Librandi, <a href="/A120969/b120969.txt">Table of n, a(n) for n = 0..1000</a>

%H <a href="/index/Rec">Index entries for linear recurrences with constant coefficients</a>, signature (10,-32,38,-15).

%F G.f.: 2*x*(5-34*x+61*x^2)/((1-x)^2*(1-5*x)*(1-3*x)). - _Vincenzo Librandi_, Feb 23 2013

%t CoefficientList[Series[2 x (5 - 34 x + 61 x^2)/((1-x)^2(1-5x)(1-3x)), {x, 0, 30}], x] (* _Vincenzo Librandi_, Feb 23 2013 *)

%o (Magma) [8*n+5^n-3^n: n in [0..30]] /* or */ I:=[0,10,32,122]; [n le 4 select I[n] else 10*Self(n-1)-32*Self(n-2)+38*Self(n-3)-15*Self(n-4): n in [1..30]]; // _Vincenzo Librandi_, Feb 25.2013

%Y Cf. A074606, A005058.

%K nonn,easy

%O 0,2

%A _Mohammad K. Azarian_, Aug 19 2006

%E Edited by _Ray Chandler_, Sep 06 2006