OFFSET
0,3
REFERENCES
T. A. Gulliver, Sequences from Arrays of Integers, Int. Math. Journal, Vol. 1, No. 4, pp. 323-332, 2002.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..2000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = +4*a(n-1) -6*a(n-2) +4*a(n-3) -1*a(n-4).
G.f.: x*(1 + 5*x + 8*x^2)/(1-x)^4. - Harvey P. Dale, Jun 29 2011
E.g.f.: (1/6)*x*(6 + 21*x + 14*x^2)*exp(x). - G. C. Greubel, Aug 05 2024
MATHEMATICA
Table[ n*(14*n^2 - 21*n + 13)/6, {n, 0, 40}]
LinearRecurrence[{4, -6, 4, -1}, {0, 1, 9, 38}, 40] (* or *) CoefficientList[ Series[x*(1+5x+8x^2)/(1-x)^4, {x, 0, 40}], x] (* Harvey P. Dale, Jun 29 2011 *)
PROG
(Magma) [n*(14*n^2-21*n+13)/6: n in [0..50]]; // Vincenzo Librandi, Jun 14 2011
(SageMath)
def A071229(n): return n*(14*n^2-21*n+13)/6
[A071229(n) for n in range(51)] # G. C. Greubel, Aug 05 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jun 11 2002
EXTENSIONS
More terms from Robert G. Wilson v, Jun 12 2002
STATUS
approved