Magic constant



         


The magic constant of a magic square, an n-by-n matrix, is defined such that the sum of any row, column or main diagonal yields the same result, denoted M2(n). If the numbers in the magic square are 1, 2,..., n², then

<math>M_2(n) = \frac{n(n^2+1)}{2}<math>.

Paul Muljadi discovered and proved the Magic constant of n-Queens Problem is also the Magic constant of a Magic Square of order n > 3.

[Top]

See also





  View Live Article   This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License