User:BALU NZB/sandbox/Magic square

''In a magic square terms should be in A.P (arithmetic progressoin).any numbers can be taken but on one condition they should be AP. Ex: 3  -4   1      = 0                    -2    0   2      = 0                    -1    4  -3      = 0 likely sum on each row and column is 0.

a+7d   a     a+5d     = 3a+12d a+2d  a+4d   a+6d     = 3a+12d a+3d  a+8d   a+d      = 3a+12d

likely on each row and column the sum is 3a+12d even in diagonals.we observe that sum of corner elements is equal to four times of middle term

a+7d+a+5d+a+3d+a+d = 4a+16d = 4(a+4d) = 4 times of middle element

this is applicable to any kind of magic square of any order sum of total elements = n^2/2[2a+(n^2-1)d] n= number of elemets in row or column

in this magic square there are n rows or columns dividing the above equation by n gives sum on row or column the sum on row or column is n/2[2a+(n^2-1)d] this is applicable for any kind of magic square of any order''