OFFSET
0,1
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
O.g.f.: (4 - 11*x + 16*x^2 - 3*x^3)/(1 - x)^4.
E.g.f.: (x^3 + 3*x^2 + x + 4)*exp(x). - Robert Israel, Jun 09 2016
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4).
MAPLE
seq(n^3+4, n=0..100); # Robert Israel, Jun 09 2016
MATHEMATICA
Table[n^3 + 4, {n, 0, 60}]
Range[0, 50]^3+4 (* or *) LinearRecurrence[{4, -6, 4, -1}, {4, 5, 12, 31}, 50] (* Harvey P. Dale, Jul 01 2017 *)
PROG
(Magma) [n^3+4: n in [0..50]];
(PARI) a(n) = n^3 + 4 \\ Felix Fröhlich, Jun 09 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jun 09 2016
STATUS
approved