Skip to content

Problem 10 ​

The table below is called a magic square because, if you add together the numbers in any column, row or diagonal you get the same number.

276951438

In this case, the number you get is 15, and so we say that the magic number for this magic square is 15.

The below table is also a magic square:

3n−22n+1n2−3n2(2n−3)

There are two possible values for n, giving two different possible magic squares. Work out the two possible magic squares.

Give the sum of all the numbers in the two possible magic squares.

Hint

The sum of the top row must equal the sum of the middle column.

Solution

The sum of the top row must equal the sum of the middle column, so:

(3n−2)+(2n+1)=(n2−3n)+(4n−6)5n−1=n2+n−6n2−4n−5=0(n+1)(n−5)=0n∈{−1,5}

When n=−1 we have

−518−18409−1013

When n=5, we have

13611810129147