completing Magic Squares

Similar documents
ON THE ENUMERATION OF MAGIC CUBES*

BMT 2018 Combinatorics Test Solutions March 18, 2018

Part A. 1. How many seconds are there in sixty-two minutes? (A) 62 (B) 3602 (C) 3620 (D) 3680 (E) 3720 (C) 3 8 (A) 7 (B) 11 (C) 13 (D) 15 (E) 17

Grade 6 Math Circles March 7/8, Magic and Latin Squares

UNIVERSITY OF NORTHERN COLORADO MATHEMATICS CONTEST

# 1. As shown, the figure has been divided into three identical parts: red, blue, and green. The figures are identical because the blue and red

Magic Squares. Lia Malato Leite Victoria Jacquemin Noemie Boillot

Square Roots and the Pythagorean Theorem

Workout 5 Solutions. Peter S. Simon. Quiz, December 8, 2004

The Four Numbers Game

Time allowed:75 minutes INSTRUCTION AND INFORMATION

Three of these grids share a property that the other three do not. Can you find such a property? + mod

PASS Sample Size Software

14th Bay Area Mathematical Olympiad. BAMO Exam. February 28, Problems with Solutions

(This Page Blank) ii

Lesson 1 Area of Parallelograms

1999 Mathcounts National Sprint Round Solutions

2. A number x is 2 more than the product of its reciprocal and its additive inverse. In which interval does the number lie?

6-1. Angles of Polygons. Lesson 6-1. What You ll Learn. Active Vocabulary

EXTENSION. Magic Sum Formula If a magic square of order n has entries 1, 2, 3,, n 2, then the magic sum MS is given by the formula

Chapter 4. Linear Programming. Chapter Outline. Chapter Summary

LESSON 2: THE INCLUSION-EXCLUSION PRINCIPLE

Walking on Numbers and a Self-Referential Formula

UNIT 6: CONJECTURE AND JUSTIFICATION WEEK 24: Student Packet

SMML MEET 3 ROUND 1

THE ASSOCIATION OF MATHEMATICS TEACHERS OF NEW JERSEY 2018 ANNUAL WINTER CONFERENCE FOSTERING GROWTH MINDSETS IN EVERY MATH CLASSROOM

UK JUNIOR MATHEMATICAL CHALLENGE. April 25th 2013 EXTENDED SOLUTIONS

MATH CIRCLE, 10/13/2018

Math Labs. Activity 1: Rectangles and Rectangular Prisms Using Coordinates. Procedure

Twenty-sixth Annual UNC Math Contest First Round Fall, 2017

TEKSING TOWARD STAAR MATHEMATICS GRADE 6. Student Book

4th Pui Ching Invitational Mathematics Competition. Final Event (Secondary 1)

1111: Linear Algebra I

2. Nine points are distributed around a circle in such a way that when all ( )

PARITY, SYMMETRY, AND FUN PROBLEMS 1. April 16, 2017

Solutions to Exercises Chapter 6: Latin squares and SDRs

Solutions to the European Kangaroo Pink Paper

INSTRUCTION BOOKLET SUDOKU MASTERS 2008 NATIONAL SUDOKU CHAMPIONSHIP FINALS Q&A SESSION 10:30 10:50 PART 1 CLASSICS 11:00 11:35

n r for the number. (n r)!r!

MAGIC SQUARES KATIE HAYMAKER

PART 2 VARIA 1 TEAM FRANCE WSC minutes 750 points

Grade 7 & 8 Math Circles February 2-3, 2016 Logic Puzzles

Introduction to Mathematical Reasoning, Saylor 111

KenKen Strategies. Solution: To answer this, build the 6 6 table of values of the form ab 2 with a {1, 2, 3, 4, 5, 6}

The 2009 British Informatics Olympiad

MATHEMATICS ON THE CHESSBOARD

TEAM CONTEST. English Version. Time 60 minutes 2009/11/30. Instructions:

Part I At the top level, you will work with partial solutions (referred to as states) and state sets (referred to as State-Sets), where a partial solu

BS D Tevet 5774 /December 2013

Taiwan International Mathematics Competition 2012 (TAIMC 2012)

Meet #3 January Intermediate Mathematics League of Eastern Massachusetts

Solutions to the 2004 CMO written March 31, 2004

INTERNATIONAL JOURNAL OF APPLIED ENGINEERING RESEARCH, DINDIGUL Volume 1, No 4, 2011

Solutions of problems for grade R5

Warm-Up 14 Solutions. Peter S. Simon. January 12, 2005

Sudoku an alternative history

Puzzles ANIL KUMAR C P. The Institute of Mathematical Sciences, Chennai. Puzzles for kids. Date: May 4, 2014

You ve seen them played in coffee shops, on planes, and

Project Maths Geometry Notes

Recovery and Characterization of Non-Planar Resistor Networks

Mathematics Competition Practice Session 6. Hagerstown Community College: STEM Club November 20, :00 pm - 1:00 pm STC-170

