OFFSET
2,1
COMMENTS
a[n-1] is one approximation for the upper bound of the "antimagic constant" of an antimagic square of order n. The antimagic constant here is defined as the least integer in the set of consecutive integers to which the rows, columns and diagonals of the square sum. By analogy with the magic constant. This approximation follows from the observation that Sum[m + k, {k, 0, 2*n + 1}] <= (2*Sum[k, {k, 1, n^2}]) + (2*m) + (2*m + 1) where m is the antimagic constant for an antimagic square of order n. Stricter bounds seem likely to exist. See A117560 for the lower bounds. Note there exist no antimagic squares of order two or three, but the values are indexed here for completeness.
LINKS
Eric Weisstein's World of Mathematics, Antimagic Square.
FORMULA
a(n) = floor(n*(n^3-n-3)/(2*(n-1))).
G.f.: x^2*(3+3*x-4*x^2-x^3+3*x^4-x^5)/(1-x)^4. - Colin Barker, Mar 29 2012
EXAMPLE
a[3] = 38 because the antimagic constant of an antimagic square of order 4 cannot exceed 38 (see comments)
MATHEMATICA
Table[Floor[n(n^3-n-3)/(2*(n-1))], {n, 2, 50}]
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Joseph Biberstine (jrbibers(AT)indiana.edu), Mar 29 2006
STATUS
approved