OFFSET
0,2
COMMENTS
Partial sums of A052161.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (8,-22,28,-17,4).
FORMULA
G.f.: 1/((1-4x)(1-x)^4); a(n)=4^(n+4)/81-(9n^3+90n^2+303n+350)/162; a(n)=sum{k=0..n, binomial(n+4, k+4)3^k}.
a(0)=1, a(1)=8, a(2)=42, a(3)=188, a(4)=787, a(n)=8*a(n-1)- 22*a(n-2)+ 28*a(n-3)- 17*a(n-4)+4*a(n-5). - Harvey P. Dale, May 04 2014
MATHEMATICA
RecurrenceTable[{a[0]==1, a[n]==4a[n-1]+Binomial[n+3, 3]}, a, {n, 30}] (* or *) LinearRecurrence[{8, -22, 28, -17, 4}, {1, 8, 42, 188, 787}, 30] (* Harvey P. Dale, May 04 2014 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Aug 24 2004
STATUS
approved