Magic Square Maker

• 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, 16, 09, 29 for September 29, 2016.)

• Read more at "behind the Magic Square Maker".

20 | 16 | 09 | 29 |

36 | 2 | 23 | 13 |

11 | 15 | 34 | 14 |

7 | 41 | 8 | 18 |

Sum is 74.

20 | 16 | 09 | 29 |

87 | 3 | 8 | 40 |

2 | 15 | 232 | 12 |

24 | 116 | 5 | 6 |

Product is 83,520.

• 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 | • 3+3 designs |