| Home | Sign up! | Projects | Seminars | Research Notes | Today's Lecture | About |

Update Seminar Form
 Course: Seminar Topic: Seminar Description: A Magic Square is an arrangement of the distinct positive integers 1, 2, ..., n2 such that the sum of all the rows, columns and main diagonals is always the same number.

This Number that all Rows, Columns and main Diagonals add upto is known as the Magic Constant.

The Magic Constant for an N X N Magic Square is represented by:

N ( N2 + 1 ) / 2

The logic behind this constant is very trivial and can be deduced by anyone who knows the following formula:

N ( N + 1 ) / 2

Yes. It is the sum of the first N Natural Numbers. In a Magic Square, the numbers that can be used are 1, 2, 3, ....... , N2. Since we have the first N2 Natural Numbers, the sum of the whole magic square is:

N2 ( N2 + 1 ) / 2

Also, the sum of each row (or column) is going to be same. Let it be x. Then the total sum of the Square will be N*x. This has to be equal to the total sum calculated above. So, the sum of numbers in each row (and hence, each column) is:

Total Sum / N = MAGIC CONSTANT

All the 8 possible 3 X 3 Magic Squares are given below:

* The above Magic Squares have been generated by using a Brute Force Algorithm which goes through all possible permutations ( which is very big - 9! = 362880 ; the next one for 4 being 16! = 20922789888000).