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