magic square A magic square is a set of integers (often 1, 2, ... , n2 ) arranged in a square in such away that each row, each column (and often the two diagonals as well) sum to the same number.
For example:  magic_sq.gif   is a 3 × 3 magic square.