How to Use
Enter order n:
- Generate: Complete magic square
- Verify: Check all sums
- Constant: M = n(n²+1)/2
Construction Methods
Odd n: Siamese (de la Loubère) — start top-center, move NE, drop down on collision. Doubly-even (n=4k): fill naturally, swap complementary pairs. Singly-even (n=4k+2): LUX method by Conway.
History
Lo Shu (洛書): Chinese legend ~2200 BCE. Dürer's 4×4 (1514, Melancolia I) includes 15-14 in bottom row = year. Indian magic squares from ~10th century. Islamic mathematicians created large orders.
Step-by-Step Instructions
- 1Enter order n.
- 2Generate square.
- 3Verify sums.
- 4Check constant.
- 5Try different sizes.