A

magic square of order n is a square array of nē consecutive integer numbers (usually, but not neccessarily, from 1 to nē) arranged so the sum of the numbers in any horizontal, vertical, or
main diagonal line is always the same number, called the magic constant.

For which values of n are there magic squares of order n, with a magic constant of 2007?