OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (3,6,-4,-5,1,1).
FORMULA
G.f.: -(x+1) / (x^6+x^5-5*x^4-4*x^3+6*x^2+3*x-1). - Colin Barker, Jun 14 2013
MAPLE
a:= n->(Matrix(6, (i, j)->`if`(i+j>7, 0, 1))^n.<<[1$6][]>>)[3, 1]:
seq(a(n), n=0..30); # Alois P. Heinz, Jun 14 2013
MATHEMATICA
m = Table[ If[i + j <= 7, 1, 0], {i, 1, 6}, {j, 1, 6}]; mp[n_] := MatrixPower[m, n].m[[1]]; a[n_] := mp[n][[3]]; Table[a[n], {n, 0, 24}] (* Jean-François Alcover, Jun 18 2013 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, Apr 02 2002
EXTENSIONS
Edited by Henry Bottomley, May 06 2002
STATUS
approved