• This page allows you to choose 4 integers (0 ~ 100,000) and creates a 4x4 magic square with the specified 4 numbers in the top row. ("Magic square" in Wikipedia)
• All numbers are unique unless duplicate(s) / triplicate / quadruplicate are specified for the top row.
• Negative numbers are used only if no solution is available otherwise.
• The numbers in the top row appear with leading 0's if they are entered with leading 0's.
(Useful for a date matrix, e.g., enter 20, 09, 07, 03 for July 03, 2009.)
• Read more at "behind the Magic Square Maker".
| 20 | 09 | 07 | 03 |
| -8 | 18 | 34 | -5 |
| 15 | -10 | -3 | 37 |
| 12 | 22 | 1 | 4 |
Sum is 39.
Negative numbers are used.
| 20 | 09 | 07 | 03 |
| -3 | -7 | 5 | 36 |
| -1 | 4 | -27 | 35 |
| 63 | -15 | -4 | 1 |
Product is 3,780.
Negative numbers are used.
• This program is written in R (r-project.org).
The "brew" package is used to integrate R and HTML.
| • Magic Square Maker | • How Many Days | • Pythagorean Triples Finder | • Prime Factorization | • Bivariate Baseball Score Plots |