OFFSET
0,2
COMMENTS
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
G.f.: 1 + x*(3 + 5*x + 5*x^2 - x^3)/(1-x)^4. - Vincenzo Librandi, Mar 13 2012
E.g.f.: (1 + 2*x + 6*x^2 + 2*x^3)*exp(x). - G. C. Greubel, Oct 12 2019
MAPLE
seq(2*n^3+1, n=0..50); # G. C. Greubel, Oct 12 2019
MATHEMATICA
2*Range[0, 50]^3+1 (* Vladimir Joseph Stephan Orlovsky, Feb 14 2011*)
CoefficientList[Series[1+x*(3+5x+5x^2-x^3)/(1-x)^4, {x, 0, 40}], x] (* Vincenzo Librandi, Mar 13 2012 *)
LinearRecurrence[{4, -6, 4, -1}, {1, 3, 17, 55}, 50] (* Harvey P. Dale, Aug 14 2023 *)
PROG
(PARI) a(n)=2*n^3+1 \\ Charles R Greathouse IV, Mar 11 2012
(Magma) [2*n^3+1: n in [0..50]]; // G. C. Greubel, Oct 12 2019
(Sage) [2*n^3+1 for n in range(50)] # G. C. Greubel, Oct 12 2019
(GAP) List([0..50], n-> 2*n^3+1); # G. C. Greubel, Oct 12 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Terms a(34) onward added by G. C. Greubel, Oct 12 2019
STATUS
approved