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*(27*n^7 - 434*n^6 + 2289*n^5 - 5705*n^4 + 7938*n^3 - 6461*n^2 + 2346*n)/10080.
G.f.: (320*z^3 + 560*z^2 + 192*z - 60)/(1-2*z)^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-2).
MATHEMATICA
LinearRecurrence[{16, -112, 448, -1120, 1792, -1792, 1024, -256}, {-60, -768, -5008, -20672, -46720, 76800, 1540608, 10610688}, 50] (* G. C. Greubel, Jul 17 2016 *)
PROG
(Magma) [2^n*(27*n^7-434*n^6+2289*n^5-5705*n^4+7938*n^3- 6461*n^2+2346*n)/10080: n in [4..30]]; // Vincenzo Librandi, Jul 18 2016
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Johannes W. Meijer, Nov 23 2009, Nov 25 2009
STATUS
approved