(MAGMAMagma) [n*(n^2 - 3*n + 4) : n in [0..60]]; // Wesley Ivan Hurt, May 30 2016
(MAGMAMagma) [n*(n^2 - 3*n + 4) : n in [0..60]]; // Wesley Ivan Hurt, May 30 2016
proposed
approved
editing
proposed
Vincenzo Librandi, <a href="/A242659/b242659.txt">Table of n, a(n) for n = 0..1000</a>
LinearRecurrence[{4, -6, 4, -1}, {0, 2, 4, 12}, 40] (* Vincenzo Librandi, Sep 07 2016 *)
approved
editing
proposed
approved
editing
proposed
a(n) = n*(n^2 -3n 3*n + 4).
<a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (4,-6,4,-1).
A242659:=n->n*(n^2 - 3*n + 4): seq(A242659(n), n=0..80); # Wesley Ivan Hurt, May 30 2016
Table[n*(n^2 - 3*n + 4), {n, 0, 60}] (* Wesley Ivan Hurt, May 30 2016 *)
(MAGMA) [n*(n^2 - 3*n + 4) : n in [0..60]]; // Wesley Ivan Hurt, May 30 2016
nonn,easy,changed
proposed
editing
editing
proposed
From Chai Wah Wu, May 30 2016: (Start)
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4) for n > 3.
G.f.: 2*x*(4*x^2 - 2*x + 1)/(x - 1)^4. (End)
approved
editing
editing
approved