The Lucas Magic Square

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

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.

Contributed by: Ed Pegg Jr (August 2015)
Open content licensed under CC BY-NC-SA




Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.