%I #19 Sep 08 2022 08:45:26
%S 2,6,30,146,698,3358,16342,80298,397170,1972790,9824654,49005250,
%T 244672042,1222297422,6108298566,30531927002,152630937314,
%U 763068593254,3815084686078,19074648589554,95370918424986,476847618556286
%N 3^n+5^n-2n.
%H Vincenzo Librandi, <a href="/A120950/b120950.txt">Table of n, a(n) for n = 0..1000</a>
%H <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (10,-32,38,-15).
%F G.f.: 2*(1-7*x+17*x^2-19*x^3)/((1-5*x)*(1-3*x)*(1-x)^2). - _Vincenzo Librandi_, Feb 26 2013
%t Table[3^n + 5^n - 2 n, {n, 0, 30}] (* or *) CoefficientList[Series[2 (1 - 7 x + 17 x^2 - 19 x^3)/((1 - 5 x) (1 - 3 x) (1 - x)^2), {x, 0, 30}], x] (* _Vincenzo Librandi_, Feb 26 2013 *)
%t LinearRecurrence[{10,-32,38,-15},{2,6,30,146},30] (* _Harvey P. Dale_, Apr 27 2016 *)
%o (Magma) [3^n+5^n-2*n: n in [0..30]]; // _Vincenzo Librandi_, Feb 27 2013
%Y Cf. A074606, A005058.
%K nonn,easy
%O 0,1
%A _Mohammad K. Azarian_, Aug 19 2006
%E Edited by _Ray Chandler_, Sep 06 2006
|