Simple Magic Square

Simple Magic Square

In recreational mathematics, a magic square is an arrangement of numbers (usually integers) in a square grid, where the numbers in each row, and in each column, and the numbers that run diagonally in both directions, all add up to the same number. A magic square has the same number of rows as it has columns, and in conventional math notation, "n" stands for the number of rows (and columns) it has. Thus, a magic square always contains n2 numbers, and its size (the number of rows it has) is described as being "of order n". A magic square that contains the integers from 1 to n2 is called a normal magic square. (The term "magic square" is also sometimes used to refer to any of various types of word squares.)

It is possible to construct a normal magic square of any size except 2 x 2 (that is, where n = 2), although the solution to a magic square where n = 1 is trivial, since it consists simply of a single cell containing the number 1. The smallest nontrivial case, shown below, is a 3 x 3 grid (that is, a magic square of order 3).

The constant that is the sum of every row, column and diagonal is called the magic constant or magic sum, M. Every normal magic square has a unique constant determined solely by the value of n, which can be calculated using this formula:

For example, if n = 3, the formula says M = /2, which simplifies to 15. For normal magic squares of order n = 3, 4, 5, 6, 7, and 8, the magic constants are, respectively: 15, 34, 65, 111, 175, and 260. (See sequence A006003 in the OEIS)

Read more about Simple Magic Square:  History, Types and Construction, Related Problems, See Also

Famous quotes containing the words simple, magic and/or square:

    He prayed more deeply for simple selflessness than he had ever prayed before—and, feeling an uprush of grace in the very intention, shed the night in his heart and called it light. And walking out of the little church he felt confirmed in not only the worth of his whispered prayer but in the realization, as well, that Christ had become man and not some bell-shaped Corinthian column with volutes for veins and a mandala of stone foliage for a heart.
    Alexander Theroux (b. 1940)

    Until it is kindled by a spirit as flamingly alive as the one which gave it birth a book is dead to us. Words divested of their magic are but dead hieroglyphs.
    Henry Miller (1891–1980)

    I walked by the Union Square Bar, I was gonna go in. And I saw myself, my reflection in the window. And I thought, “I wonder who that bum is.” And then I saw it was me. Now look at me, I’m a bum. Look at me. Look at you. You’re a bum.
    —J.P. (James Pinckney)