OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (10, -13, -2).
FORMULA
a(n) = 10*a(n-1) - 13*a(n-2) - 2a(n-3), a(0)=1, a(1)=10, a(2)=84.
G.f.: (1 - 3 x^2)/(1 - 10 x + 13 x^2 + 2 x^3).
MATHEMATICA
LinearRecurrence[{10, -13, -2}, {1, 10, 84}, 40]
PROG
(Python)
def a(n):
.if n in [0, 1, 2]:
..return [1, 10, 84][n]
.return 10*a(n-1)-13*a(n-2)-2*a(n-3)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
David Nacin, Jun 02 2017
STATUS
approved