OFFSET
0,2
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (5, -10, 10, -5, 1).
FORMULA
a(n) = n*(n+1)*(7*n^2+7*n+2)/8.
G.f.: -x*(4*x^2+13*x+4)/(x-1)^5.
a(0)=0, a(1)=4, a(2)=33, a(3)=129, a(4)=355, a(n)=5*a(n-1)- 10*a(n-2)+ 10*a(n-3)-5*a(n-4)+a(n-5) [From Harvey P. Dale, Jul 20 2011]
MATHEMATICA
Table[n(n+1)(7n^2+7n+2)/8, {n, 0, 40}] (* or *) LinearRecurrence[ {5, -10, 10, -5, 1}, {0, 4, 33, 129, 355}, 40] (* Harvey P. Dale, Jul 20 2011 *)
PROG
(Maxima) A152041(n):=n*(n+1)*(7*n^2+7*n+2)/8$
makelist(A152041(n), n, 0, 30); /* Martin Ettl, Nov 03 2012 */
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
M. F. Hasler, Sep 15 2009
EXTENSIONS
Extended and edited by Nathaniel Johnston, May 05 2011
STATUS
approved