Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.