Once you get a solution draw it below, showing which three pennies you moved and where you moved them to. My Solution:

EXCELLENCE IN MATHEMATICS EIGHTH GRADE TEST CHANDLER-GILBERT COMMUNITY COLLEGE S. TWELFTH ANNUAL MATHEMATICS CONTEST SATURDAY, JANUARY 21 st, 2012

UNIT FOUR COORDINATE GEOMETRY MATH 421A 23 HOURS

Taking Sudoku Seriously

Grade 6 Math Circles. Math Jeopardy

SCHOOL OF EDUCATION (Edgewood Campus) MAIN EXAMINATIONS - NOVEMBER 2015 BACHELOR OF EDUCATION

Aesthetically Pleasing Azulejo Patterns

12th Bay Area Mathematical Olympiad

FSA Math Review. **Rounding / Estimating** **Addition and Subtraction** Rounding a number: Key vocabulary: round, estimate, about

Rosen, Discrete Mathematics and Its Applications, 6th edition Extra Examples

Geometry Topic 4 Quadrilaterals and Coordinate Proof

(1). We have n different elements, and we would like to arrange r of these elements with no repetition, where 1 r n.

UNC Charlotte 2008 Algebra March 3, 2008

Year 5 Problems and Investigations Spring

Math 9 - Similar and Transformations Unit Assignment

NEGATIVE FOUR CORNER MAGIC SQUARES OF ORDER SIX WITH a BETWEEN 1 AND 5

Hands-On Explorations of Plane Transformations

Save My Exams! The Home of Revision For more awesome GCSE and A level resources, visit us at Symmetry.

N-Queens Problem. Latin Squares Duncan Prince, Tamara Gomez February

LMI Monthly Test May 2010 Instruction Booklet

PASS Sample Size Software. These options specify the characteristics of the lines, labels, and tick marks along the X and Y axes.

Organization Team Team ID# If each of the congruent figures has area 1, what is the area of the square?

Colouring tiles. Paul Hunter. June 2010

WPF PUZZLE GP 2018 ROUND 7 INSTRUCTION BOOKLET. Host Country: Netherlands. Bram de Laat. Special Notes: None.

MA 524 Midterm Solutions October 16, 2018

ACM Collegiate Programming Contest 2016 (Hong Kong)

Another Form of Matrix Nim

8.3 Prove It! A Practice Understanding Task

To Your Hearts Content

SOLUTIONS TO PROBLEM SET 5. Section 9.1

Lecture 6: Latin Squares and the n-queens Problem

Combinations. Permutations. Counting. Counting. Combinations. Permutations. September 19, J. Boulton MDM 4U1

Chapter 4: Patterns and Relationships

BRITISH COLUMBIA SECONDARY SCHOOL MATHEMATICS CONTEST, 2006 Senior Preliminary Round Problems & Solutions

! Denver, CO! Demystifying Computing with Magic, continued

A natural number is called a perfect cube if it is the cube of some. some natural number.

Applications of AI for Magic Squares

NAME : SUDOKU MASTERS 2008 FINALS PART 1 CLASSICS. 1. Classic Sudoku Classic Sudoku Classic Sudoku 50

LEVEL I. 3. In how many ways 4 identical white balls and 6 identical black balls be arranged in a row so that no two white balls are together?

Transcription:

University of Liverpool Maths Club November 2014 completing Magic Squares Peter Giblin (pjgiblin@liv.ac.uk) 1

First, a 4x4 magic square to remind you what it is: 8 11 14 1 13 2 7 12 3 16 9 6 10 5 4 15 Every row, column and the main diagonals add to the same total (here it is 34). What other groups of numbers add to 34? Actually in this example all broken diagonals also add to 34, and indeed 2x2 blocks do too. Furthermore the numbers 1,2,...16 appear just once, and 1+2+3+...+16=136=4x34 so each sum must be 34. 2

Albrecht Dürer s engraving Melencolia I, celebrating its 500 th birthday this year. The rows, columns and main diagonals all sum to 34. What about broken diagonals and 2x2 boxes? 3

Do the broken diagonals add to 34 as well? What about the 2x2 boxes? 4

14 15 9 12 11 10 16 This one is a tiny bit harder to complete. Again you are only allowed to use rows, columns and the two main diagonals, each of which adds to 34. (And all entries are positive whole numbers!) There are actually two solutions here. Can you find one or both of them? (And in fact the numbers 1,2,...,16 appear once, though this is not needed to complete the square.) 5

For a while now we ll consider a smaller size, a 3 x 3 square where we assume that all rows, columns and a b c the two main diagonals add to the same sum, s say. I shall not assume that the d e f numbers 1,2,...,9 occur just once. The g h k numbers a, b,...,k could be any positive whole numbers (i.e. 1, 2, 3, 4,....), and repetitions are allowed 1. Can you fill in the rest of the square given a=4, b=5, s=18? Is there just one answer? 2. How about a=4, e=5, s=15? (How many answers? How many avoid repeating the same number?) 3. How about a=4, e=5, s=18? 4. Adding up the four lines through e gives 4s. Why is this equal to 3s + 3e? What follows from this? 6

