Books about
Magic Squares
at Amazon.Canada


Amazing Math Whiz

products available:

Buttons, Magnets,
t-shirts, Tote bags,
Teddy bears, & more

Books about Magic Squares at Amazon.com

Be sure to visit the
Magic Squares Main Menu
for other topics including Irregular Squares, Algebraic Squares and more.

Other 4N+2 Magic Square Sizes:
Detailed Directions for: 6x6 * 10x10 * 14x14 *
and many more examples
* 18 * 22 * 26 * 30 * 34 * 38 * 42 * 46 * 50 * 54 * 58 *
* 62 * 66 * 70 * 74 * 78 * 82 * 86 * 90 * 94 * 98 *

A 34x34 Magic Square

Scroll down to see a magic square
in which all rows, columns, and both diagonals
add up to the same magic sum (19669)

A Magic Square is a square of numbers in which every row, every column, and both diagonals add up to the same number. This number is often called the magic sum. The 34 by 34 magic square shown below has a magic sum equal to 19669.

Though magic squares can be made with non-consecutive and non-regular sequences, they are usually seen made up of consecutive numbers, possibly because it is harder to be consecutive.

The method described below can be used to create all 4N+2 even-size squares that are at least 10x10 in size, where the size is equal to double any odd number. This is just one method for creating magic squares, there are many other methods, just as there are millions and millions and millions (many millions if not billions or trillions) of these squares to be found.

Read more about Magic Squares

If you'd like to read more about magic squares, click one of these links to look for books about Magic Squares at Amazon.com, at Amazon.canada, and at Amazon.co.UK.

Books about
Magic Squares
at Amazon.co.UK


Support Our Site
by purchasing our
Amazing Math Whiz
products

and other
Amazing Messages



How to Create a 34x34 Magic Square
with a Magic Sum of 19669

The method described on this page can be used to create 14x14, 18x18 and larger 4N+2 magic squares

Steps:

  1. Create an overlay 34x34 Magic Square grid consisting only of the numbers 0, 1, 2 and 3
  2. Create a 17x17 Magic Square (half the size of our final 34x34 square) that starts with the number 1
  3. Double the size of that 17x17 Magic Square, quadrupling every number, to create a 34x34 magic square that has each number in it four times.
  4. Subtract the numbers in the overlay grid from the quadrupled numbers in the doubled square to make your new square.
    Alternate directions: You may create a 17x17 Magic Square that starts with zero in step 2 if you add the two squares together in step 4.

Step One: Create a 34x34 Magic Square overlay grid

Since we are going to create a magic square that contains each number four times, we need to also create a magic square consisting only of the numbers 0, 1, 2 and 3, and we need to make sure that each 2x2 part of this overlay grid contains all four numbers.

When I created my 6x6 Magic Square page, I knew that one method of creating these squares was to simply double the size of the 3x3 magic square, quadrupling its values, then use brute-force to find an overlay pattern that satisfied my requirements (every number from 0 to 3 overlaying each identical number in the quadrupled square, in such a way that every row, column and diagonal added up to 9). Imagine my surprise when I found over a million different overlay squares. You can see information about how I brute-forced that solution at www.mazes.com/magic-squares/magic-06.html.

Obviously, I do not want to brute-force a 10x10 or larger 4N+2 magic square (there must be billions and billions of answers), so I decided to seek out a method of creating an overlay grid that will work with all 4N+2 squares larger than 6x6. I decided to use binary numbers as part of my search for a universal method. Binary (or base two) numbers, as many math students know, use the digits 0 and 1 to represent any number. The binary equivalents for the decimal (or base 10) numbers 0, 1, 2 and 3 are 00, 01, 10, and 11. Since half of each binary number represents whether or not the 1 is present, and half of each number represents whether or not the two is present, I decided to create two temporary overlay grids, one for the value 1, and one for the value 2, so that each square was independently magic.

Also, I wanted to make it easy for you, my visitor, to use the same method with pencil and paper, so I wanted to use basically the same grid twice, just doubling the "one" grid to get the "two" grid, with a simple rotation to make sure that the sum of the values will be different.

