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:
“A full bosom is actually a millstone around a womans neck: it endears her to the men who want to make their mammet of her, but she is never allowed to think that their popping eyes actually see her. Her breasts ... are not parts of a person but lures slung around her neck, to be kneaded and twisted like magic putty, or mumbled and mouthed like lolly ices.”
—Germaine Greer (b. 1939)
“After the planet becomes theirs, many millions of years will have to pass before a beetle particularly loved by God, at the end of its calculations will find written on a sheet of paper in letters of fire that energy is equal to the mass multiplied by the square of the velocity of light. The new kings of the world will live tranquilly for a long time, confining themselves to devouring each other and being parasites among each other on a cottage industry scale.”
—Primo Levi (19191987)