TOPICS
Search

Magic Square of Squares


A magic square of squares is a magic square whose entries are distinct positive square numbers. The entries need not be consecutive, and the array of their positive square roots need not be a magic square. If that array of square roots is magic as well, the root array is a bimagic square (Rome and Yamagishi 2025).

For order three, the equal-line-sum conditions give the general integer array

 (a+c -a-b+c b+c; -a+b+c c a-b+c; -b+c a+b+c -a+c),

where a, b, and c are integers, and every row, column, and main diagonal sums to 3c. A magic square of squares would require all nine entries in this array to be distinct positive square numbers, including its central entry c (Bremner 2001, p. 290). The existence of such a 3×3 square remains open (Rome and Yamagishi 2025, p. 2).

For every integer order n>=4, a magic square of squares exists (Rome and Yamagishi 2025, p. 2). An example of order four is

 (68^2 29^2 41^2 37^2; 17^2 31^2 79^2 32^2; 59^2 28^2 23^2 61^2; 11^2 77^2 8^2 49^2),

whose magic constant is 8515 (Rome and Yamagishi 2025, p. 2). The Parker square is a partial attempt at the order-three problem, with repeated entries and one incorrect diagonal sum.


See also

Bimagic Square, Magic Square, Parker Square, Square Number

Explore with Wolfram|Alpha

References

Bremner, A. "On Squares of Squares II." Acta Arith. 99, 289-308, 2001. https://doi.org/10.4064/aa99-3-6.Numberphile. "Magic Squares of Squares (Are Probably Impossible)." Jun. 13, 2023. https://www.youtube.com/watch?v=Kdsj84UdeYg.Rome, N. and Yamagishi, S. "On the Existence of Magic Squares of Powers." Res. Number Theory 11, 91, 2025. https://doi.org/10.1007/s40993-025-00671-5.

Cite this as:

Weisstein, Eric W. "Magic Square of Squares." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/MagicSquareofSquares.html

Subject classifications