Create a 34x34 Magic Square of all 1's and 0's

Here are the steps to create the first grid (based on the pattern '1110000000000000000011111111111111'):
  • Draw a 34x34 grid on your paper.
  • Put the number 1 into the first column of the first 3 rows of your grid
  • Put the number 0 into the first column of the next 17 rows of your grid
  • Put the number 1 into the remaining spaces of the first column.
  • Double-check your work. You should now have 17 1's and 17 0's in the first column, which I have bolded so you can see it clearly. As a further double-check, you have used the digits in the pattern '1110000000000000000011111111111111')
  • For the second column, put the opposite number ... if there is a 1 in the first column, put 0 in the second column, and vice-versa.
  • Double-check. The first column and the second column number should add up to 1.
  • Copy the first column to the third column, and copy the second column to the fourth column.
  • Turn the first two columns upside-down and copy them into the fifth and sixth columns.
  • Copy the fifth and sixth columns to the rest of the square.
  • Double-check. Each row, each column and both diagonals should have exactly 17 1's in it.

Create a 34x34 Magic Square of all 2's and 0's

Here are the steps to create the second grid:

  • Rotate the first grid 90 degrees counter-clockwise and
  • double all the numbers.
  • You can see how the bolded left column has become the bolded bottom row after rotation.

Add Magic Square 1 to Magic Square 2

And, of course, here are the steps to create the third grid, which is your overlay grid:

  • Add the two squares together
  • You should end up with every 2x2 block containing all four digits, 0, 1, 2 and 3.
  • (I have bolded alternating 2x2 blocks so that you can see this more easily.)
  • and, if you have done the work properly, each row, each column, and both diagonals add up to the same magic sum.
  • Lay this grid aside for a few minutes. You won't need it until after you've finished your quadrupled grid

Step Two: Create a 17x17 Magic Square

Next, you need to create a magic square that is half the size as your desired square. Since this half-sized square is odd (17x17), it is easy to create. Just follow the method you see described at the bottom of every odd square page at www.mazes.com/magic-squares. Here is one such square, in which I started with the number 1 in the middle of the top row, then moved one square up one and two squares to the right after each move, except when the next move would be blocked, in which case I dropped down one for the next number.

I deliberately used a different magic square than the one you learned in school, just because I enjoy being different.

Now that you have an odd square, we are ready for the next step

Step Three:  Double the size of the 17x17 magic square
and quadruple all the numbers

Draw a 34x34 grid, then, for each number in the 17x17 magic square:
  • Multiply the number times four (quadruple it), and
  • Write that number four times, into a 2x2 area of the new grid that corresponds to the position of the original number in the 17x17 square. (I have bolded alternating 2x2 blocks so you can see how the 17x17 square has expanded into a 34x34 square.)

Step Four: Put the Quadrupled and the Overlay grids together

This last part should be simple.
  • If the smallest number in the quadrupled grid is 4, use subtraction: Quadrupled minus Overlay = Magic Square
    The lowest number in the new Magic Square will be one, just like in the original 17x17 magic square.
     
  • If the smallest number in the quadrupled grid is 0, use addition: Quadrupled plus Overlay = Magic Square
    The lowest number in the new Magic Square will be zero, just like in the original.
We have many
Amazing Message
stores.

Click each image to see
other amazing product choices

