OFFSET
0,8
REFERENCES
D. E. Knuth, The Art of Computer Programming, Vol. 4A, Section 7.1.4.
LINKS
Index entries for linear recurrences with constant coefficients, signature (6, -15, 20, -15, 8, -7, 6, -2, 0, -1).
FORMULA
G.f.: x^6*(1-x)/(x^5+x^3-3*x^2+3*x-1)^2. - Alois P. Heinz, Oct 23 2008
MAPLE
a:= n-> (Matrix([[35, 15, 5, 1, 0$6]]). Matrix (10, (i, j)-> if i=j-1 then 1 elif j=1 then [6, -15, 20, -15, 8, -7, 6, -2, 0, -1][i] else 0 fi)^n)[1, 10]: seq (a(n), n=0..50); # Alois P. Heinz, Oct 23 2008
MATHEMATICA
Table[Sum[k Binomial[n-2k, 3k+1], {k, n/2}], {n, 0, 40}] (* or *) LinearRecurrence[ {6, -15, 20, -15, 8, -7, 6, -2, 0, -1}, {0, 0, 0, 0, 0, 0, 1, 5, 15, 35}, 40] (* Harvey P. Dale, May 31 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Don Knuth, Apr 11 2008
STATUS
approved