OFFSET
4,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 4..1000
Index entries for linear recurrences with constant coefficients, signature (16, -112, 448, -1120, 1792, -1792, 1024, -256).
FORMULA
a(n) = 2^n*(54*n^7 - 763*n^6 + 4158*n^5 - 11305*n^4 + 16401*n^3 - 12502*n^2 + 4587*n - 630)/10080.
G.f.: (16*z^4 + 576*z^3 + 1112*z^2 + 192*z - 15)/(2*z-1)^8.
a(n) = 16*a(n-1) - 112*a(n-2) + 448*a(n-3) - 1120*a(n-4) + 1792*a(n-5) - 1792*a(n-6) + 1024*a(n-7) - 256*a(n-8).
a(n) - 15*a(n-1) + 98*a(n-2) - 364*a(n-3) + 840*a(n-4) - 1232*a(n-5) + 1120*a(n-6) - 576*a(n-7) + 128*a(n-8) = 27*2^(n-1).
MATHEMATICA
LinearRecurrence[{16, -112, 448, -1120, 1792, -1792, 1024, -256}, {-15, -48, 2024, 31616, 274480, 1784320, 9645312, 45735936}, 997] (* G. C. Greubel, Jul 17 2016 *)
PROG
(Magma) [2^n*(54*n^7-763*n^6+4158*n^5-11305*n^4+16401*n^3- 12502*n^2+4587*n-630)/10080: n in [4..40]]; // Vincenzo Librandi, Jul 18 2016
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Johannes W. Meijer, Nov 23 2009
STATUS
approved