OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (32,-384,2048,-4096).
FORMULA
G.f.: 256*x^2*(1+4*x)/(1-8*x)^4. - Vincenzo Librandi, Feb 12 2013
a(n) = 32*a(n-1)-384*a(n-2)+2048*a(n-3)-4096*a(n-4). - Vincenzo Librandi, Feb 12 2013
MATHEMATICA
CoefficientList[Series[256 x (1 + 4 x)/(1 - 8 x)^4, {x, 0, 30}], x] (* Vincenzo Librandi, Feb 12 2013 *)
LinearRecurrence[{32, -384, 2048, -4096}, {0, 256, 9216, 196608}, 30] (* Harvey P. Dale, Aug 25 2013 *)
PROG
(Magma) [(n^3-n^2)*8^n: n in [1..25]]; /* or */ I:=[0, 256, 9216, 196608]; [n le 4 select I[n] else 32*Self(n-1)-384*Self(n-2)+2048*Self(n-3)-4096*Self(n-4): n in [1..25]]; // Vincenzo Librandi, Feb 12 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Apr 30 2007
EXTENSIONS
Offset corrected by Mohammad K. Azarian, Nov 20 2008
STATUS
approved