Magic Squares

Magic squares are simply delightful and fun to make. They have very special properties which I am sure will interest you.

An example of a 3 by 3 magic square is:

\(\begin{array} {c|c|c} 4 & 3 & 8\\ \hline 9 & 5 & 1\\ \hline 2 & 7 & 6 \end{array}\)

Can you see anything special? Well, each row, column and diagonal have the same sum. In this case, it is 15. For a 4 by 4 square, the sum is 34. For a 5 by 5 square it is 65.

Problem 1: Can you find a rule for the sum of an nn by nn magic square?

Give a solution to the problem in the comments below.

How may different magic squares which are 3 by 3 squares? 4 by 4? 5 by 5? If you want to answer these questions, answer them in the problems posted with this set.

Once you solve those, try to solve this question. How many unique magic squares are possible which have a side length of nn where n>5n > 5?

Solve this and you may become one of the most famous mathematicians of all time. This is because no one has solved it.

Here is a 4 by 4 magic square but it is a special magic square.

71211421381116310596154\begin{array} {c|c|c|c} 7 & 12 & 1 & 14\\ \hline 2 & 13 & 8 & 11\\ \hline 16 & 3 & 10 & 5\\ \hline 9 & 6 & 15 & 4 \end{array}

Each row, column and diagonal have a sum of 34 but all the 2 by 2 squares have a sum of 34. These sort of magic squares are called most-perfect magic squares.

Problem 2: Determine how many different 36 by 36 most-perfect magic squares are possible.

Note by Sharky Kesa
7 years, 3 months ago

No vote yet
1 vote

  Easy Math Editor

This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.

When posting on Brilliant:

  • Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
  • Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
  • Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
  • Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold

- bulleted
- list

  • bulleted
  • list

1. numbered
2. list

  1. numbered
  2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1

paragraph 2

paragraph 1

paragraph 2

[example link]( link
> This is a quote
This is a quote
    # I indented these lines
    # 4 spaces, and now they show
    # up as a code block.

    print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in \( ... \) or \[ ... \] to ensure proper formatting.
2 \times 3 2×3 2 \times 3
2^{34} 234 2^{34}
a_{i-1} ai1 a_{i-1}
\frac{2}{3} 23 \frac{2}{3}
\sqrt{2} 2 \sqrt{2}
\sum_{i=1}^3 i=13 \sum_{i=1}^3
\sin \theta sinθ \sin \theta
\boxed{123} 123 \boxed{123}


Sort by:

Top Newest

Great explanation!!

milind prabhu - 7 years, 3 months ago

Log in to reply

Please define what are considered different magic squares in your problems.

It would also be helpful to provide a link from this problems back to this note.

Calvin Lin Staff - 7 years, 2 months ago

Log in to reply

For 4 by 4 : S-34=4q+r ..... I think it is just like a Sudoku that n appears once and only once in each row, column and section. Hmmmm Am I right ? please correct me . :D I'm interested in Magic Squares. Thankssss

rein esgue - 6 years, 1 month ago

Log in to reply


Problem Loading...

Note Loading...

Set Loading...