WOLFRAM|DEMONSTRATIONS PROJECT

The Lucas Magic Square

​
choose square
20
14
3
10
5
9
13
8
15
4
0<a<b<c-a
b≠2a
In a magic square, the sums along a row, column, or diagonal are all the same. In the 1890s, Édouard Lucas classified all 3×3 magic squares with distinct integer values, as shown in the thumbnail. This Demonstration uses the Lucas technique to generate a few thousand such squares.