OFFSET
1,1
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.: 16*x*(1+8*x+64*x^2)/(1-8*x)^4. - Vincenzo Librandi, Feb 22 2013
a(n) = 32*a(n-1) -384*a(n-2) +2048*a(n-3) -4096*a(n-4). - Vincenzo Librandi, Feb 23 2013
MATHEMATICA
Table[(n^3 + n) 8^n, {n, 30}] (* or *) CoefficientList[Series[16 (1 + 8 x + 64 x^2)/(1 - 8 x)^4, {x, 0, 20}], x] (* Vincenzo Librandi, Feb 22 2013 *)
PROG
(Magma) [(n^3 + n)*8^n: n in [1..20]]; // Vincenzo Librandi, Feb 22 2013
(Magma) I:=[16, 640, 15360, 278528]; [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..20]]; // Vincenzo Librandi, Feb 23 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, May 02 2007
STATUS
approved