(each product imprinted
with an actual
solvable maze puzzle



Amazing Teacher



Amazing Student



Amazing Student



Amazing Reader



Amazing Artist

See our choices @
www.mazes.com/cp



Please
Support Our Site



buy
Amazing Math Whiz
products from
our online store



Many other
Amazing Messages
are available


Please visit
www.MAZES.com/cp/
for details

A 34-by-34 Magic Square

(Magic Sum = 19669)

925924385384100110004614601077107653753611531152615614766236228382699698159158775774235234851848309308
927926387386100310024634621079107853953811551154613612546216208180697696157156773772233232849850311310
997996457456107310725335321149114860960869686196187978695694155154771770231230847846307306923920381380
998999458459107510745355341151115061161071706176167776693692153152769768229228845844305304921922383382
106810695285291145114460560465646816807372691690151150767766227226843842303302919918379378995992453452
107010715305311147114660760667666836827574689688149148765764225224841840301300917916377376993994455454
11401141600601616067767613713668568414514476376222322283983829929891591437537499199045145010671064525524
11421143602603636267967813913868768614714676176022122083783629729691391237337298998844944810651066527526
56576726731331327497481411407577562172168358342952949119103713709879864474461063106252352211391136597596
58596746751351347517501431427597582192188338322932929099083693689859844454441061106052152011371138599598
12812974474520520475375221321282982828928890790636736698398244344210591058519518113511345955945552669668
13013174674720720675575421521483183029129090590436536498198044144010571056517516113311325935925354671670
20020181681720920882582428528490190036136097997843943810551054515514113111305915905150667666127124741740
20220381881921121082782628728690390236336297797643743610531052513512112911285895884948665664125126743742
27227382082128028189689735635797297343243310501051510511112611275865874647662663122123738739198197812813
27427582282328228389889935835997497543443510481049508509112411255845854445660661120121736737196199814815
27627789289335235396896942842910441045504505112211235825834243658659118119734735194195810811270269884885
27827989489535435597097143043110461047506507112011215805814041656657116117732733192193808809268271886887
34834996496542442510401041500501111611175765773839654655114115730731190191806807266267882883342341888889
35035196696742642710421043502503111811195785793637652653112113728729188189804805264265880881340343890891
42142010371036496497111211135725733233648649110111726727186187802803262263878879338339954955346345960961
42342210391038498499111411155745753435650651108109724725184185800801260261876877336337952953344347962963
49349211091108568569282964464510410572072118218379879925825987487533433595095141041195895941841710321033
49549411111110570571303164664710610772272318018179679725625787287333233394894940840995695741641910341035
5655642524640641100101716717176177792793254255870871330331946947406407102210234144151030103149048911041105
5675662726642643102103718719178179794795252253868869328329944945404405102010214124131028102948849111061107
63763697967127131721737887892482498648653263279429434024031018101947847910261027486487110211035625612021
63963899987147151741757907912502518668673243259409414004011016101747647710241025484485110011015605632223
70970816916878478524424586086132032193693739839910141015474475109010914824831098109955855918196346339293
71171017117078678724624786286332232393893939639710121013472473108810894804811096109755655716176326359495
78178024124285885931831993493539439510101011470471108610875465471092109355255312136286298889704705164165
78378224324085785631731693393239339210091008469468108510845455441095109455555415146316309190707706167166
853852313314931930391390100710064674661083108254354211591158551550986256248584701700161160777776237236
85585431531292992838938810051004465464108110805415401157115654954811106276268786703702163162779778239238

This Magic Square was created by John Knoderer, a webmaster and computer programmer who is available to telecommute to your location. (In other words, John would be delighted to create puzzles for your website or do other amazing work for you on a contract basis.)

If you found this page useful, and especially if you printed this page to distribute to students, we invite you to send a suitable donation to John (address below) or PayPal your donation to Donations (at) Mazes.com.

You can find more of John's puzzling materials at www.MAZES.com and at www.GodLovesEveryone.org. You can reach John at Webmaster (at) Mazes.com.

Fine Print: If you print and duplicate these magic squares for classroom use or other multiple copy use, please send a payment of $(however much you think this is worth) to the author. John puts a GREAT DEAL of time into creating and posting materials to the internet for you to use (and enjoy). Your donations will help pay bills and keep new materials coming your way.

Send your donations to:

John Knoderer
www.MAZES.com
P O Box 235
Sulphur Springs, AR 72768 USA

www.MAZES.com
www.GodLovesEveryone.org
www.DriverExam.org

E-mail the webmaster: webmaster (at) mazes.com

The contents of this page are copyright 2005 by the author. However, we recognize that teachers may wish to download and use our materials with their students. We give that permission, as long as the teacher sends what they believe to be a fair donation to the author each time the material is used.