Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store
seo-qna
SearchIcon
banner

In a magic square, each row, each column, each diagonal have the same sum. Check if this is a magic square.
seo images

Answer
VerifiedVerified
509.1k+ views
3 likes
like imagedislike image
Hint: Here we have a grid filled with integers. We check if the sum of elements of every row is equal to sum of elements of every column and equal to sum of elements of every diagonal. If all the sums are equal to the same constant, we say it is a magic square.
* A magic square of order n is an arrangement of n2 distinct numbers such that sum of n numbers in every row, sum of n numbers in every column and sum of n numbers in every diagonal sum to the same constant.

Complete step by step solution:
To solve the magic square we allot names to all rows, all columns and both diagonals to make calculations easier.
Say, the first row is denoted by R1 , second row by R2 and third row by R3.
Similarly, first column is denoted by C1 , second column by C2 and third column by C3
Diagonal from top left to bottom right be denoted by D1 and diagonal from top right to left bottom by D2

seo images

Elements of R1 are 1,10,0
Therefore, sum of elements of R1 is (1)+(10)+(0)=110=9
Elements of R2 are 4,3,2
Therefore, sum of elements of R2 is (4)+(3)+(2)=(4+3+2)=9
Elements of R3 are 6,4,7
Therefore, sum of elements of R3 is (6)+(4)+(7)=4(6+7)=413=9
Elements of C1 are 1,4,6
Therefore, sum of elements of C1 is (1)+(4)+(6)=1(6+4)=110=9
Elements of C2 are 10,3,4
Therefore, sum of elements of C2 is (10)+(3)+(4)=4(10+3)=413=9
Elements of C3 are 0,2,7
Therefore, sum of elements of C3 is (0)+(2)+(7)=(2+7)=9
Elements of D1 are 1,3,7
Therefore, sum of elements of D1 is (1)+(3)+(7)=1(3+7)=110=9
Elements of D2 are 0,3,6
Therefore, sum of elements of D2 is (0)+(3)+(6)=(3+6)=9
Clearly sum or elements of each row is 9.
Sum of elements of each column is 9 .
And the sum of elements of each diagonal is 9 .
Since, numbers in each row, numbers in each column and numbers in each diagonal sum up to the same constant i.e. 9

Therefore this arrangement of numbers in the form of a grid is a magic square.

Note:
Students should be aware of the meaning of terms ‘Rows’ and ‘Columns’ as it can create confusion sometimes. A Row is the horizontal data arrangement and a column is the vertical data arrangement.
* Generally, a magic square has all elements as positive distinct numbers, then constant sum is called ‘Magic constant’ or ‘Magic sum’ and is denoted by M and is calculated by the formula M=n(n2+1)2, where n is the order of the square.
WhatsApp Banner