OFFSET
0,2
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
R. P. Stanley, Examples of Magic Labelings, Unpublished Notes, 1973 [Cached copy, with permission]
Index entries for linear recurrences with constant coefficients, signature (8,-28,56,-70,56,-28,8,-1).
FORMULA
G.f.: (1 + 24*x + 92*x^2 + 64*x^3 + 6*x^4) / (1 - x)^8.
From Colin Barker, Jan 11 2017: (Start)
a(n) = (5040 + 22164*n + 43092*n^2 + 46963*n^3 + 30240*n^4 + 11326*n^5 + 2268*n^6 + 187*n^7) / 5040.
a(n) = 8*a(n-1) - 28*a(n-2) + 56*a(n-3) - 70*a(n-4) + 56*a(n-5) - 28*a(n-6) + 8*a(n-7) - a(n-8) for n>7.
(End)
MATHEMATICA
LinearRecurrence[{8, -28, 56, -70, 56, -28, 8, -1}, {1, 32, 320, 1784, 7040, 22104, 58980, 139320}, 40] (* Harvey P. Dale, Aug 17 2019 *)
PROG
(PARI) Vec((1 + 24*x + 92*x^2 + 64*x^3 + 6*x^4) / (1 - x)^8 + O(x^40)) \\ Colin Barker, Jan 11 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jul 07 2014
STATUS
approved