%I #21 Sep 08 2022 08:45:26
%S 2,10,38,158,714,3378,16366,80326,397202,1972826,9824694,49005294,
%T 244672090,1222297474,6108298622,30531927062,152630937378,
%U 763068593322,3815084686150,19074648589630,95370918425066,476847618556370
%N 2n+3^n+5^n.
%H Vincenzo Librandi, <a href="/A120949/b120949.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-5*x+x^2+11*x^3)/((1-5*x)*(1-3*x)*(1-x)^2). - _Vincenzo Librandi_, Feb 26 2013
%t Table[2 n + 3^n + 5^n, {n, 0, 30}] (* or *) CoefficientList[Series[2 (1 - 5 x + x^2 + 11 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,10,38,158},30] (* _Harvey P. Dale_, Jan 18 2021 *)
%o (Magma) [2*n+3^n+5^n: n in [0..30]]; // _Vincenzo Librandi_, Feb 27 2013
%o (PARI) a(n)=2*n+3^n+5^n \\ _Charles R Greathouse IV_, 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