Question
Which supplied square grids have distinct positive square integers in every cell and the same sum on every row, column and both long diagonals? The order is the number of rows. A successful order-four example cannot settle existence at order three.
Data
The lab supplied three fixed grids. Pierrat, Thiriet and Zimmermann reproduce Euler’s order-four example. The negative controls are attributed to Matt Parker and Lee Sallows. They are individual witnesses, not a sample from a search distribution.
Method
For each entry take the integer square root and square it back. Count distinct values. Sum each row, each column and both diagonals using exact integers. Set the target to the first-row sum. Run the lab verifier and independently enumerate the same lines.
Results
| Square | Order | Distinct entries | First-row sum | Main diagonal | Other diagonal | Lines at target | Verdict |
|---|---|---|---|---|---|---|---|
| Euler | 4 | 16 | 8,515 | 8,515 | 8,515 | 10 of 10 | Pass |
| Parker | 3 | 6 | 3,051 | 3,051 | 4,107 | 7 of 8 | Fail |
| Sallows | 3 | 9 | 21,609 | 38,307 | 21,609 | 7 of 8 | Fail |
| Row | Column 1 | Column 2 | Column 3 | Column 4 |
|---|---|---|---|---|
| 1 | 4,624 | 841 | 1,681 | 1,369 |
| 2 | 289 | 961 | 6,241 | 1,024 |
| 3 | 3,481 | 784 | 529 | 3,721 |
| 4 | 121 | 5,929 | 64 | 2,401 |
Checks
Computational observation. Both verifiers accepted Euler and rejected Parker and Sallows. Parker repeats 1, 841 and 1,681, with anti-diagonal 4,107 against 3,051. Sallows has nine distinct entries but a main diagonal of 38,307 against 21,609. Neither rejection rules out other order-three arrangements.
What it means in plain words
A near miss can satisfy every horizontal and vertical test. Checking distinctness and both diagonals explains exactly where each example succeeds or fails.
References
Euler’s example · Sallows’s account · Integer arithmetic
- Pierrat, Thiriet and Zimmermann, Magic Squares of Squares
Euler’s grid and its common sum of 8515.
Opened 2026-11-26 - Lee Sallows, The Lost Theorem
Historical source of the second order-three control.
Opened 2026-11-26 - Python language documentation, numeric types
Exact integer arithmetic in the independent witness checks.
Opened 2026-11-26
Reproduce
From the study folder, run python code/check.py. The script verifies the included grids and verifier, checks every line independently and rebuilds both tables and the figure. SHA-256 of code/inputs.json: 4b9145cf. Checked 26 November 2026.
Change log
25 November 2026. We recorded the original work.
26 November 2026. Checked the cited sources.
3 December 2026. Source files and reproduction notes were made portable for the archived copy. No result changed.