Introduction to Magic Squares
The sum of the numbers on each row, column, and two main diagonals is equal

Magic squares are ancient mathematical puzzles full of charm. Below is a detailed introduction:

1. What is a Magic Square?
A Magic Square is an n×n square matrix composed of distinct numbers that satisfies:
- The sum of numbers in each row and column is equal
- The sum of numbers in both main diagonals is also equal
- Typically uses consecutive natural numbers from 1 to n² (some variations may allow repeated numbers)

2. Key Concepts
Magic Constant
The common sum of each row/column/diagonal. Calculation formula:
`Magic Constant = n(n² + 1)/2`
- 3×3 Magic Square: Magic Constant = 15
- 4×4 Magic Square: Magic Constant = 34

Classification by Order
1. Odd-order(e.g., 3×3, 5×5)
2. Doubly even-order(4×4, 8×8, i.e., multiples of 4)
3. Singly even-order(6×6, 10×10, i.e., even numbers not multiples of 4)

Project Samples

Project Activity

See All Activity >

Follow Magic-square

Magic-square Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Magic-square!

Additional Project Details

Languages

Korean, French, Dutch, English, Portuguese, Chinese (Traditional), Indonesian, Chinese (Simplified), German, Japanese, Spanish, Arabic

Intended Audience

Science/Research, Religion

User Interface

X Window System (X11), Windows Aero

Registered

2025-04-13