magic square
A magic square of order is an array using each one of the numbers once and such that the sum of the numbers in each row, column or main diagonal is the same.
Example:
It’s easy to prove that the sum is always . So in the example with the sum is always .
One way to generalize this concept is to allow any numbers in the entries, instead of .