OFFSET
0,1
REFERENCES
P. Curtz, Integration numerique des systemes differentiels a conditions initiales, 135 pages, Centre de Calcul Scientifique de l'Armement, Arcueil, 1969.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) + 12.
G.f.: ( 5 - 16*x + 23*x^2 ) / (x-1)^4. - R. J. Mathar, Jul 06 2011
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4); a(0)=5, a(1)=4, a(2)=9, a(3)=32. - Harvey P. Dale, Oct 12 2012
MATHEMATICA
Table[2n^3-3n^2+5, {n, 0, 50}] (* or *) LinearRecurrence[{4, -6, 4, -1}, {5, 4, 9, 32}, 50] (* Harvey P. Dale, Oct 12 2012 *)
PROG
(Magma) [2*n^3-3*n^2+5: n in [0..40]]; // Vincenzo Librandi, Aug 07 2011
(PARI) a(n)=2*n^3-3*n^2+5 \\ Charles R Greathouse IV, Oct 07 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Nov 23 2008
EXTENSIONS
Simpler definition and more terms from Paolo P. Lava, Nov 27 2008
Edited by N. J. A. Sloane, Jan 04 2008
STATUS
approved