OFFSET
0,2
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = (4*n^2 + n + 1) * (n + 1).
G.f.: (1 + 3*x)*(1 + 5*x)/(1 - x)^4. - Andrew Howroyd, Jan 07 2020
MATHEMATICA
LinearRecurrence[{4, -6, 4, -1}, {1, 12, 57, 160}, 50] (* or *) CoefficientList[ Series[(1+3x)(1+5x)/(1-x)^4, {x, 0, 50}], x] (* Harvey P. Dale, Jun 25 2021 *)
PROG
(Haskell)
a204674 n = n * (n * (4 * n + 5) + 2) + 1
(PARI) a(n)={ 4*n^3 + 5*n^2 + 2*n + 1 } \\ Andrew Howroyd, Jan 07 2020
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Jan 18 2012
EXTENSIONS
Terms a(26) and beyond from Andrew Howroyd, Jan 07 2020
STATUS
approved