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 46x46 Magic Square

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

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

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 46x46 Magic Square
with a Magic Sum of 48691

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

Steps:

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

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

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

Create a 46x46 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 23x23 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 (23x23), 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 23x23 magic square
and quadruple all the numbers

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

(Magic Sum = 48691)

6056041713171270570418131812805804191319129059042013201210051004211321121107110676111511141071061215121420720613151314307306141514144074061515151450750416131612
6076061715171470770618151814807806191519149079062015201410071006211521141105110454111311121051041213121220520413131312305304141314124054041513151250550616151614
701700180918088018001909190890190020092008100110002109210811011100939211111110103102121112102032021311131030330214111410403402151115105035021611161060360017091708
702703181018118038021911191090390220112010100310022111211011031102959411091108101100120912082012001309130830130014091408401400150915085015001609160860160217111710
79679719041905897896200520049979962105210410971096898811971196979612071206199198130713062992981407140639939815071506499498160716065995981707170669969618051804
79879919061907899898200720069999982107210610991098919011991198999812051204197196130513042972961405140439739615051504497496160516045975961705170469769818071806
8928932000200199399221012100109310928584119311921851841201120019319213031302295294140314023953941503150249549416031602595594170317026956941803180279579219011900
8948952002200399599421032102109510948786119511941871861203120219519413011300293292140114003933921501150049349216011600593592170117006936921801180079379419031902
9889892096209710891088818011891188181180128912881891881297129628928813991398391390149914984914901599159859159016991698691690179917987917901899189889188819971996
9909912098209910911090838211911190183182129112901911901299129829129013971396389388149714964894881597159658958816971696689688179717967897881897189688989019991998
1084108576771185118417717612851284277276129312922852841393139238538414951494487486159515945875861695169468768617951794787786189518948878861995199498798420932092
1086108778791187118617917812871286279278129512942872861395139438738614931492485484159315925855841693169268568417931792785784189318928858841993199298598620952094
1180118117217312811280273272138113802812801389138838138014891488481480159115905835821691169068368217911790783782189118908838821991199098398220912090108310807372
1182118317417512831282275274138313822832821391139038338214911490483482158915885815801689168868168017891788781780188918888818801989198898198020892088108110827574
1276127726826913771376369368138513843773761485148447747615851584577576168716866796781787178677977818871886879878198719869799782087208610791078717011791176169168
1278127927027113791378371370138713863793781487148647947815871586579578168516846776761785178477777618851884877876198519849779762085208410771076696811771178171170
1372137336436514731472373372148114804734721581158057357216811680673672178317827757741883188287587419831982975974208320821075107467661175117416716612751272265264
1374137536636714751474375374148314824754741583158257557416831682675674178117807737721881188087387219811980973972208120801073107265641173117216516412731274267266
1468146946046114771476469468157715765695681677167666966817771776769768187918788718701979197897197020792078107110706362117111701631621271127026326213711368361360
1470147146246314791478471470157915785715701679167867167017791778771770187718768698681977197696996820772076106910686160116911681611601269126826126013691370363362
1564156546446515721573564565167216736646651772177376476518721873864865197419759669672074207510661067585911661167158159126612672582591366136735835914661465456457
1566156746646715741575566567167416756666671774177576676718741875866867197219739649652072207310641065565711641165156157126412652562571364136535635714641467458459
1568156956056116681669660661176817697607611868186986086119681969960961207020711062106354551162116315415512621263254255136213633543551462146345445515621561552553
1570157156256316701671662663177017717627631870187186286319701971962963206820691060106152531160116115215312601261252253136013613523531460146145245315601563554555
1664166565665717641765756757186418658568571964196595695720642065105610575051115811591501511258125925025113581359350351145814594504511558155955055116581657556557
1666166765865917661767758759186618678588591966196795895920662067105810594849115611571481491256125724824913561357348349145614574484491556155754854916561659558559
1761176075375218601861852853196019619529532060206110521053444511521153146147125412552462471354135534634714541455446447155415555465471654165564664716621661652653
1763176275575418621863854855196219639549552062206310541055464711541155144145125212532442451352135334434514521453444445155215535445451652165364464516601663654655
1857185684984819561957948949205620571048104940411148114914014112481249242243135013513423431450145144244315501551542543165016516426431750175165065117581757748749
1859185885185019581959950951205820591050105142431150115114214312501251240241134813493403411448144944044115481549540541164816496406411748174964864917561759750751
1953195294594420522053104410453637114411451361371244124523623713441345338339144614474384391546154753853916461647638639174617477387391754175574674718541853844845
1955195494794620542055104610473839114611471381391246124723823913461347336337144414454364371544154553653716441645636637174417457367371752175374474518521855846847
2049204810411040323311401141132133124012412322331340134133233314401441434435154215435345351642164363463517421743734735184218437427431850185184284319501949940941
2051205010431042343511421143134135124212432342351342134333433514421443432433154015415325331640164163263317401741732733184018417407411848184984084119481951942943
2928113711361281291236123722822913361337328329143614374284291536153753053116381639630631173817397307311838183983083118461847838839194619479389392046204510361037
3130113911381301311238123923023113381339330331143814394304311538153952852916361637628629173617377287291836183782882918441845836837194419459369372044204710381039
1251241233123222422513321333324325143214334244251532153352452516321633626627173417357267271834183582682719341935834835194219439349352042204310341035262511321133
1271261235123422622713341335326327143414354264271534153552652716341635624625173217337247251832183382482519321933832833194019419329332040204110321033242711341135
2212201329132832032114281429420421152815295205211628162962062117281729722723183018318228231930193192292319381939930931203820391030103122231130113112212112281229
2232221331133032232314301431422423153015315225231630163162262317301731720721182818298208211928192992092119361937928929203620371028102920211128112912012312301231
3173161425142441641715241525516517162416256166171724172571671718241825818819192619279189192026202792692720342035102610271819112611271181191226122721821713241325
3193181427142641841915261527518519162616276186191726172771871918261827816817192419259169172024202592492520322033102410251617112411251161171224122521621913261327
413412152115225145151622162361461517221723714715182218238148151922192391491520222023101410152028202910201021121311201121112113122012212122131320132131231314201421
415414152315205135121621162061361217211720713712182118208138121921192091391220212020101310122031203010231022151411231122115114122312222152141323132231531414231422
5095081617161861161017191718711710181918188118101919191891191020192018101110102119211810191018981117111610910812171216209208131713163093081417141640940815171516
511510161916166096081717171670970818171816809808191719169099082017201610091008211721161017101611101119111811111012191218211210131913183113101419141841141015191518

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.