I was reading Martin Gardner's "hexaflexagons and other mathematical diversions" in which he describes a magic matrix - a different type of magic square in which all numbers of different rows and columns add up to the "magic number" he explains the method behind it:
Like most tricks, this one is absurdly simple when explained. The square is nothing more than an old-fashioned addition table, arranged in a tricky way. The table is generated by two sets of numbers. The sum of these numbers is the magic number. If you write the first set of numbers horizontally above the top row of the square, and the second set vertically beside the first column, you can see at once how the numbers in the cells are determined.
Here is a picture to help you understand it:
As you can see if you pick any four numbers from different rows and columns, they will add up to $34$. He further provides a formula to calculate the "magic number" of a magic matrix:
One of the simplest ways to form an addition table on a square matrix is to start with 1 in the upper left corner, then continue from left to right with integers in serial order. A four-by-four matrix of this sort becomes an addition table for the two sets of numbers $1, 2, 3, 4$ and $0, 4, 8, 12$ (above). This matrix will force the number $34$. The forced number is of course a function of the size of the square. If $n$ is the number of cells on a side, then the forced number will be
On squares with an odd number of cells on the side, this forced number will equal the product of n and the number on the center cell. If you start with a number higher than $1$ (call it $a$) and continue in serial order, the forced number will be
Usually this formula is accurate, however with a $2*2$ grid starting with $2$ the formula produces:
$$\frac{ 2 ^ 3 + 2 }{ 2 } + 2 \cdot ( 3 - 1 ) = 9$$
Whilst the actual result is $8$
Can anyone shed some light on this?
( 2 ^ 3 + 2 ) / 2 + ( 2 * ( 4 - 1 ) ) = 11
(the correct formula for a 2*2 staring with three) – Math chiller Dec 18 '13 at 16:22