OFFSET
0,3
COMMENTS
Let A = [1,1,1; 2,4,3; 1,2,2]. a(n) is given by the (1,2) term in A^n.
LINKS
FORMULA
G.f.: x/(1-7*x+5*x^2-x^3).
a(n) = 7a(n-1) -5a(n-2) +a(n-3).
a(n) = A000073(3n).
a(n) = Sum_{i>=n-1} A120987(i,n-1) for n>0. - Alois P. Heinz, Dec 11 2015
MAPLE
a:= n-> (<<0|1|0>, <0|0|1>, <1|-5|7>>^n)[3, 1]:
seq(a(n), n=0..30); # Alois P. Heinz, Dec 11 2015
MATHEMATICA
LinearRecurrence[{7, -5, 1}, {0, 1, 7}, 30] (* Harvey P. Dale, Jan 14 2016 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Oct 16 2004
STATUS
approved