OFFSET
0,2
LINKS
Chai Wah Wu, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (9, -36, 84, -126, 126, -84, 36, -9, 1).
FORMULA
From Chai Wah Wu, Jun 04 2016: (Start)
a(n) = 9*a(n-1) - 36*a(n-2) + 84*a(n-3) - 126*a(n-4) + 126*a(n-5) - 84*a(n-6) + 36*a(n-7) - 9*a(n-8) + a(n-9) for n > 8.
G.f.: x*(29093*x^7 - 212062*x^6 + 663528*x^5 - 1155496*x^4 + 1209824*x^3 - 761832*x^2 + 267264*x - 40320)/(x - 1)^9. (End)
MATHEMATICA
LinearRecurrence[{9, -36, 84, -126, 126, -84, 36, -9, 1}, {0, 40320, 95616, 170856, 272584, 409360, 592296, 835702, 1157857}, 30] (* Harvey P. Dale, Apr 04 2017 *)
PROG
(Python)
from itertools import islice
def A090394_generator():
m = [1, 7, 33, 135, 531, 2109, 8411, 29093, 0]
yield m[-1]
while True:
for i in range(8):
m[i+1]+= m[i]
yield m[-1]
list(islice(A090394_generator(), 0, 50, 1)) # Chai Wah Wu, Nov 14 2014
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Philippe Deléham, Jan 31 2004
STATUS
approved