OFFSET
0,2
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
N. J. A. Sloane, Graphs for A244869-A244876.
R. P. Stanley, Examples of Magic Labelings, Unpublished Notes, 1973 [Cached copy, with permission]
Index entries for linear recurrences with constant coefficients, signature (7,-20,28,-14,-14,28,-20,7,-1).
FORMULA
G.f.: (1 + 10*x + 38*x^2 + 60*x^3 + 38*x^4 + 10*x^5 + x^6) / ((1 - x)^8*(1 + x)).
a(n) = (-315*(-129+(-1)^n) + 138528*n + 202104*n^2 + 171248*n^3 + 93030*n^4 + 32312*n^5 + 6636*n^6 + 632*n^7) / 40320. - Colin Barker, Jan 11 2017
MATHEMATICA
LinearRecurrence[{7, -20, 28, -14, -14, 28, -20, 7, -1}, {1, 17, 137, 707, 2709, 8417, 22408, 53008, 114251}, 40] (* Harvey P. Dale, Jun 30 2022 *)
PROG
(PARI) Vec((1 + 10*x + 38*x^2 + 60*x^3 + 38*x^4 + 10*x^5 + x^6) / ((1 - x)^8*(1 + x)) + O(x^40)) \\ Colin Barker, Jan 11 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jul 08 2014
STATUS
approved