Amazing Math Whiz
Buttons, Magnets, t-shirts,
Tote bags, Teddy bears, mugs,
Clocks, pillows, and more
Books about Magic Squares at Amazon.com

Books about Magic Squares at Amazon.Canada and at Amazon.co.UK


Support Our Site
by purchasing our
Amazing Math Whiz
products

other
Amazing Messages
are available


www.MAZES.com * Magic Squares Index * Properties of a Perfect Square * Almost Perfect Magic Trick * Perfect Magic Square Trick for Even Sums * Odd Perfect Squares? * Usage Agreement & Donations Deeply Appreciated

Magic Square Magic Trick Secrets Revealed

276813
-3241617
1914021
1110303

This perfect magic square was made using
16, 14 and 24
as the first three numbers (inside numbers),
27 as the fourth number (top left number),and
24 as the first temporary sum.
All the rest of the numbers were calculated,
using methods described on this web page.

This web page will teach you how to create a perfect magic square
using any three numbers of your choice as the first three numbers.

You can find full and complete directions further down on this page,
but we will start with the quick and very short directions.

Short Directions

Follow these directions and watch how it changes the square shown above

1. Pick three different numbers of your choice to go inside the square
then click Please use my three numbers.

Three Numbers of Your Choice
A =     B =     C =

d  e
 2416 
 14h 
f  g

2. Pick your choice of value for the top left corner, but do not choose
any of these values: 6, 15, 18, 19, 20, 22, 26.

Fourth Number of Your Choice?
D =

27  e
 2416 
 14h 
f  g

3. All the remaining numbers on the two diagonals will be calculated.
Read the detailed directions further down on this page
to see exactly how to calculate them.

27  13
 2416 
 140 
11  3

4. Pick a temporary sum, which will be the sum of the top two numbers
in the first and third columns, and the sum of the
bottom two numbers in the other two columns.
But do not choose any of these values:
-73, 3, 6, 14, 16, 17, 19, 22, 23, 25, 27, 28, 29, 30, 32, 34, 35, 38, 40, 41, 43, 51, 54, 130.

Your choice for
first temporary sum =

Subtract this temporary sum from the Magic Sum to get the other temporary sum
and write them above and below the columns as shown:

24302430
27  13
 2416 
 140 
11  3
30243024

5. Finish the square by subtracting existing numbers from temporary sums
to get the remaining numbers.
Here is the final square.

276813
-3241617
1914021
1110303

Very Detailed Directions

How to make a Perfect Magic Square
that contains three audience-picked numbers

This page describes a method that you can use as part of a magic trick for creating Perfect Squares. It is a harder method to learn than the 'Almost-Perfect Magic Square Magic Trick' described here. But with a little bit of practice, you will find that this is a relatively easy trick to use on stage or with small groups, especially if you practice picking a fourth number that is compatible with the first three numbers.

Basically, this trick allows you to create a perfect magic square that contains any three (different) numbers picked by members of your audience. You can even let an audience member choose a fourth number, as long as they don't pick one of the numbers you calculate, from the first three numbers, as being incompatible.

