• 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, 15, 05, 27 for May 27, 2015.)
• Read more at "behind the Magic Square Maker".

N1 :  N2 :  N3 :  N4 : 
 

Additive

20150527
2210287
24111814
1311619

Sum is 67.

Multiplicative

20150527
13513010
-15-50-27-2
-1-54-10-75

Product is 40,500.
Negative numbers are used.

 

• This program is written in R (r-project.org).
    The "brew" package is used to integrate R and HTML.