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