OFFSET
0,1
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
FORMULA
a(n) = n^4 + 6*n^3 + 11*n^2 + 10*n + 6. - Charles R Greathouse IV, Nov 02 2009, [corrected by Klaus Brockhaus, Nov 14 2009]
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4) + 24 for n > 3; a(0)=6, a(1)=34, a(2)=134, a(3)=378. - Klaus Brockhaus, Nov 14 2009
G.f.: 2*(3 + 2*x + 12*x^2 - 6*x^3 + x^4)/(1-x)^5. - Klaus Brockhaus, Nov 14 2009
EXAMPLE
a(0) = 0*1*2*3+0+1+2+3 = 0+6 = 6.
a(1) = 1*2*3*4+1+2+3+4 = 24+10 = 34.
MATHEMATICA
lst={}; Do[p=(n+3)*(n+2)*(n+1)*n+(n+3)+(n+2)+(n+1)+n; AppendTo[lst, p], {n, 0, 5!}]; lst
PROG
(Magma) [ &*s + &+s where s is [n..n+3]: n in [0..32] ]; // Klaus Brockhaus, Nov 14 2009
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladimir Joseph Stephan Orlovsky, Oct 24 2009
EXTENSIONS
Edited and offset corrected by Klaus Brockhaus, Nov 14 2009
STATUS
approved