You can see more detail about why this trick works by looking at our Odd Perfect Magic Square web page, a page that we created to prove why it is impossible to create a perfect magic square that has an odd magic sum. (Only even magic sums are possible when you create a perfect magic square containing only whole (integer) numbers.

Summary of one creation strategy
(further down, I will describe a slightly different strategy in much greater step-by-step detail)

The first eight numbers in our perfect square
and how they relate to each other

Here is a diagram showing the first eight numbers that we will put into our our perfect magic square (in the order that we will choose or figure them.

d  e
 ca 
 bh 
f  g

Special relationships among the first eight numbers

There is a very special relationship between these numbers in a perfect square: You can see PROOF that these relationships must be true on my Odd Perfect Square page.

Algebraic Perfect Square

Here are the first eight numbers of our perfect magic square using formulas:

D  A+C-D
 CA 
 BA+B+C-2D 
B+C-D  A+B-D

And here is the entire perfect magic square using algebraic formulas, assuming that "s1" and "s2" are two numbers that add up to the magic sum.

Ds2-Cs1-AA+C-D
s1-DCAs2-A-C+D
s2-B-C+DBA+B+C-2Ds1-A-B+D
B+C-Ds1-Bs2-A-B-C+2DA+B-D

Detailed information about picking these two temporary sums in such a way to reduce the chances of getting duplicate numbers is given further down in the step-by-step directions.

But ... you do NOT need to remember the formulas in either of these algebraic squares. I just present them here so that you can see how these eight numbers work together and why using two temporary sums works so well in the final steps.

The step-by-step directions that I will demonstrate below are much easier to understand than these formulas, so now that you've seen them, just forget them, and keep reading.

Let your audience pick your first three numbers

The first three numbers you put into your perfect magic square can be any three different numbers of your choice. If you would like to tell me what three numbers to use on this page, please put three numbers of your choice into this box:

Three Numbers of Your Choice
A =     B =     C =

Of course, if you are learning this trick to use in front of an audience, you can let one or three of your audience members pick the numbers. You could even use that beach ball method of picking the three people who will give you their favorite numbers (tossing the ball from person to person, whoever catches the ball gives you a number). Or, if you wanted to, you could pick one person in the audience, ask their birthday, and use those three numbers to create it. There are lots of ways to come up with the first three numbers. (One thing that you'll need to decide is how high to allow these numbers to go. I suggest limiting it to numbers up to 31 or so, because otherwise, the magic sum might get too high to do arithmetic in your head. If you limit the first three numbers to about 20 or so, you will find it easier to keep the magic sum under 100. Just remember that the magic sum will be equal to double the sum of the three audience numbers minus double the number you choose, but you don't want to use this fact to pick a large fourth number to bring down the magic sum because that might mean having to deal with negative numbers in multiple positions. (I usually try to pick my fourth number such that it is less than the sum of the two smallest audience numbers.)

Let's demonstrate the process using 16, 14 and 24 as our three numbers, and let's put them into our square in place of the letters a, b and c.

d  e
 2416 
 14h 
f  g

There are a few restrictions for the fourth number

We can't let an audience member pick our fourth number, unless we first tell them what values we are not allowed to use. In general, I expect that you'll generally want to pick your own fourth number. Here are the values that we cannot allow our fourth number to be equal to:

Pick any value for D that is not equal to any of these restricted values. Here are some of the values that you can choose from for D: 0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 21, 23, 24, 25, 27, ... (there are many more).

If you want to choose a value for this fourth number that will always work, and if you don't mind if some of your calculated numbers are negative, you could always get away with using D=A+B+C; or use D=A+B-C+1 (where C is the smallest of the first three numbers). However, when you pick a D value that is reasonably small, which means you have to make sure it's not one of the forbidden values, you may end up with fewer negative numbers in your final result. As I mentioned above, I usually try to pick D such that it is less than the sum of the two smallest audience numbers.

Can you choose your own magic sum?

You can either pick from certain values for your fourth number, or you can pick what you want your (even) magic sum to be, then see if it's going to be possible by checking to see if the value of D that would be required to make that sum is an allowed value.

What is the Magic Sum equal to?

Add the first three numbers that your audience members picked, then subtract the fourth number, then double that result. That total will represent the magic sum for the square that you are creating. Here is the formula:

Magic Sum = (a+b+c-d) * 2
or
Magic Sum = 2A + 2B + 2C - 2D

If you want to pick a meaningful Magic Sum, add the three audience-selected numbers, double the sum, then look at the allowable values for the fourth number, subtract double each of those numbers from the doubled sum, then use the value for D that makes the nicest magic sum.

Our Fourth Number

Let's use 27 for our fourth number. If you would like to use a different value for our fourth number, please put that number into this box, then click the button. (If you enter an invalid number, we will pick a random number for your fourth number.)

Fourth Number of Your Choice?
D =

Using 27 as our fourth number gives us 54 as our Magic Sum because (16+14+24-27)*2=54.

27  e
 2416 
 14h 
f  g

Special Relationships Revisited

Now, we can take advantage of the special relationships we talked about earlier to help us figure out the next four values for our perfect square. First, I'll give the equation from our prior discussion, then I'll isolate our new value by subtracting the other number from both sides of the equation:

The top two rows are equal
D + E = C + A

The sum of the top two corners must be equal to the sum of the two inside numbers in the second row. If you subtract D from both sides of this equation, you get: E=C+A-D.

Calculate: e = 24+16-27 = 13 and put that value into your square.

27  13
 2416 
 14h 
f  g

The left two columns are equal
D + F = C + B

The sum of the two left corners must be equal to the sum of the two inside numbers in the second column. If you subtract D from both sides of this equation, you get F=C+B-D.

Calculate: f = 24+14-27 = 11 and put that value into the proper position.

27  13
 2416 
 14h 
11  g

Sum of opposite corners equals Sum of other diagonal's inner numbers
D + G = A + B
(or: the four corners add up to the magic sum)

The sum of two corners on one diagonal must be equal to the sum of the two inner numbers on the other diagonal. Subtract D from both sides of this equation and you get: G=A+B-D.

Calculate: g = 16+14-27 = 3 and put that value where it belongs.

Alternate Directions: Subtract the other three corners from the magic sum to get the fourth corner: Calculate: 54-27-13-11=3.

27  13
 2416 
 14h 
11  3

The bottom two rows are equal
B + H = F + G
(or: the four inside numbers add up to the magic sum)

The sum of the bottom two corners must be equal to the sum of the two inside numbers in the third row. If you subtract B from both sides of this equation, you get: H=F+G-B.

Calculate: h = 11+3-14 = 0 and put that result into the square.

Alternate Directions: Subtract the other three inside numbers from the magic sum to get the fourth inside number: Calculate: 54-16-14-24=0.

27  13
 2416 
 140 
11  3

Other Interesting Properties of Perfect Squares
that will help us find the other eight values
and finish the perfect magic square

Here are a few other interesting properties of perfect magic squares:

We can take advantage of this fact to make it easier to pick our last 8 numbers

Two Temporary Sums are a fantastic shortcut

Let's use 24 as our first temporary sum. If you would like to use a different temporary sum, you may put that value into this box, then click the button. If you put in a value that would result in an invalid square (because of duplicate numbers), I will change your number to a random number of my choice.

Your choice for
first temporary sum =

24302430
27  13
 2416 
 140 
11  3
30243024

24302430
2730-2424-1613
24-27241630-13
30-1114024-3
1124-1430-03
30243024

Here is our final Perfect Magic Square

276813
-3241617
1914021
1110303

User Agreement
and
Please support
the Author with your donations

The author puts a great deal of time and effort into creating these web pages. You are welcome to use the information on this page in any non-profit way that you wish, but if you use our information in any way as part of a profit operation, you are required to send an appropriate donation as a large token of your appreciation. (Please be as generous as you can.) If you use this method as part of a regular act, or if you use it on any semi-regular basis, you should make donations on a regular basis.

In any case, if you enjoy what you learn from my web pages, please make a donation. Web pages are our main source of income, and your donations help keep them free for all to view.



Donations may be mailed to:
Arleen Knoderer, John, and David Hrbacek
P O Box 235
Sulphur Springs, AR 72768-0235 USA


Or you can make donations via PayPal by clicking here