Magic square
In mathematics, a magic square (??) of order n is an arrangement of n² numbers in a square, such that the n numbers in all rows, all columns, and both diagonals sum to the same constant. A normal magic square contains the integers from 1 to n².
Related Topics:
Mathematics - Square - Integer
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
Magic squares exist for all orders n ≥ 1 except n = 2, although the case n = 1 is trivial—it consists of a single cell containing the number 1. The smallest nontrivial case, shown below, is of order 3.
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
The constant sum in every row, column and diagonal is called the magic constant, M. The magic constant of a normal magic square depends only on n and has the value
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
:M(n) = rac{n(n^2+1)}{2}
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
For normal magic squares of order n = 3, 4, 5, …, the magic constants (sequence in OEIS) are:
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
:15, 34, 65, 111, 175, 260, …
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ Table of Content ~
| ► | Introduction |
| ► | Brief history of magic squares |
| ► | Types of magic squares and their construction |
| ► | Counting magic squares |
| ► | Generalizations |
| ► | Related problems |
| ► | See also |
| ► | External links |
| ► | References |
~ What's Hot ~
~ Community ~
| ► | History Forum Come and discuss about History, Civilizations, Historical Events and Figures |
| ► | History Web-Ring A community of sites, blogs and forums dedicated to History. Do not hesitate to submit your site. |
and are licensed under the GNU Free Documentation License.
Lexicon - Privacy Policy - Spiritus-Temporis.com ©2005.
