On magic squares
Euler shows how to construct magic squares with a certain number of cells, in particular 9, 16, 25, and 36. He also considers some general rules for constructing squares of even and odd orders. He starts with Graeco-Latin squares and puts constraints on the values of the variables so that the result is a magic square.
Original Source Citation
Commentationes arithmeticae collectae, Volume 2, pp. 593-602.
Opera Omnia Citation
Series 1, Volume 7, pp.441-457.