Magic Squares. Introduction

Similar documents
IB Math Research Problem

Basic numerical skills: EQUATIONS AND HOW TO SOLVE THEM. x + 5 = = (2-2) = = 5. x = 7-5. x + 0 = 20.

Pigeonhole Principle Solutions

APPLICATIONS AND MODELING WITH QUADRATIC EQUATIONS

Kenken For Teachers. Tom Davis June 27, Abstract

10 th POLISH SUDOKU CHAMPIONSHIP INSTRUCTION BOOKLET. February 22, 2015 IMPORTANT INFORMATION:

Name Date Class Period. How can you use the box method to factor a quadratic trinomial?

4/1/2017. PS. Sequences and Series FROM 9.2 AND 9.3 IN THE BOOK AS WELL AS FROM OTHER SOURCES. TODAY IS NATIONAL MANATEE APPRECIATION DAY

Battleship. Big bands

SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89. by Joseph Collison

Session 6 Number Theory

To Evaluate an Algebraic Expression

Unit 18 Determinants

A permutation can also be represented by describing its cycles. What do you suppose is meant by this?

Sequences. A sequence is a list of numbers, or a pattern, which obeys a rule.

INTERSECTION MATH And more! James Tanton

ALGEBRA. sequence, term, nth term, consecutive, rule, relationship, generate, predict, continue increase, decrease finite, infinite

5.1 Radical Notation and Rational Exponents

1.2. Successive Differences

Patterns in Pascal s Triangle

Working with whole numbers

Factoring Guidelines. Greatest Common Factor Two Terms Three Terms Four Terms Shirley Radai

Welcome to Basic Math Skills!

Just the Factors, Ma am

Learn How to Use The Roulette Layout To Calculate Winning Payoffs For All Straight-up Winning Bets

POLYNOMIAL FUNCTIONS


Factorizations: Searching for Factor Strings

Clock Arithmetic and Modular Systems Clock Arithmetic The introduction to Chapter 4 described a mathematical system

SQUARE-SQUARE ROOT AND CUBE-CUBE ROOT

Inductive Reasoning Free Sample Test 1

AIP Factoring Practice/Help

Chapter 11 Number Theory

Basic Formulas in Excel. Why use cell names in formulas instead of actual numbers?

2.6 Exponents and Order of Operations

MATHEMATICS. Y5 Multiplication and Division 5330 Square numbers, prime numbers, factors and multiples. Equipment. MathSphere

3.2 Matrix Multiplication

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m

LINEAR INEQUALITIES. Mathematics is the art of saying many things in many different ways. MAXWELL

Don t Slow Me Down with that Calculator Cliff Petrak (Teacher Emeritus) Brother Rice H.S. Chicago cpetrak1@hotmail.com

Ready, Set, Go! Math Games for Serious Minds

Properties of Real Numbers

The correlation coefficient

Probability Distributions

2.5 Zeros of a Polynomial Functions

Answer Key for California State Standards: Algebra I

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

Numerator Denominator

Vector Math Computer Graphics Scott D. Anderson

Decimals Adding and Subtracting

2004 Solutions Ga lois Contest (Grade 10)

Number Patterns, Cautionary Tales and Finite Differences

Category 3 Number Theory Meet #1, October, 2000

The Pointless Machine and Escape of the Clones

Common Core Standards for Fantasy Sports Worksheets. Page 1

Application. Outline. 3-1 Polynomial Functions 3-2 Finding Rational Zeros of. Polynomial. 3-3 Approximating Real Zeros of.

MEP Pupil Text 12. A list of numbers which form a pattern is called a sequence. In this section, straightforward sequences are continued.

Binary Adders: Half Adders and Full Adders

Determinants can be used to solve a linear system of equations using Cramer s Rule.

Maths Workshop for Parents 2. Fractions and Algebra

3 Some Integer Functions

Some practice problems for midterm 2

TIME VALUE OF MONEY. Hewlett-Packard HP-12C Calculator

Toothpick Squares: An Introduction to Formulas

2x 2x 2 8x. Now, let s work backwards to FACTOR. We begin by placing the terms of the polynomial inside the cells of the box. 2x 2

