Mytutorfriend- Your friendly tutor

July 8, 2008

Magic Square

Filed under: Math tricks — mytutorfriend @ 11:29 pm
Tags: ,

What is a Magic Square?

A magic square is an arrangement of the numbers from 1 to n^2 (n-squared) in an nxn matrix, with each number occurring exactly once, and such that the sum of the entries of any row, any column, or any main diagonal is the same. It is not hard to show that this sum must be n(n^2+1)/2.

The simplest magic square is the 1×1 magic square whose only entry is the number 1.

The next simplest is the 3×3 magic square

and those derived from it by symmetries of the square. This 3×3 square is definitely magic and satisfies the definition given above.

The 4×4 Dürer magic square (or, what is essentially the same, the 4×4 magic square I use) has many interesting special properties that are not shared by magic squares in general. They are so interesting that they are often pointed out when this square is presented. That is good, but can sometimes lead to misunderstandings as to which is the meat and which is the gravy. The meat is the definition I gave above. The gravy (or some of it), suggested by Jerome S. Meyer in his book, Fun with Mathematics , follows.

In the case of this 4×4 magic square:

in addition to having the sum 34 (= 4(4^2+1)/2) in each row, column and main diagonal,

  1. The four corners add to 34.
  2. The four numbers in the center add to 34.
  3. The 15 and 14 in the top row and the 3 and 2 facing them in the bottom row add to 34.
  4. The 12 and 8 in the first column and the 9 and 5 facing them in the last column add to 34.
  5. The four squares in the corners add to 34.
  6. If you go clockwise around the square and choose the first squares away from the corners (15,9,2,8), they add to 34. The same holds if you go counterclockwise.
  7. If you replace each entry by its square, you get the following square:This square is not magic, but it has some noteworthy properties:
    1. The first and last column have the same sum; likewise the 2nd and 3rd columns have the same sum;
    2. The same holds with rows instead of columns (although the sums one gets are different from the sums for the columns);
    3. From (1) and (2), it follows that the left half of the square has the same sum as the right half and that this is one-half the sum of all of the numbers in the square. The same holds for the top half and the bottom half; hence the left half equals the right half equals the top half equals the bottom half. Furthermore, this also equals the sum of the 8 numbers on the diagonals and the sum of the 8 numbers off the diagonals.
  8. If instead you replace each entry by its cube, you get the following square:This square has the property that the sum of the 8 numbers on the diagonals equals the sum of the 8 numbers off the diagonals.       – http://www.mytutorfriend.com

Easy Summation

Filed under: Algebra — mytutorfriend @ 11:29 pm
Tags: , ,

A formula that would sum all the numbers between two numbers, inclusive.

Formula:

x is the smaller number of the two. y is the larger one.

This formula has the advantage that it can be used quickly for huge numbers of integers, such as databases and arrays.  -www.mytutorfriend.com

Create a free website or blog at WordPress.com.