In recreational mathematics, a magic square of order n is an arrangement of n2 numbers, usually distinct integers, 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 n2. The term "magic square" is also sometimes used to refer to any of various types of word square.
Normal magic squares exist for all orders n ≥ 1 except n = 2, although the case n = 1 is trivial, consisting 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 or magic sum, M. The magic constant of a normal magic square depends only on n and has the value
For normal magic squares of order n = 3, 4, 5, ..., the magic constants are:
- 15, 34, 65, 111, 175, 260, ... (sequence A006003 in OEIS).
Read more about Magic Square: History, Types and Construction, Related Problems
Famous quotes containing the words magic and/or square:
“The middle years of parenthood are characterized by ambiguity. Our kids are no longer helpless, but neither are they independent. We are still active parents but we have more time now to concentrate on our personal needs. Our childrens world has expanded. It is not enclosed within a kind of magic dotted line drawn by us. Although we are still the most important adults in their lives, we are no longer the only significant adults.”
—Ruth Davidson Bell. Ourselves and Our Children, by Boston Womens Health Book Collective, ch. 3 (1978)
“The square dance fiddlers first concern is to carry a tune, but he must carry it loud enough to be heard over the noise of stamping feet, the cries of the caller, and the shouts of the dancers. When he fiddles, he fiddles all over; feet, hands, knees, head, and eyes are all busy.”
—State of Oklahoma, U.S. public relief program (1935-1943)