MECHANICAL PRINCIPLES HNC/D MOMENTS OF AREA. Define and calculate 1st. moments of areas. Define and calculate 2nd moments of areas.

Determine If An Equation Represents a Function

Unit 1 Equations, Inequalities, Functions

CALCULATIONS & STATISTICS

To convert an arbitrary power of 2 into its English equivalent, remember the rules of exponential arithmetic:

IB Maths SL Sequence and Series Practice Problems Mr. W Name

Session 7 Fractions and Decimals

Squaring, Cubing, and Cube Rooting

SECTION 10-2 Mathematical Induction

Acquisition Lesson Planning Form Key Standards addressed in this Lesson: MM2A3d,e Time allotted for this Lesson: 4 Hours

Math Circle Beginners Group October 18, 2015

Lesson 4.3: Using the VLOOKUP Function

Session 29 Scientific Notation and Laws of Exponents. If you have ever taken a Chemistry class, you may have encountered the following numbers:

6.4 Normal Distribution

arxiv: v2 [math.ho] 4 Nov 2009

Operation Count; Numerical Linear Algebra

Working with Tables: How to use tables in OpenOffice.org Writer

VISUAL ALGEBRA FOR COLLEGE STUDENTS. Laurie J. Burton Western Oregon University

Combinatorial Proofs

This activity will show you how to draw graphs of algebraic functions in Excel.

We can express this in decimal notation (in contrast to the underline notation we have been using) as follows: b + 90c = c + 10b

Magic squares with a given total. Challenging Magic Squares for Magicians

V Quantitative Reasoning: Computers, Number Theory and Cryptography

Mathematical goals. Starting points. Materials required. Time needed

Negative Integral Exponents. If x is nonzero, the reciprocal of x is written as 1 x. For example, the reciprocal of 23 is written as 2

4. How many integers between 2004 and 4002 are perfect squares?

MD5-26 Stacking Blocks Pages

PYTHAGOREAN TRIPLES KEITH CONRAD

1.6 The Order of Operations

UNDERSTANDING ALGEBRA JAMES BRENNAN. Copyright 2002, All Rights Reserved

3. Mathematical Induction

4.5 Finite Mathematical Systems

CBA Fractions Student Sheet 1

Chapter 7 - Roots, Radicals, and Complex Numbers

Arkansas Tech University MATH 4033: Elementary Modern Algebra Dr. Marcel B. Finan

Transcription:

Magic Squares Introduction Numbers have always fascinated people. The strange and surprising properties numbers have either individually or in relation with each other force us to believe that numbers have intrinsic beauty and magic. It is so amazing how ordering numbers in certain ways leads to very surprising objects. In this article, we present one such a magical object; namely, what is known as a magic square. What is a magic square A magic square of order N is a square consisting of N rows and N columns that is filled with distinct integers in such a way that the sum of the integers in each row, each column and each main diagonal is equal to some fixed number. This fixed number is called the magic sum of the square. Each space of the square is called a cell. A magic square of order N consists of N cells. Figure 1 is an example of a magic square of order 3 that has 9 cells and has a magic sum of 15. 8 1 6 11 4 9 71 89 17 3 5 7 6 8 10 5 59 113 4 9 7 1 5 101 9 47 Magic sum = 15 Magic sum = 4 Magic sum = 177 Figure 1 Figure Figure 3 16 3 13 5 10 11 8 9 6 7 1 4 15 14 1 Magic sum = 34 Figure 4 In a magic square of order N, the integers used are usually the consecutive integers 1,,3,..., N. In this case, the square is called a pure magic square or a traditional magic square. Figure 1 and Figure 4 are examples of pure magic squares. Figure and Figure 3 are examples of magic squares that are not pure. How to calculate the magic sum We will denote the magic sum of a magic square by the letter S. The magic sum of any magic square is given by the following relation S = (sum of the numbers used) (the order of the square) For a pure magic square of order N, the sum of the numbers used is 1 1+ + 3 +... + N = N ( N + 1). 1

