2. Step 1: Form a Square Matrix
• Let ‘n’ be the order of the Magic Square, say 5
• Write numbers 1 to 25 (n x n) in sequence
• We are trying to identify the final Matrix from this
matrix
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25
3. Step 2: Row and Column Identifier
• Form two matrices of same size, one for
identifying the row and another for column
• Middle column of the matrix are numbered 1 to 5
• Columns on either side are got by subtracting and
adding 1
• The second Matrix is a mirror image of the first
matrix
4 5 1 2 3
5 1 2 3 4
1 2 3 4 5
2 3 4 5 1
3 4 5 1 2
3 2 1 5 4
4 3 2 1 5
5 4 3 2 1
1 5 4 3 2
2 1 5 4 3
4. Step 3: Final Matrix
• Super impose row and column matrices and find
the number for each cell from the corresponding
row and column in the first matrix
For e.g
4th row 3rd column (Step 2) = 18 (Step 1)
3rd row 5th column (Step 2) = 15 (Step 1)
18 22 1 10 14
24 3 7 11 20
5 9 13 17 21
6 15 19 23 2
12 16 25 4 8