Magic squares are ancient mathematical puzzles full of charm. Below is a detailed introduction:
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
- Odd-order (e.g., 3×3, 5×5)
- Doubly even-order (4×4, 8×8, i.e., multiples of 4)
- Singly even-order (6×6, 10×10, i.e., even numbers not multiples of 4)
Note: After downloading and running the program, view the detailed step-by-step example diagram on the program webpage.
Note: Create a magic square.xlsx file by inputting numerical values, including detailed step-by-step reference tables.
Program download address:https://github.com/jiqi136/Magic-square/releases/download/untagged-8e3467f4e2a4ee5e386f/Infinite.Numerical.Magic.Square.V1.1.zip
Fill number 1 in the first cell of the top row, then fill increasing odd numbers spaced apart until reaching the square number 25.
Fill number 2 in the last cell of the bottom row, then fill increasing even numbers spaced apart until reaching 24 (square number minus one).
Insert blank rows and columns between each existing row and column.
- Connect the midpoints of the four edges to form a diamond-shaped frame.
- Numbers outside the diamond frame are folded into the frame along the diagonal axis like paper folding.
Rotate the diamond frame 45 degrees to align, then copy the numbers within the frame to a new table.
Complete: Batch verify sum values using 'Auto Sum' in the 'Home' tab at the top right of the xls sheet.
Singly even: Even numbers not divisible by 4 (e.g., 6,10,18...)
Note: After downloading and running the program, view the detailed step-by-step example diagram on the program webpage.
Note: Create a magic square.xlsx file by inputting numerical values, including detailed step-by-step reference tables.
Program download address:https://github.com/jiqi136/Magic-square/releases/download/untagged-8e3467f4e2a4ee5e386f/Infinite.Numerical.Magic.Square.V1.1.zip
Introduce the creation of a single even 6 divided by 2 to form a 3 magic square.
Multiply each value of the 3 magic square by 4 and subtract 3.
Split the 3 magic square into Table A and Table B with alternating values.
Expand each value in Table A with 4 adjacent numbers to form sub-squares.
Increment by 1 in forward order: sub-square top row [n+0, n+1]
, bottom row [n+2, n+3]
.
Decrement by 1 in reverse order: sub-square top row [n+3, n+2]
, bottom row [n+1, n+0]
.
- Swap left-right in first row's sub-squares, ignoring last corner.
- Swap top-bottom in last column's sub-squares, ignoring last corner.
- Swap left-right in bottom-right corner of last row.
- Swap top-bottom in bottom-left corner of first column.
Complete: Batch verify sum values using 'Auto Sum' in the 'Home' tab at the top right of the xls sheet.
Doubly even: Even numbers divisible by 4 (e.g., 8,12,16...)
Note: After downloading and running the program, view the detailed step-by-step example diagram on the program webpage.
Note: Create a magic square.xlsx file by inputting numerical values, including detailed step-by-step reference tables.
Program download address:https://github.com/jiqi136/Magic-square/releases/download/untagged-8e3467f4e2a4ee5e386f/Infinite.Numerical.Magic.Square.V1.1.zip
Introducing the creation of a doubly even 8 magic square divided by 2 into 4 magic squares.
Each value of the 4 magic square is multiplied by 4 and then subtracted by 3.
Expand each value into 4 adjacent numbers:
Top row [n+0, n+3]
, bottom row [n+2, n+1]
.
Example with n=1: Small square's top row [1, 4]
, bottom row [3, 2]
.
Expansion method for the lower section:
Top row [n+3, n+0]
, bottom row [n+1, n+2]
.
Complete: Batch verify sum values using 'Auto Sum' in the 'Home' tab at the top right of the xls sheet.