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 58x58 Magic Square

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

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 58 by 58 magic square shown below has a magic sum equal to 97585.

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 58x58 Magic Square
with a Magic Sum of 97585

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

Steps:

  1. Create an overlay 58x58 Magic Square grid consisting only of the numbers 0, 1, 2 and 3
  2. Create a 29x29 Magic Square (half the size of our final 58x58 square) that starts with the number 1
  3. Double the size of that 29x29 Magic Square, quadrupling every number, to create a 58x58 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 29x29 Magic Square that starts with zero in step 2 if you add the two squares together in step 4.

Step One: Create a 58x58 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 58x58 Magic Square of all 1's and 0's

Here are the steps to create the first grid (based on the pattern '1110000000000000000000000000000011111111111111111111111111'):
  • Draw a 58x58 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 29 rows of your grid
  • Put the number 1 into the remaining spaces of the first column.
  • Double-check your work. You should now have 29 1's and 29 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 '1110000000000000000000000000000011111111111111111111111111')
  • 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 29 1's in it.

Create a 58x58 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 29x29 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 (29x29), 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 29x29 magic square
and quadruple all the numbers

Draw a 58x58 grid, then, for each number in the 29x29 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 29x29 square. (I have bolded alternating 2x2 blocks so you can see how the 29x29 square has expanded into a 58x58 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 29x29 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 58-by-58 Magic Square

(Magic Sum = 97585)

261726169979962741274011211120286528641245124429892988136913683113311214931492323732361617161633613360174317427617511750131130187518742552541999199837937821232122503502224722466276262371237075175024952492873872
261926189999982743274211231122286728661247124629912990137113703115311414951494323932381619161833633362174117405417491748129128187318722532521997199637737621212120501500224522446256242369236874974824932494875874
2737273611171116286128601241124029852984136513643109310814891488323332321613161233573356173717361171161747174612712618711870251250199519943753742119211849949822432242623622236723667477462491249087187026152612993992
2738273911181119286328621243124229872986136713663111311014911490323532341615161433593358173917381191181745174412512418691868249248199319923733722117211649749622412240621620236523647457442489248886986826132614995994
2856285712361237298129801361136031053104148514843229322816091608335333521733173211311218571856121120186718662472461991199037137021152114495494223922386196182363236274374224872486867866261126109919902735273211131112
2858285912381239298329821363136231073106148714863231323016111610335533541735173411511418591858123122186518642452441989198836936821132112493492223722366176162361236074174024852484865864260926089899882733273411151114
2976297713561357310131001481148032253224160516043349334817291728109108185318522332321861186024124019871986367366211121104914902235223461561423592358739738248324828638622607260698798627312730111111102855285212331232
2978297913581359310331021483148232273226160716063351335017311730111110185518542352341863186224324219851984365364210921084894882233223261361223572356737736248124808618602605260498598427292728110911082853285412351234
3096309714761477322132201601160033453344172517241051041849184822922819731972237236198119803613602107210648748622312230611610235523547357342479247885985826032602983982272727261107110628512850123112302975297213531352
3098309914781479322332221603160233473346172717261071061851185023123019751974239238198319823633622105210448548422292228609608235323527337322477247685785626012600981980272527241105110428492848122912282973297413551354
3216321715961597334133401721172010110018451844225224196919683493481977197635735621012100481480222722266076062351235073173024752474855854259925989799782723272211031102284728461227122629712970135113503095309214731472
3218321915981599334333421723172210310218471846227226197119703513501979197835935821032102483482222522246056042349234872972824732472853852259725969779762721272011011100284528441225122429692968134913483093309414751474
33363337171617179796184118402212201965196434534420892088353352209720964774762221222060160023472346727726247124708518502595259497597427192718109910982843284212231222296729661347134630913090147114703215321215931592
33383339171817199998184318422232221967196634734620912090355354209920984794782223222260360223452344725724246924688498482593259297397227172716109710962841284012211220296529641345134430893088146914683213321415951594
92931836183721721619611960341340208520844654642093209247347222172216597596234123407217202467246684784625912590971970271527141095109428392838121912182963296213431342308730861467146632113210159115903335333217131712
94951838183921921819631962343342208720864674662095209447547422192218599598234323427237222465246484584425892588969968271327121093109228372836121712162961296013411340308530841465146432093208158915883333333417151714
21221319561957337336208120804614602205220446946822132212593592233723367177162461246084184025872586967966271127101091109028352834121512142959295813391338308330821463146232073206158715863331333017111710918818331832
21421519581959339338208320824634622207220647147022152214595594233923387197182463246284384225852584965964270927081089108828332832121312122957295613371336308130801461146032053204158515843329332817091708899018351834
33233320762077457456220122005815802209220858958823332332713712245724568378362581258096196027072706108710862831283012111210295529541335133430793078145914583203320215831582332733261707170687861831183021120819531952
33433520782079459458220322025835822211221059159023352334715714245924588398382583258296396227052704108510842829282812091208295329521333133230773076145714563201320015811580332533241705170485841829182820921019551954
45245321962197577576232123205855842329232870970824532452833832257725769579562701270010811080282728261207120629512950133113303075307414551454319931981579157833233322170317028382182718262072061951195033132820732072
45445521982199579578232323225875862331233071171024552454835834257925789599582703270210831082282528241205120429492948132913283073307214531452319731961577157633213320170117008180182518242052041949194832933020752074
57257323162317697696232523247057042449244882982825732572953952269726961077107628212820120112002947294613271326307130701451145031953194157515743319331816991698797818231822203202194719463273262071207045144821932192
57457523182319699698232723267077062451245083183025752574955954269926981079107828232822120312022945294413251324306930681449144831933192157315723317331616971696777618211820201200194519443253242069206844945021952194
69269324362437701700244524448258242569256894994826932692107310722817281611971196294129401321132030673066144714463191319015711570331533141695169475741819181819919819431942323322206720664474462191219057156823132312
69469524382439703702244724468278262571257095195026952694107510742819281811991198294329421323132230653064144514443189318815691568331333121693169273721817181619719619411940321320206520644454442189218856957023152314
81281324402441820821256425659449452688268910681069281228131192119329362937131613173060306114401441318631871566156733103311169016917071181418151941951938193931831920622063442443218621875665672310231169068924322433
81481524422443822823256625679469472690269110701071281428151194119529382939131813193062306314421443318431851564156533083309168816896869181218131921931936193731631720602061440441218421855645652308230968869124342435
81681725602561940941268426851064106528082809118811892932293313121313305630571436143731803181156015613306330716861687666718101811190191193419353143152058205943843921822183562563230623076866872430243181080925522553
81881925622563942943268626871066106728102811119011912934293513141315305830591438143931823183156215633304330516841685646518081809188189193219333123132056205743643721802181560561230423056846852428242980881125542555
93693726802681106010612804280511841185292829291308130930523053143214333176317715561557330033011680168162631806180718618719301931310311205420554344352178217955855923022303682683242624278068072550255193092925562557
93893926822683106210632806280711861187293029311310131130543055143414353178317915581559330233031682168360611804180518418519281929308309205220534324332176217755655723002301680681242424258048052548254992893125582559
10571056280128001180118129242925130413053048304914281429317231731552155332963297167616775657180018011821831926192730630720502051430431217421755545552298229967867924222423802803254625479269272670267193493326762677
10591058280328021182118329262927130613073050305114301431317431751554155532983299167816795859180218031801811924192530430520482049428429217221735525532296229767667724202421800801254425459249252668266993293526782679
1177117629212920130013013044304514241425316831691548154932923293167216735253179617971761771920192130230320462047426427217021715505512294229567467524182419798799254225439229232666266710461047267426751054105327962797
1179117829232922130213033046304714261427317031711550155132943295167416755455179817991781791922192330030120442045424425216821695485492292229367267324162417796797254025419209212664266510441045267226731052105527982799
1297129630413040142014213164316515441545328832891668166948491792179317217319161917296297204020414224232166216754654722902291670671241424157947952538253991891926622663104210432786278710501051279427951174117329162917
1299129830433042142214233166316715461547329032911670167150511794179517417519181919298299204220434204212164216554454522882289668669241224137927932536253791691726602661104010412784278510481049279227931172117529182919
1417141631613160154015413284328516641665444517881789168169191219132922932036203741641721602161542543228622876666672410241179079125342535914915265826591038103927822783116211632790279111701171291429151294129330363037
1419141831633162154215433286328716661667464717901791170171191419152942952038203941841921622163540541228422856646652408240978878925322533912913265626571036103727802781116011612788278911681169291229131292129530383039
1537153632813280166016614041178417851641651908190928828920322033412413215621575365372280228166266324062407786787253025319109112654265510341035277827791158115929022903116611672910291112901291303430351414141331563157
1539153832833282166216634243178617871661671910191129029120342035414415215821595385392282228366066124042405784785252825299089092652265310321033277627771156115729002901116411652908290912881289303230331412141531583159
1657165637361780178116016119041905284285202820294084092152215353253322762277656657240024017827832526252790690726502651103010312774277511541155289828991278127929062907128612873030303114101411315431551534153332763277
1659165839381782178316216319061907286287203020314104112154215553453522782279658659240224037807812524252590490526482649102810292772277311521153289628971276127729042905128412853028302914081409315231531532153532783279
1777177615715619001901280281202420254044052148214952852922722273652653239623977767772520252190290326462647102610272770277111501151289428951274127530183019128212833026302714061407315031511530153132743275165416533233
1779177815915819021903282283202620274064072150215153053122742275654655239823997787792522252390090126442645102410252768276911481149289228931272127330163017128012813024302514041405314831491528152932723273165216553435
1897189627727620202021400401214421455245252268226964864923922393772773251625178968972640264110221023276627671146114728902891127012713014301513941395302230231402140331463147152615273270327116501651303117741773152153
1899189827927820222023402403214621475265272270227165065123942395774775251825198988992642264310201021276427651144114528882889126812693012301313921393302030211400140131443145152415253268326916481649282917721775154155
2017201639739621402141520521226422656446452388238976876925122513892893263626371016101727602761114211432886288712661267301030111390139131343135139813993142314315221523326632671646164726271770177115015118941893272273
2019201839939821422143522523226622676466472390239177077125142515894895263826391018101927622763114011412884288512641265300830091388138931323133139613973140314115201521326432651644164524251768176914814918921895274275
2137213651751622602261640641238423857647652508250988888926322633101210132756275711361137288028811262126330063007138613873130313115101511313831391518151932623263164216432223176617671461471890189127027120142013392393
2139213851951822622263642643238623877667672510251189089126342635101410152758275911381139288228831260126130043005138413853128312915081509313631371516151732603261164016412021176417651441451888188926826920122015394395
2257225663763623802381760761250425058848852628262910081009275227531132113328762877125612573000300113821383312631271506150732503251151415153258325916381639181917621763142143188618872662672010201139039121342133512513
2259225863963823822383762763250625078868872630263110101011275427551134113528782879125812593002300313801381312431251504150532483249151215133256325716361637161717601761140141188418852642652008200938838921322135514515
2377237675775825022503882883262626271006100727502751113011312874287512541255299829991378137931223123150215033246324716261627325232531632163312131756175713613718801881260261200420053843852128212950850922522253632633
2379237875975625012500881880262526241005100427492748112911282873287212531252299729961377137631213120150115003245324416251624325532541635163415141759175813913818831882263262200720063873862131213051151022552254635634
24972496877878262326221003100227472746112711262871287012511250299529941375137431193118149914983243324216231622336733661631163098175317521331321877187625725620012000381380212521245055042249224862962823732372753752
2499249887987626212620100110002745274411251124286928681249124829932992137313723117311614971496324132401621162033653364162916281110175517541351341879187825925820032002383382212721265075062251225063163023752374755754

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.