A magic Square

 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.
so given an integer n find arrangement of numbers for it to be a magic square.
eg: Below a magic square for n = 3

File:Magicsquareexample.svg

Comments

Popular posts from this blog