OFFSET
0,2
LINKS
Reinhard Zumkeller, 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) = n^3 + 2*n^2 + 3*n + 1.
O.g.f.: (1 + 3*x + x^2 + x^3)/(1 - x)^4. - Bruno Berselli, Jul 04 2016
E.g.f.: (1 + 6*x + 5*x^2 + x^3)*exp(x). - Bruno Berselli, Jul 04 2016
MATHEMATICA
Table[n^3 + 2 n^2 + 3 n + 1, {n, 0, 50}] (* Bruno Berselli, Jul 04 2016 *)
LinearRecurrence[{4, -6, 4, -1}, {1, 7, 23, 55}, 50] (* Harvey P. Dale, Mar 01 2023 *)
PROG
(Haskell)
a261893 n = n * (n * (n + 2) + 3) + 1
a261893_list = zipWith (-) (tail a000578_list) a000290_list
(PARI) vector(50, n, n--; n^3+2*n^2+3*n+1) \\ Bruno Berselli, Jul 04 2016
(Sage) [n^3+2*n^2+3*n+1 for n in range(50)]; # Bruno Berselli, Jul 04 2016
(Maxima) makelist(n^3+2*n^2+3*n+1, n, 0, 50); /* Bruno Berselli, Jul 04 2016 */
(Magma) [n^3+2*n^2+3*n+1: n in [0..50]]; // Bruno Berselli, Jul 04 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Sep 05 2015
STATUS
approved