OFFSET
0,2
COMMENTS
An exercise in my secondary school algebra book.
REFERENCES
C. Smith, A Treatise on Algebra, Macmillan, London, 5th ed., 1950, p. 429, Example 2(i).
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
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)
MAPLE
MATHEMATICA
Table[n*(n^2 - 3*n + 4), {n, 0, 60}] (* Wesley Ivan Hurt, May 30 2016 *)
LinearRecurrence[{4, -6, 4, -1}, {0, 2, 4, 12}, 40] (* Vincenzo Librandi, Sep 07 2016 *)
PROG
(Magma) [n*(n^2 - 3*n + 4) : n in [0..60]]; // Wesley Ivan Hurt, May 30 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 30 2014
STATUS
approved