Magic-Like Squares

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.

A magic-like square of order four is an arrangement of integers in a 4×4 square such that the sum of the four numbers in each row, column, and diagonal is the same constant, the magic sum .


A magic square of order four contains the integers from 1 to 16. Magic-like squares do not and some integers may be repeated. However, in these magic-like squares, all 2×2 corners, the four corners, and the 2×2 center sum to the magic sum.

The second slider helps you find the magic sum.


Contributed by: Andrej Woelfer (March 2011)
Open content licensed under CC BY-NC-SA



Here is the construction of this kind of magic-like square with the magic sum .

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.