(MAGMAMagma) [(n^3-n^2)*2^n: n in [0..25]]; (* or *) I:=[0, 16, 144, 768]; [n le 4 select I[n] else 8*Self(n-1) - 24*Self(n-2) + 32*Self(n-3) - 16*Self(n-4): n in [1..25]]; // Vincenzo Librandi, Feb 11 2013
(MAGMAMagma) [(n^3-n^2)*2^n: n in [0..25]]; (* or *) I:=[0, 16, 144, 768]; [n le 4 select I[n] else 8*Self(n-1) - 24*Self(n-2) + 32*Self(n-3) - 16*Self(n-4): n in [1..25]]; // Vincenzo Librandi, Feb 11 2013
editing
approved
(PARI) a(n)=(n^3-n^2)<<n \\ Charles R Greathouse IV, Oct 07 2015
approved
editing
editing
approved
a(n) = (n^3 - n^2)*2^n.
Corrected the first offset. - _Offset corrected by _Mohammad K. Azarian_, Nov 19 2008
approved
editing
<a href="/index/Rec">Index to sequences with entries for linear recurrences with constant coefficients</a>, signature (8,-24,32,-16).
<a href="/index/Rec#recLCC">Index to sequences with linear recurrences with constant coefficients</a>, signature (8,-24,32,-16).
<a href="/Sindx_Rea.htmlindex/Rec#recLCC">Index to sequences with linear recurrences with constant coefficients</a>, signature (8,-24,32,-16).
editing
approved
Table[(n^3-n^2)2^n, {n, 30}] (* or *) LinearRecurrence[{8, -24, 32, -16}, {0, 16, 144, 768}, 30] (* Harvey P. Dale, Jul 06 2014 *)
approved
editing