The are some wellknown algorithms to construct magic squares of odd order, when the order n is not a multiple of 3.
You will find more methods to create magic squares of odd order in section pandiagonal squares.
|Margossian (Method 1)|
|Margossian (Method 2)|
|Lehmer (Uniform step)|
|Sauveur (Method of indexing)|