Unlocking the Mystery of Magic Squares: A Math Trick to Amaze and Delight!
- asaf ferber
- Jan 7, 2025
- 3 min read
Magic squares have fascinated mathematicians and magicians alike for centuries. These seemingly simple grids hold an enchanting property: the numbers in each row, column, and diagonal always sum to the same value, known as the magic number (we call this number M for, mmm, Magic). But what if you could turn this mathematical marvel into a fun and interactive magic trick? Let’s explore how you can create your own magic square, perform the trick, and even find a universal formula for the magic number!

The Magic Trick: Predict the Magic Number!
Here’s how you can dazzle your friends, family, or students with a clever number trick based on magic squares.
Step-by-Step Trick:
Create a Magic Square Use the "Siamese method" (details below) to build a magic square. The sum of each row, column, and diagonal will be the magic number M.
Perform the Trick Ask someone to pick any number x, then perform the following calculations:
Multiply x by 2.
Add 4M to the result (you already know M).
Multiply the sum by 5.
Divide the result by 10.
Subtract the original number x.
Divide the remainder by 2.
Voilà! The result will always be the magic number M.
Example:
Suppose you’ve created a 3×3 magic square, and M=15. Here’s how the trick unfolds:
Pick a number: Let’s say your friend chooses x=7.
Multiply x by 2: 7×2=14.
Add 4M: 14+4×15=14+60=74.
Multiply by 5: 74×5=370.
Divide by 10: 370÷10=37.
Subtract x: 37−7=30.
Divide by 2: 30÷2=15.
The result is M=15, the magic number of your square! It’s like reading their mind, but the secret lies in simple arithmetic cleverly designed to work every time.
Building a Magic Square: The Siamese Method
To perform the trick, you need a magic square. Here’s how to construct one for any odd-sized grid using the Siamese method:
Steps to Construct:
Start in the Middle of the Top Row: Place the number 1 in the center of the top row.
Move Up-Right: Move diagonally up and to the right for the next number. If you go:
Above the top row, wrap around to the bottom row.
Outside the rightmost column, wrap around to the leftmost column.
Occupied Square Rule: If the square is already occupied, move directly below the last number placed.
Repeat Until Complete: Continue filling numbers using these rules.
Example: A 5×5 Magic Square
Place 1 in the center of the top row.
Move up-right to place 2. Since it’s outside the grid, wrap around to the bottom row.
Continue following the rules. If a square is occupied, drop directly below the last number.
This method works for any odd nn, creating a magic square where the sum of each row, column, and diagonal is equal to the magic number M.
The Magic Number Formula
Curious about the magic number MM? It can be calculated using a simple formula:
M=n(n^2+1)÷2.
Where n is the size of the grid (e.g., n=3 for a 3×3 magic square).
Why Does This Work?
The sum of all numbers in the square is Sum=1+2+3+⋯+n^2=n^2(n^2+1)÷2.
Each row, column, and diagonal sums to M, and there are n rows.
Dividing the total sum by n gives M, the magic number.
A Blend of Math and Magic
By combining the beauty of magic squares with a little arithmetic sleight of hand, you can create a trick that’s as entertaining as it is educational. Whether you’re teaching kids, performing for friends, or just exploring the wonders of mathematics, this activity is sure to leave a lasting impression.
So, grab a grid, some numbers, and let the magic begin!



Comments