a b c d e f g h k Sum of all rows, columns and the two main diagonals is s, which we ll write as 3m. Then e = ⅓s = m. Suppose given a, b and s = 3m say. Fill in the rest of the numbers. So e = m, c = 3m a b for example. 7

a b 3m a b 4m 2a b m 2a+b 2m For all the entries to be > 0 we need m < a + b < 3m 2m < 2a + b < 4m a < 2m b < 2m a+b m 2m b 2m a Suppose given only m, where the sum of each row, column and main diagonal is s = 3m. How many solutions for a and b will there be making all the entries > 0? For example, take m = 2, m = 3 in turn. 8

4m 3m 2m m b We can represent the inequalities on a diagram: (m, 2m) m < a + b < 3m 2m < 2a + b < 4m a < 2m b < 2m So we are looking for all the lattice points inside (not on) this shaded parallelogram, that is points (a,b) with whole number coordinates. m 2m 3m How can we count this number of lattice points, that is the number of solutions of the 3x3 magic square when we are given just m? 9 a

There is a marvellous theorem called Pick s Theorem which says Area of parallelogram = (Number of lattice points inside) + (half the number of lattice points on the boundary) 1 Challenge Can you use this to find the number of lattice points inside the parallelogram, in terms of m? Pick s theorem works for any polygon whose corners are lattice points (integer coordinates) 10

From now on we ll consider 4x4 squares but again drop the requirement that the numbers 1, 2,..., 16 should be used once each. We just require all rows, columns and the two main diagonals to add to the same magic total. 11

a b c d c+3x d-3x c-2x Can you fill in the rest so that all sums of rows, columns and the two main diagonals equal the magic total a+b+c+d? b-x 12 14 29 6 c+x Do the broken diagonals or 2x2 blocks add to the same? Can you use the above diagram to complete the magic square on the left, with magic total 62? 12

3 9 10 Can you use the same method to fill in the blanks to find a magic square with magic total 51? 19 1 5 Can you use the same method to fill in the blanks to find magic squares with magic total 52? 20 3 13

Actually, if all rows, columns and diagonals including the broken diagonals of a 4x4 magic square add to 34 then it follows that the 2x2 boxes all add to 34 as well. (Here, 34 can be replaced by any constant k.) That s another challenge to try at home. 14

15

16

Notes on the problems Slide 5 a 14 15 b 9 12 a+b=5 (from s=34) so there are four choices, (a,b)=(1,4),(4,1),(2,3),(3,2). But only (4,1) and (3.2) lead to solutions. 4 14 15 1 3 14 15 2 11 10 9 7 6 12 9 8 5 12 16 5 11 10 8 16 2 3 13 6 11 10 7 16 1 4 13 As it happens, both of these use the numbers 1,2,...,16 once but broken diagonals and 2x2 boxes don t add to 34. 17

Slide 6,Qu.1 4 5 9 is the only solution 11 6 1 3 7 8 Slide 6,Qu.2 s=15 4 b 5 any of b=3,4,5,6,7,8,9 leads to a valid solution. The only ones which avoid repeating numbers are b=3, b=9: 4 3 8 9 5 1 4 9 2 3 5 7 2 7 6 8 1 6 18

Slide 6,Qu.3: there are no solutions. Qu.4: adding up the 4 lines through e gives 4s since each line adds to s. It also counts all nine entries in the grid once, except for e which it counts 4 times. Since the total of the nine entries is 3s this means that 4s = 3s + 3e, and solving gives e = ⅓ s. That is the middle entry is always onethird of the magic total s. That is why Qu.3 has no solution. It also means that for whole number entries, s must be a multiple of 3. Slide 7 is answered on slide 8. Slide 8: when m=2 we have five solutions (a,b) = (1,3),(2,1), (2,2), (2,3), (3,1). When m = 3 there are 13 solutions for (a,b). Slide 9 just draws the inequalities for a,b on the (a,b) plane. The regions which satisfies all the inequalities is shaded. Slide 10: Using Pick s formula the number of lattice points inside, which is the number of solutions (a,b), is 2m 2-2m+1. 19

Slide 12 For the given square, take x = -2, c=25, d=11 a b c d 12 14 25 11 c+3x d-2x d-3x a+3x b-3x c-2x b+2x a+2x 19 7 6 20 15 29 10 8 b-x a+5x d-5x c+x 16 2 21 23 Slide 13: here you can t use the diagram (above left) directly but if you rotate it by 90 degrees you can find suitable a,b,c,d,x and you get the following: 3 14 13 21 14 9 13 16 22 12 9 8 11 6 24 10 15 19 5 12 1 28 12 11 18 5 7 22 19 10 20 3 20