If we divide the above quantity by N, the order of the square, we get the following formula for the sum of a pure magic square of order N : S = 1 N( N 1) +. For example, if N = 3, then the magic sum is S = 1 3(3 + 1) = 15. Similarly, if N = 4, then S = 34 ; if N = 5, then S = 65. Constructing Pure Magic Squares There are different methods for constructing magic squares. The methods used depend on the order of the square. In the literature, magic squares are divided according to their orders into three classes: 1. Magic squares of odd orders. These are the ones whose order is not divisible by. Mathematically, this order can be written in the form N = m + 1, where m is some integer. Examples of odd orders are 3, 5 and 7.. Magic squares of singl-even orders. These are the ones whose order is even and is divisible by and not by 4. The general formula for this order is N = (m + 1), where m is some integer. Examples of this order are 6, 15 and 14. 3. Magic squares of doubl-even orders. These are the ones whose order is even and is divisible by and 4.The general formula for such an order is N = 4m, where m is some integer. Examples of this order are 4, 8 and 1. In what follows we will describe three different methods, one method for each one of the above three classes, for constructing pure magic squares. Constructing Pure Magic Squares of Odd Orders There are several methods for constructing pure magic squares of odd orders. In this section, we describe one simple method. This method consists of the following two steps: 1. Write 1 in the center cell of the first (top) row. The numbers,3,..., N are then inserted in this increasing order in the remaining cells of the square according to the rules given in step below.. Move from one cell to another cell by going up and then to the left, one step at a time. In moving this way, we have the following possibilities: a. If a move takes you to another empty cell in the square, then insert the number in that cell. b. If a move takes you out at the top of a column of the square, then insert the number in the bottom cell of that column. c. If a move takes you out at the left of a row of the square, then insert the number in the last cell to the right of that row. d. If a move takes you to a cell that is already filled, then insert the number in the cell that is immediately below the cell you started with.

e. If a move takes you to the upper left corner of the square, then insert the number in this cell and then insert the next number in the cell that is immediately below the upper left corner cell. The following figure illustrates how a pure magic square of order 3 is filled by following the above steps. 1 1 1 3 1 1 6 1 3 5 3 5 3 4 4 4 6 1 6 1 8 6 1 8 7 5 3 7 5 3 7 5 3 4 4 9 4 Figure 5 Following the above steps, we can also construct a pure magic square of order 5. See Figure 6. 15 8 1 4 17 16 14 7 5 3 0 13 6 4 3 1 19 1 10 9 5 18 11 Magic sum = 65 Figure 6 Constructing Pure Magic Squares of Single-even Order This type of squares is considered the hardest to construct. One method to construct pure magic squares of single-even order is to use the method invented by Phillipe de la Hire (1640-1719). De la Hire's method is described as follows: 1. We construct two squares and then add them cell-wise to get the required magic square.. The first square is constructed as follows: a. Fill the main diagonals with the numbers 1,,3,..., N, in this order, starting from the upper and lower left corners. See Figure (a) for the case of N = 6. b. In general, two cells of column i are filled with i. For each i = 1,,..., N /, do the following: i. Complete filling column i using i and its complement N i +1 in such a way that the number of cells containing i is the same as the number of cells containing N i + 1. 3

ii. Fill the unoccupied cells of column N i + 1 by the complements of the numbers in the opposite cells of column i. This gives the first square. Make sure that this square does not contain two identical rows. See Figure (b). 3. The second square is constructed as follows: a. Construct a new square in such a way that the elements of row i are the elements of column i of the first square already constructed in step. See Figure (c). b. Replace each number of the previous square by its deficient multiple; the deficient multiple of i is ( i 1) N. This gives the second square. See Figure (d). 4. Add the two resulting squares (cell-wise) to get the required magic square. See Figure 7 for a pure magic square of order 6 whose magic sum is 111. 1 6 1 5 4 3 6 5 6 3 4 5 1 3 4 6 5 3 4 1 3 4 1 5 3 4 6 5 6 4 3 5 1 1 6 1 4 3 5 6 (a) (b) 1 6 6 1 6 1 0 30 30 0 30 0 5 5 5 4 6 4 4 6 6 4 3 3 3 4 4 18 1 1 1 18 18 3 4 4 4 3 3 1 18 18 18 1 1 5 5 5 6 4 6 6 4 4 6 1 1 6 1 6 30 0 0 30 0 30 (c) (d) 1 35 34 3 3 6 30 8 7 8 11 7 4 17 15 16 0 19 13 3 1 14 18 1 6 10 9 9 5 31 4 33 5 36 Figure 7: (b) + (d) For the case of N = 6 shown above, observe that the sum of the numbers in each row, each column, and each main diagonal in Figure (b) is equal to 1 and in Figure (d) is equal to 90. When we add cell-wise the squares in Figures (b) and (d), we get a pure magic square whose magic sum is 111=1+90. In the general case, the corresponding 1 sums in Figures (b) and (d) are N ( N + 1) and 1 N ( N 1), respectively. Adding these two sums gives 1 N ( N 1) +, which is the magic sum of a pure magic square of order N. 4

