The are some wellknown algorithms to construct magic squares of odd order, when the order n is not a multiple of 3.