Back to Linear Algebra

Magic Squares

Rows, columns, and diagonals summing alike defines a subspace of square matrices, and computing its dimension counts how many can exist.

Linear Algebra, Magic Squares

Status
FlagsLoading your progress…

5 exercises

Exercise 1

Let MM be a 3 ⁣× ⁣33\!\times\!3 magic square with magic number ss.

  • Prove that the sum of MM’s entries is 3s3s.

  • Prove that s=3⋅m2,2s=3\cdot m_{2,2}.

  • Prove that m2,2m_{2,2} is the average of the entries in its row, its column, and in each diagonal.

  • Prove that m2,2m_{2,2} is the median of MM’s entries.

3.0

Exercise 2

Solve the system a+b=sa+b=s, c+d=sc+d=s, a+c=sa+c=s, b+d=sb+d=s, a+d=sa+d=s, and b+c=sb+c=s.

3.0

Exercise 3

Show that dim⁡M2,0=0\dim\mathscr{M}_{2,0}=0.

3.0

Exercise 4

Let the trace function be Tr⁡(M)=m1,1+⋯+mn,n\operatorname{Tr}(M)=m_{1,1}+\cdots+m_{n,n}. Define also the sum down the other diagonal Tr⁡∗(M)=m1,n+⋯+mn,1\operatorname{Tr}^{*}(M)=m_{1,n}+\cdots+m_{n,1}.

  • Show that the two functions Tr⁡,Tr⁡∗ ⁣:Mn ⁣× ⁣n→R\operatorname{Tr},\operatorname{Tr}^{*}\colon\mathcal{M}_{n\!\times\!n}\to\mathbb{R} are linear.

  • Show that the function θ ⁣:Mn ⁣× ⁣n→R2\theta\colon\mathcal{M}_{n\!\times\!n}\to\mathbb{R}^{2} given by θ(M)=(Tr⁡(M),Tr⁡∗(m))\theta(M)=(\operatorname{Tr}(M),\operatorname{Tr}^{*}(m)) is linear.

  • Generalize the prior item.

3.0

Exercise 5

A square matrix is semimagic if the rows and columns add to the same value, that is, if we drop the condition on the diagonals.

  • (a)  Show that the set of semimagic squares Hn\mathscr{H}_{n} is a subspace of Mn ⁣× ⁣n\mathcal{M}_{n\!\times\!n}.     (b)  Show that the set Hn,0\mathscr{H}_{n,0} of n ⁣× ⁣nn\!\times\!n semimagic squares with magic number 00 is also a subspace of Mn ⁣× ⁣n\mathcal{M}_{n\!\times\!n}.

3.0

Adapted from Linear Algebra © 2016 Jim Hefferon. Licensed under CC BY-SA 3.0 US. Source: Linear Algebra. Imported at revision df2262e.