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 54x54 Magic Square

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

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

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 54x54 Magic Square
with a Magic Sum of 78759

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

Steps:

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

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

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

Create a 54x54 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 27x27 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 (27x27), 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 27x27 magic square
and quadruple all the numbers

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

(Magic Sum = 78759)

81781623332332933932244924481049104825652564116511642681268012811280279727961397139629132912151515147615231522123122163916382392381755175435535418711870471470198719865875862103210270370022172216
81981823352334935934245124501051105025672566116711662683268212831282279927981399139829152914151315125415211520121120163716362372361753175235335218691868469468198519845855842101210070170222192218
929928244524441045104425612560116111602677267612771276279327921393139229092908150915081091081519151811911816351634235234175117503513501867186646746619831982583582209920986996982215221481581223292328
930931244624471047104625632562116311622679267812791278279527941395139429112910151115101111101517151611711616331632233232174917483493481865186446546419811980581580209720966976962213221281381423312330
104010412556255711571156267326721273127227892788138913882905290415051504105104162116201131121631163023123017471746347346186318624634621979197857957820952094695694221122108118102327232692792424412440
104210432558255911591158267526741275127427912790139113902907290615071506107106162316221151141629162822922817451744345344186118604614601977197657757620932092693692220922088098082325232492592624432442
115211532668266912691268278527841385138429012900150115001011001617161621721616251624225224174317423433421859185845945819751974575574209120906916902207220680780623232322923922243924381039103625532552
115411552670267112711270278727861387138629032902150315021031021619161821921816271626227226174117403413401857185645745619731972573572208920886896882205220480580423212320921920243724361037103825552554
1264126527802781138113802897289614971496979616131612213212172917282212201737173633733618551854455454197119705715702087208668768622032202803802231923189199182435243410351034255125501151114826652664
1266126727822783138313822899289814991498999816151614215214173117302232221739173833933818531852453452196919685695682085208468568422012200801800231723169179162433243210331032254925481149115026672666
1376137728922893149314929392160916082092081725172432532417331732333332184918484494481967196656756620832082683682219921987997982315231491591424312430103110302547254611471146266326621263126027772776
1378137928942895149514949594161116102112101727172632732617351734335334185118504514501965196456556420812080681680219721967977962313231291391224292428102910282545254411451144266126601261126227792778
1488148988891605160420520417211720321320183718363293281845184444544419611960561560207920786796782195219479579423112310911910242724261027102625432542114311422659265812591258277527741375137228892888
1490149190911607160620720617231722323322183918383313301847184644744619631962563562207720766776762193219279379223092308909908242524241025102425412540114111402657265612571256277327721373137428912890
1600160120020117171716317316183318324334321841184044144019571956557556207320726736722191219079179023072306907906242324221023102225392538113911382655265412551254277127701371137028872886148714848584
1602160320220317191718319318183518344354341843184244344219591958559558207520746756742189218878978823052304905904242124201021102025372536113711362653265212531252276927681369136828852884148514868786
1712171331231318291828429428194519444374361953195255355220692068669668218521847857842303230290390224192418101910182535253411351134265126501251125027672766136713662883288214831482838215991596197196
1714171531431518311830431430194719464394381955195455555420712070671670218721867877862301230090190024172416101710162533253211331132264926481249124827652764136513642881288014811480818015971598199198
1824182542442519411940541540194919485495482065206466566421812180781780229722968978962415241410151014253125301131113026472646124712462763276213631362287928781479147879781595159419519417111708309308
1826182742642719431942543542195119505515502067206666766621832182783782229922988998982413241210131012252925281129112826452644124512442761276013611360287728761477147677761593159219319217091710311310
1936193753653720532052545544206120606616602177217677777622932292893892240924081009100825272526112711262643264212431242275927581359135828752874147514747574159115901911901707170630730618231820421420
1938193953853920552054547546206320626636622179217877977822952294895894241124101011101025252524112511242641264012411240275727561357135628732872147314727372158915881891881705170430530418211822423422
2048204964864920572056657656217321727737722289228888988824052404100510042521252011211120263926381239123827552754135513542871287014711470717015871586187186170317023033021819181841941819351932533532
2050205165065120592058659658217521747757742291229089189024072406100710062523252211231122263726361237123627532752135313522869286814691468696815851584185184170117003013001817181641741619331934535534
2160216165265321682169768769228422858848852400240110001001251625171116111726322633123212332750275113501351286628671466146766671582158318218316981699298299181418154144151930193153053120462045644645
2162216365465521702171770771228622878868872402240310021003251825191118111926342635123412352748274913481349286428651464146564651580158118018116961697296297181218134124131928192952852920442047646647
21642165764765228022818808812396239799699725122513111211132628262912281229274427451344134528622863146214636263157815791781791694169529429518101811410411192619275265272042204364264321582157756757
21662167766767228222838828832398239999899925142515111411152630263112301231274627471346134728602861146014616061157615771761771692169329229318081809408409192419255245252040204164064121562159758759
22762277876877239223939929932508250911081109262426251224122527402741134013412856285714561457585915741575174175169016912902911806180740640719221923522523203820396386392154215575475522702269760761
22782279878879239423959949952510251111101111262626271226122727422743134213432858285914581459565715721573172173168816892882891804180540440519201921520521203620376366372152215375275322682271762763
23892388989988250425051104110526202621122012212736273713361337285228531452145352531568156917017116861687286287180218034024031918191951851920342035634635215021517507512266226786686722742273872873
23912390991990250625071106110726222623122212232738273913381339285428551454145554551570157116816916841685284285180018014004011916191751651720322033632633214821497487492264226586486522722275874875
25012500110111002616261712161217273227331332133328482849144814494849156415651641651680168128228317981799398399191419155145152030203163063121462147746747226222638628632378237987087123862385984985
25032502110311022618261912181219273427351334133528502851145014515051156615671661671682168328028117961797396397191219135125132028202962862921442145744745226022618608612376237786886923842387986987
26132612121312122728272913281329284428451444144544451560156116016116761677276277179217933943951910191151051120262027626627214221437427432258225985885923742375974975238223839829832498249710961097
26152614121512142730273113301331284628471446144746471562156316216316781679278279179417953923931908190950850920242025624625214021417407412256225785685723722373972973238023819809812496249910981099
27252724132513242840284114401441404115561557156157167216732722731788178938838919041905506507202220236226232138213973873922542255854855237023719709712486248797897924942495109410952610260912081209
27272726132713262842284314421443424315581559158159167416752742751790179139039119061907504505202020216206212136213773673722522253852853236823699689692484248597697724922493109210932608261112101211
2837283614371436363715521553152153166816692682691784178538438519001901500501201620176186192134213573473522502251850851236623679669672482248310821083249024911090109126062607120612072722272113201321
2839283814391438383915541555154155167016712702711786178738638719021903502503201820196166172132213373273322482249848849236423659649652480248110801081248824891088108926042605120412052720272313221323
3332154915481481491664166526426517801781380381189618974964972012201361261321282129730731224622478468472362236396296324782479107810792594259510861087260226031202120327182719131813192834283314321433
3534155115501501511666166726626717821783382383189818994984992014201561461521302131728729224422458448452360236196096124762477107610772592259310841085260026011200120127162717131613172832283514341435
1451441661166026026117761777376377189218934924932008200960860921242125724725224022418428432358235995895924742475107410752590259111901191259825991198119927142715131413152830283114301431302915441545
1471461663166226226317781779378379189418954944952010201161061121262127726727224222438408412356235795695724722473107210732588258911881189259625971196119727122713131213132828282914281429283115461547
2572561773177237237318881889488489200420056046052120212172072122362237836837235223539549552470247110701071258625871186118727022703119411952710271113101311282628271426142726271542154314214116561657
2592581775177437437518901891490491200620076066072122212372272322382239838839235423559529532468246910681069258425851184118527002701119211932708270913081309282428251424142524251540154114014316581659
3693681885188448448520002001600601211621177167172232223383283323482349948949246424651066106725822583118211832698269912981299270627071306130728222823142214232223153815391381391654165525425317681769
3713701887188648648720022003602603211821197187192234223583483523502351950951246624671064106525802581118011812696269712961297270427051304130528202821142014212021153615371361371652165325225517701771
4814801997199659659721122113712713222822298288292344234594494524602461106010612576257711781179269426951294129528102811130213032818281914181419181915341535134135165016512502511766176736636518801881
4834821999199859859921142115714715223022318308312346234794694724622463106210632578257911761177269226931292129328082809130013012816281714161417161715321533132133164816492482491764176536436718821883
5935922109211071071122262227826827234223439429432458245910581059257425751174117526902691129012912806280714061407281228131412141312131528152912812916441645244245176017613603611876187747647719921993
5955942111210870970822252224825824234123409419402457245610571056257325721173117226892688128912882805280414051404281528141415141415141531153013113016471646247246176317623633621879187847947819951994
70570422212222823822233923389399382455245410551054257125701171117026872686128712862803280214031402291929181411141098152515241251241641164024124017571756357356187318724734721989198858958821052104
7077062223222082182023372336937936245324521053105225692568116911682685268412851284280128001401140029172916140914081110152715261271261643164224324217591758359358187518744754741991199059159021072106

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.