A172481 a(n) = (3*n*2^n+2^(n+4)+2*(-1)^n)/18.
1, 2, 5, 11, 25, 55, 121, 263, 569, 1223, 2617, 5575, 11833, 25031, 52793, 111047, 233017, 487879, 1019449, 2126279, 4427321, 9204167, 19107385, 39612871, 82021945, 169636295, 350457401, 723284423, 1491308089, 3072094663, 6323146297, 13004206535, 26724240953
Offset: 0
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..1000
- Index entries for linear recurrences with constant coefficients, signature (3,0,-4)
Programs
-
Magma
[(3*n*2^n+2^(n+4)+2*(-1)^n)/18: n in [0..40]]; // Vincenzo Librandi, Aug 04 2011
-
Mathematica
Table[(3n 2^n+2^(n+4)+2(-1)^n)/18,{n,0,40}] (* or *) CoefficientList[Series[(1-x-x^2)/((1+x)(1-2x)^2), {x,0,40}], x] (* Harvey P. Dale, Mar 28 2011 *)
-
PARI
a(n)=(3*n*2^n+2^(n+4)+2*(-1)^n)/18 \\ Charles R Greathouse IV, Oct 07 2015
Formula
Extensions
Definition replaced by explicit formula by R. J. Mathar, Feb 11 2010
Comments