Combinatorics and Magic squares

In summary, the conversation discusses the topic of magic squares and the process of filling a square of order n in a symmetrical and logical way to achieve a given sum of numbers. The focus is on combinatorics analyses and the number of possible combinations that can result in a specific sum. The conversation also mentions the difficulty of determining the combinatorics equations and the number of possibilities for a magic square without rotation or mirror symmetries. The speaker thanks the other person for a helpful Wikipedia link and notes that the question is an unsolved problem in mathematics.
  • #1
NEW4M
4
0
TL;DR Summary
Magic squares. How to fill a magic square of order n in a symmetrical and logical way by analyzing the possible ways to achieve a given sum of numbers.
I have questions about how to count number of ways to fill a magic square of order n.
Hi there. Happy new year.
I am interested in magic squares. I am particularly interested in how to fill a square of order n in a symmetrical and logical way by analyzing the possible ways to achieve a given sum of numbers.
My question is about combinatorics analyses.
For example for a square of order n=4, the sum of rows, columns and diagonals must be equal to S=n *(n²+1)/2 =34.
There are C4,16 = 1,820 combinations of 4 different numbers between 1 and 16. Only 86 of these combinations are equal to 34, among those possible. And among these 86 combinations, there are several ways to assemble them to form such a magic square of order 4 which require a total of 10 different combined sums (4 rows + 4 columns + 2 diagonals).
My questions are:
a) How to compute this number of combinations whose sum makes 34 (equal to 86 possibilities in the quoted case) knowing that i) we have to consider all combinations of 4 different digits taken among n=1 to n=16, that is to say 1,820 (apply also the remark point iii); ii) in a sum, one must have only different digits used once; iii) all permutations of a sequence are counted only once (so for example, the permuted sums 1+3+14+16 = 3+14+1+16=14+3+16+1=. ...etc...=34 are counted only once; d) the possible sums range from the smallest 1+2+3+4 = 10 to the largest 13+14+15+16=58; e) the sum we are interested in are that equal to S=n *(n²+1)/2 =34. It is thus a question of counting under these conditions, how many of these combinations among 1820 make a sum S=34. What are the combinatorics equations ?
b) How many possibilities are there to form such a magic square except for rotation or mirror symmetries?
How to establish these different combinatorics computations?
The combinatoric analysis, taking into account multiple partitions without permutation, does not seem simple to determine at first sight.
Thank you very much.
New4M.
 
Mathematics news on Phys.org
  • #2
If I read this Wikipedia link correctly, the question you are asking is an unsolved problem in mathematics.
 
  • Like
Likes NEW4M
  • #3
Thank you so much for the link.
 

1. What is Combinatorics?

Combinatorics is a branch of mathematics that deals with counting and arranging objects in a systematic way.

2. What are Magic squares?

Magic squares are square grids filled with numbers in such a way that the sum of each row, column, and diagonal is the same.

3. How do you construct a Magic square?

There are various methods to construct a Magic square, but the most common one is the Siamese method, where numbers are placed in a spiral pattern starting from the center and moving towards the edges.

4. What is the significance of Magic squares?

Magic squares have been studied for centuries due to their mathematical and mystical properties. They have also been used in puzzles, games, and even in cryptography.

5. Can Magic squares be of any size?

Yes, Magic squares can be of any size as long as it is a square grid (equal number of rows and columns). However, the most common and well-studied Magic squares are of odd order (3x3, 5x5, 7x7, etc.).

Similar threads

Replies
68
Views
9K
Replies
2
Views
628
  • General Math
Replies
1
Views
666
  • General Math
Replies
1
Views
1K
  • General Math
Replies
1
Views
718
Replies
8
Views
2K
Replies
6
Views
2K
  • Precalculus Mathematics Homework Help
Replies
32
Views
839
Replies
1
Views
763
Replies
2
Views
1K
Back
Top