math
posted by wan on .
use all digits from 1  9 inclusively to make a 3 by 3 magic square.each row ,column and diagonal has the same total

8 1 6
3 5 7
4 9 2
total of each row, column and diagonal is 15 
thanks ,but how u work it out?

my method works for any oddnumbered square
draw the square, add an imaginary row to the top and an imaginary column at the right
start with 1 in the middle of the top row and and place consecutive numbers following a righ diagonal pattern.
If you reach the imaginary top row, drop down to the bottom of that column.
If you reach the imaginary right column, place your number in the leftmost open space of that row
If you are blocked, drop down one space and continue the pattern.
If you reach the top  right corner, drop down one
(notice the 7 after the 6 for the 3by3 , and the 16 following the 15 in the one below)
Your last number should end up in the middle of the bottom row.
Practise with some larger squares
here is my 5 by 5
17 24 1 8 15
23 5 7 14 16
4 6 13 20 22
10 12 19 21 3
11 18 25 2 9
everything add up to 65