The magic sum of a 4 by 4 square
A 4 by 4 magic square contains each of the numbers 1 to 16 exactly once, with every row, every column and both main diagonals adding to the same total.
- What is that total?
- Find the formula for the magic sum of an n by n square using 1 to n squared, and evaluate it for n = 5 and n = 10.
- Give an example of a 4 by 4 magic square.
Show a hint
Add up all the numbers in the square and share the total equally among the rows.
Your answer
Solving needs a free account
Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.
Discussion
Sign in to join the discussion · reading is open to everyone
💡 Discussion rules
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussion…
Learn the concepts
The theory behind this question.
Related questions
Why the centre of a 3 by 3 magic square is always 5The book that took 792 digits to numberHow many chimes in a day?Cut the clock face into three parts with equal sumsFour pieces of a clock face with equal sums?
All questions →