Constructing Pure Magic Squares of Double-even Order For this type of squares, we will use Durer's method. This method was invented by Albrecht Durer in 1514. Durer's method is described as follows: 1. Draw five empty squares of the required order.. In the first square, fill in the cells of the square by the numbers 1,,..., N by going horizontally to the right in each row (starting with the 1 st row, then the nd row, etc.) 3. In the second square, fill in the cells of the main diagonals by the numbers in the cells of the main diagonals of the first square. 4. In the third square, fill in the cells of the square by the numbers 1,,..., N by going horizontally to the left in each row (starting with the last row, then the N-1 st row, etc.) 5. In the fourth square, fill in the cells not lying on the main diagonals by exactly the numbers not lying on the main diagonals of the third square. 6. Combine the second and fourth squares in the fifth square to get the required pure magic square. Figure 8 illustrates the above steps for constructing a pure magic square of order 4. 1 3 4 1 4 5 6 7 8 6 7 9 10 11 1 10 11 13 14 15 16 13 16 16 15 14 13 15 14 1 11 10 9 1 9 8 7 6 5 8 5 4 3 1 3 1 15 14 4 1 6 7 9 8 10 11 5 13 3 16 Figure 8 Once the method is understood, one can do the above five steps in one shot. We ask the reader to compare Figure 4 and Figure 8. Pure Magic Squares of Order One and Two Using the three methods described above, one can construct pure magic square of any order larger than. It remains to consider magic squares of order 1 and. There is only one possibility for a pure magic square of order 1; namely, the square consisting of one cell that is filled with 1. There is no pure magic square of order. In this case, the numbers used are 1,, 3, 4 and the magic sum is 5. In any way we want to fill in 5

the square, there will always be a row, a column or a diagonal that contains only 1 and. These two numbers do not add up to 5. New Magic Squares from Old Ones Starting with a magic square, we can construct a new magic square by simply using the four basic arithmetic operations of addition, subtraction, multiplication and division. If we add a number to each cell of a given magic square, then we get a new magic square of the same order, but with a different magic sum. For example, if we add 4 to each cell of the magic square given in Figure 1, then we get the magic square shown in Figure 9. Similarly, subtracting a number from each cell of a given magic square will yield a new magic square. If we multiply or divide each cell of a magic square by some number, we also get new magic squares. In case of division, the resulting numbers in the magic square will be no longer integers. Also, the resulting magic squares are not pure. Figures 9-1 give some magic squares of order 3 originated from Figure 1. Final Words 1 5 10 5-3 7 9 11 0 4 8 13 6 1 6-1 Magic sum= 19 Magic sum = 1 Figure 9 Figure 10 4 3 18 4 1/ 3 9 15 1 3/ 5/ 7/ 1 7 6 9/ 1 Magic sum = 45 Magic sum = 15/ Figure 11 Figure 1 It was a short journey through magic squares. More methods of constructing magic squares and more magical properties of magic squares can be found in the references given below. References 1. Andrews, W. S., Magic Squares and Cubes, Cosimo Classics, New York, 004.. Fults, John Lee, Magic Squares, Open Court, La Salle, 1974. 3. Pickover, C. A., The Zen of Magic Squares, Circles, and Stars, Princeton University Press, Princeton, 00. Ibrahim Al-Rasasi April 4, 006 (4 Rabi' I, 147) 6