# I've got magic!

Out of the $$362880$$ ways of arranging the numbers

$1,2,3,4,5,6,7,8,9$

in a $$3 \times 3$$ matrix, how many configurations are there such that all lines (rows, columns and diagonals) add up to the same sum?

×