login
2^n+3^n-n.
1

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

%S 2,4,11,32,93,270,787,2308,6809,20186,60063,179184,535525,1602502,

%T 4799339,14381660,43112241,129271218,387682615,1162785736,3487832957,

%U 10462450334,31385253891,94151567412,282446313673,847322163850

%N 2^n+3^n-n.

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

%F G.f.: (2-10*x+17*x^2-11*x^3)/((1-2*x)*(1-3*x)*(1-x)^2). - _Vincenzo Librandi_, Feb 06 2013

%t CoefficientList[Series[(2 - 10 x + 17 x^2 - 11 x^3)/((1 - 2 x) (1 - 3 x) (1 - x)^2), {x, 0, 30}], x] (* _Vincenzo Librandi_, Feb 06 2013 *)

%o (Magma) [2^n+3^n-n: n in [0..30]]; // _Vincenzo Librandi_, Feb 06 2013

%Y Cf. A001047, A007689.

%K nonn,easy

%O 0,1

%A _Mohammad K. Azarian_, Aug 18 2006

%E Edited by _Ray Chandler_, Sep 06 2006