OFFSET
0,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (7,2).
FORMULA
G.f.: (x-1)/(2*x^2+7*x-1).
a(n) = 7*a(n-1) + 2*a(n-2) for n>1, a(0)=1, a(2)=6.
EXAMPLE
a(1) = 3! = 3*2*1 = 6:
(0,1,1) - (0,0,1)
/ X \
(1,1,1) - (1,0,1) (0,1,0) - (0,0,0)
\ X /
(1,1,0) - (1,0,0)
MAPLE
a:= n-> (<<0|1>, <2|7>>^n. <<1, 6>>)[1, 1]:
seq(a(n), n=0..25);
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alois P. Heinz, Jul 19 2013
STATUS
approved