In a magic NxN square, numbers from 1 to Nē are set so the numbers in each row, column, or major diagonal, have the same sum: the "magic constant".
What is the value of this constant, as a function of N?
Average term = (1 + N^2)/2
Multiply by N^2 to get the total of all terms, and then divide by N to get an average for one row.
Answer = N*(1 + N^2)/2