login
A270829
Smallest magic sum for any n X n semimagic square made from consecutive primes, or 0 if no such magic square exists.
1
2, 0, 65573, 124, 313, 484, 797, 2016, 2211, 2862, 4507, 6188, 6325, 9660, 12669, 13016, 16857, 19530, 23069, 28184, 38761, 46302, 42515, 49846, 59087, 70260, 73385, 78960, 97267, 98316, 111023, 124454, 134641, 152952, 163043, 180596, 195975, 218432
OFFSET
1,1
COMMENTS
a(n) <= A073520(n). For n = 3 and 4, a(n) is different from A073520(n).
FORMULA
a(2) = 0, otherwise a(n) = (1/n) * sum(m=k..n^2+k-1, A000040(m)), where k = A049084(A270830(n)).
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved