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