OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..200
Index entries for linear recurrences with constant coefficients, signature (13,-23,11).
FORMULA
a(n) = 13*a(n-1)-23*a(n-2)+11*a(n-3), with a(1)=1, a(2)=13, a(3)=146. - Vincenzo Librandi, Oct 20 2012
G.f.: x/((1-11*x)*(1-x)^2). - Jinyuan Wang, Mar 11 2020
MAPLE
a:= n-> (Matrix([[1, 0, 1], [1, 1, 1], [0, 0, 11]])^n)[2, 3]:
seq(a(n), n=1..17); # Alois P. Heinz, Aug 06 2008
MATHEMATICA
LinearRecurrence[{13, -23, 11}, {1, 13, 146}, 20] (* Vincenzo Librandi, Oct 20 2012 *)
PROG
(Magma) I:=[1, 13, 146]; [n le 3 select I[n] else 13*Self(n-1) - 23*Self(n-2)+ 11*Self(n-3): n in [1..20]]; // Vincenzo Librandi, Oct 20 2012
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved