مربع سحري

عودة للموسوعة

مربع سحري

مربع سحري بالفارسية يرجع للقرن السادس عشر الميلادي - من دار الوثائق القومية المصرية.

في الرياضيات المسلية، المربع السحري هي مصفوفة مربعة ذات حيز

لاحظ حتى مجموع جميع سطر وعمود وقطر رئيسي يساوي دائما 15. يسمى هذا المجموع ثابتا سحريا وقيمته بصفة عامة:

قيم الثوابت السحرية لمربعات سحرية عادية ذات حيز

التاريخ

Iron plate with an orderستة magic square in Eastern Arabic Numerals from China, dating to the Yuan Dynasty (1271–1368).

Magic squares were known to Chinese mathematicians as early as 650 BC, and explicitly given since 570 AD, and to Islamic mathematicians possibly as early as the seventh century AD. The first magic squares of orderخمسة andستة appear in an encyclopedia from Baghdad circa 983, the Encyclopedia of the Brethren of Purity (Rasa'il Ihkwan al-Safa); simpler magic squares were known to several earlier Arab mathematicians. Some of these squares were later used in conjunction with magic letters, as in Shams Al-ma'arif, to assist Arab illusionists and magicians.


الصين (Lo Shu square, 3×3 magic square)

منطق رئيسي: Lo Shu Square
4 9 2
3 5 7
8 1 6

The Lo Shu Square, as the magic square on the turtle shell is called, is the unique normal magic square of order three in which 1 is at the bottom and 2 is in the upper right corner. Every normal magic square of order three is obtained from the Lo Shu by rotation or reflection.

بلاد فارس

Original script from the شمس المعارف.
Printed version of the previous manuscript. Eastern Arabic numerals were used.

بلاد العرب

Magic squares were known to Islamic mathematicians in Arabia as early as the seventh century. They may have learned about them when the Arabs came into contact with Indian culture and learned Indian astronomy and mathematics – including other aspects of combinatorial mathematics. Alternatively, the idea may have come to them from China. The first magic squares of orderخمسة andستة known to have been devised by Arab mathematicians appear in an encyclopedia from Baghdad circa 983, the Rasa'il Ikhwan al-Safa (the Encyclopedia of the Brethren of Purity); simpler magic squares were known to several earlier Arab mathematicians.

The magic square of order three was described as a child-bearing charm since its first literary appearances in the works of Jābir ibn Hayyān (fl. c. 721– c. 815) and al-Ghazālī (1058–1111) and it was preserved in the tradition of the planetary tables, known from H.C.Agrippa's work, too.

The Arab mathematician Ahmad al-Buni, who worked on magic squares around 1250, attributed mystical properties to them, although no details of these supposed properties are known. There are also references to the use of magic squares in astrological calculations, a practice that seems to have originated with the Arabs.

الهند

Magic Square at the معبد پارشڤاناثا في خاجوراهوبالهند.

The 3×3 magic square has been a part of rituals in India since Vedic times, and still is today. The Ganesh yantra is a 3×3 magic square. There is a well-known 10th-century 4×4 magic square on display في معبد پارشڤاناثا في خاجوراهو، الهند.

7 12 1 14
2 13 8 11
16 3 10 5
9 6 15 4

This is known as the Chautisa Yantra. Each row, column, and diagonal, as well as each 2×2 sub-square, the corners of each 3×3 and 4×4 square, the corners of each 2×4 and 4×2 rectangle, and the offset diagonals (12+8+5+9, 1+11+16+6, 14+2+3+15 and 7+11+10+6, 12+2+5+15, 1+13+16+4) sum to 34.

In this square, every second diagonal number adds to 17 (the same applies to offset diagonals). In addition to squares and rectangles, there are eight trapeziums – two in one direction, and the others at a rotation of 90 degrees, such as (12, 1, 16, 5) and (13, 8, 9, 4).

These characteristics (which identify it as one of the three 4×4 pandiagonal magic squares and as a most-perfect magic square) mean that the rows or columns can be rotated and maintain the same characteristics - for example:

12 1 14 7
13 8 11 2
3 10 5 16
6 15 4 9

The Kubera-Kolam, a magic square of order three, is commonly painted on floors in India. It is essentially the same as the Lo Shu Square, but with 19 added to each number, giving a magic constant of 72.

23 28 21
22 24 26
27 20 25


أوروپا

This page from Athanasius Kircher's Oedipus Aegyptiacus (1653) belongs to a treatise on magic squares and shows the Sigillum Iovis associated with Jupiter

In 1514 Albrecht Dürer immortalized a 4×4 square, of order four, in his famous engraving Melencolia I. It is described in more detail below.

The derivation of the sigil of Hagiel, the planetary intelligence of Venus, drawn on the magic square of Venus. Each Hebrew letter provides a numerical value, giving the vertices of the sigil.


المربع السحري لألبرشت دورر

تفصيلة من Melencolia I
16 3 2 13
5 10 11 8
9 6 7 12
4 15 14 1

Dürer's magic square can also be extended to a magic cube.

Dürer's magic square and his Melencolia I both also played large roles in Dan Brown's 2009 novel, The Lost Symbol.

المربع السحري في ساگرادا فاميليا

A magic square on the Sagrada Família church façade

The Passion façade of the Sagrada Família church in Barcelona, conceptualized by Antoni Gaudí and designed by sculptor Josep Subirachs, features a 4×4 magic square:

The magic constant of the square is 33, the age of Jesus at the time of the Passion. Structurally, it is very similar to the Melancholia magic square, but it has had the numbers in four of the cells reduced by 1.

1 14 14 4
11 7 6 9
8 10 10 5
13 2 3 15

While having the same pattern of summation, this is not a normal magic square as above, as two numbers (10 and 14) are duplicated and two (12 and 16) are absent, failing the 1→n2 rule.

Similarly to Dürer's magic square, the Sagrada Familia's magic square can also be extended to a magic cube.

This magic square has 24 groups of four fields with the sum of 139 and in the first row - shown at bottom-right - Ramanujan's date of birth.

المربع السحري لـ سرينيڤاسا رامانوجان

The Indian mathematician Srinivasa Ramanujan created a square where - in addition to several groups of four squares - the first row shows his date of birth, 22nd Dec. 1887.


بناء المربعات السحرية

هناك الكثير من الطرق القديمة والحديثة لبناء مربعات سحرية . يمكن تصنيف المربع السحري إلى ثلاثة أنواع رئيسية:

  • مربع سحري ذورتبة فردية n.
  • مربع سحري ذورتبة زوجية مفردة n (أي ان = n/2 عدد فردي).
  • مربع سحري ذورتبة زوجية مضاعفة n (أي ان = n/2 عدد زوجي).

طرق إنشاء مربعات سحرية فردية الرتبة

طريقة بناء مربع سحري فردي الرتبة.

تتميز المربعات السحرية فردية الرتبة في إمكانية تدوير المربع حتى تصبح الصفوف والأعمدة أقطارا بينما الأقطار صفوفا وأعمدة.قد يكون مركز المربع السحري دائما تتم العملية بالشكل الاتي:

1- تعبئة المربع بالأرقام 1 حتى n2. سيتم تكرار المربع السحري من جميع جوانبه لتسهيل فهم الأرقام المكملة خارجه عند الإزاحة.
2- قراءة أحد القطرين وليكن القطر الرئيسي ووضعه كعمود وسط المصفوفة الجديدة.
3- قراءة الخلايا الموازية فوق القطر الرئيسي مع إزاحتها خلية واحدة (من الصف والعمود) في جميع مرة عن سابقتها نحواليسار والأعلى. يتم التوقف بعد n-1)/2) خطا موازيا للقطر الرئيسي.
3- قراءة الخلايا الموازية تحت القطر الرئيسي مع إزاحتها خلية واحدة (من الصف والعمود) في جميع مرة عن سابقتها نحواليمين والأسفل. يتم التوقف بعد n-1)/2) خط موازيا للقطر الرئيسي.
4- يتم نقل العناصر الجديدة إلى مصفوفة جديدة مع تدويرها 45 درجة بحيث تصبح الصفوف والأعمدة الأصلية أقطارا والأقطار الأصلية صفوفا.

طرق إنشاء مربعات سحرية زوجية الرتبة (مضاعفة)

طريقة بناء مربع سحري ذورتبة زوجية مضاعفة.

تمتاز المربعات السحرية التي يقبل ثابتها السحري القسمة على أربعة بدون باقي بإمكانية تطبيق قاعدة التبديل بين المرافقات بعد جميع خليتين. يمكن تلخيص العملية كما يلي

1- تعبئة المربع بالأرقام 1 حتى n2.
2- التبديل بين جميع أركان المربع. مثلا في المربع 4×4 تكون أركانه هي 1، 4، 13، 16. عند التبديل بين الركن الأول والرابع أي 1، 16 والركن الثاني والثالث أي 4، 13.
3- يتم تكرار الإبدال لكل خليتين متتاليتين (مع ما يقابهما أي التبديل بين جميع a(n-i+1)(n-j+1) وaji) وهجر خليتين أخريين ابتداء من الخلية الثالثة في الصف الأول وحتى الوصول إلى مركز المربع مع عدم المساس بالأركان التي تم تغييرها في المستوى السابقة.

طرق إنشاء مربعات سحرية زوجية الرتبة (مفردة)

طريقة بناء مربع سحري ذورتبة زوجية مفردة.

تعتبر عملية إنشاء المربعات السحرية التي لا تقبل القسمة على أربعة بدون باقي صعبة نسبيا، كما أنها لا تتميز بالتماثل التام. أبسط الطرق تتمثل في إعادة تقسيم المربع إلى أربعة مربعات صغيرة متكافئة كما يلي:

1- تقسيم المربع إلى أربعة مربعات صغيرة متكافئة. لاحظ حتى المربعات الناشئة تعبير عن مربعات فردية.
2- تعبئة المربع الأول بالأرقام 1 حتى n2/4.
3- تحويل المربع في المستوى 2 إلى مربع سحري بالطريقة المستخدمة في المربعات السحرية الفردية.
4- نقل نسخة من هذا المربع في المربعات الثلاثة الباقية مع إضافة n2/4 لكل عنصر في المربع الثاني، n2/2 لكل عنصر في المربع الثالث، و3n2/4 لكل عنصر في المربع الرابع.
5- أصبح المربع السحري جاهزا تقريبا ولكن ينقصه شرط تحقق مجموع عناصر جميع قطر. في هذه الحالة يتم التبديل بين بعض عناصر مربعين متجاورين حتى يكتمل الشرط.

الصيغ العامة

مشاكل رياضية ذات صلة

استخدام عملية الطرح في مكعب من الاعداد من 1 إلى 9

التاريخ

الخوارزمية

برمجة المربعات السحرية

حساب المربعات السحرية يصبح سهلا بعد فهم خوارزمياتها ومن الممكن برمجتها بأي لغة برمجة. مثلا باستعمال متصفح الويب ولغة جافا سكربت يمكن إنشاء دالة المربع السحري لأي عدد طبيعي كما يلي

<html>
<script>
function magic(n)
{
   var i=0, j=(n-1)/2, p, k, m=[],  m1=[], m2=[];
    if(n<=0 || n-Math.ceil(n)!=0) return 'Error: n must be a positive integer..';
    if(n==2) return 'Error: there is no magic square of 2x2 !';
    if(n%4==0){//Double Even
        for (i=0; i<n/2; i++){
            for (j=0; j<n; j++){
                if((((i%4==0)||(i%4==3))&&((j%4==1)||(j%4==2)))||(((j%4==0)||(j%4==3))&&((i%4==1)||(i%4==2)))){
                    m1[j]= i*n+j+1;
                    m2[n-j-1]= n*(n-i)-j;
                 
                else{
                    m1[j]= n*(n-i)-j;
                    m2[n-j-1]=i*n+j+1;
                              
            m[i]=m1;
            m[n-i-1]=m2;
            m1=[];
            m2=[];
         
     
    else if(n%2==0){//Single Even
        p = n/2;
        m1 = magic(p);
        for (i=0; i<2*p; i++)m[i]=[];
        for (i=0; i<p; i++)for(j=0; j<p; j++){
            m[i][j] = m1[i][j]*1;
            m[i][j+p] = m1[i][j]*1+2*p*p;
            m[i+p][j] = m1[i][j]*1+3*p*p;
            m[i+p][j+p] = m1[i][j]*1+p*p;
          
        for(i=0; i<p; i++){
            k = (n-2)/4;
            for(j=0; j<k; j++){
                k2=m[i][j];
                m[i][j]=m[i+p][j];
                m[i+p][j]=k2;
             
         
        for(i=0; i<p; i++){
            for(j=n-k+1; j<n; j++){
                k2=m[i][j];
                m[i][j]=m[i+p][j];
                m[i+p][j]=k2;
             
         
        k2=m[k][0]; m[k][0]=m[k+p][0]; m[k+p][0]=k2;
        k2=m[k][k]; m[k][k]=m[k+p][k]; m[k+p][k]=k2;
     
    else{// Odd
        for (k=1; k<=n*n; k++)
        {
            m2[i*n +j] = k;
            i--;
            j++;
            if (k%n == 0){
                i += 2;
                j--;
             
            if (j==n)j = 0;
            if (i==-1) i = n-1;
         
        for(i=0;i<n;i++){for(j=0;j<n;j++)m1[j]=m2[i*n+j];m[i]=m1;m1=[]; 
     
    m[0][0]=' '+m[0][0];
    for (k=0; k<n; k ++) m[k][n-1] += '\n';
    return m;
 
</script>
<noscript> Java script must be enabled..<br /> </noscript>
<body>
Magic square of <input id=ent value="6">
<input type="button" value = " = " onclick ="disp.value=magic(ent.value*1)">
<br /><textarea id="disp" style="width: 780px; height: 300px">
</textarea>
</body>
</html>

تطبيقات

للمربع السحري بعض التطبيقات المسلية والفهمية أحيانا. يمكن بواسطته مثلا تحليل المساحات بشكل منتظم. مثال ذلك المسألة التالية:

لوكان لدينا 81 بترة مضىية بحيث حتى كتلة جميع بترة تساوي ترتيبها. أي حتى كتلة الأولى 1 غرام والثانية 2 غرام إلى غير ذلك وتطلب الأمر توزيعها بشكل عادل بينتسعة أفراد. نلاحظ حتى إعادة توزيع هذه البتر في مربع سحري 9×9 يعطي الحل الأمثل بحيث يصبح نصيب جميع فرد أحد صفوف المربع. يمكن أيضا توزيعها بطريقة الأعمدة بحيثقد يكون نصيب جميع فرد أحد أعمدة المربع السحري.

المربعات السحرية في الثقافة الشعبية

Macau stamps featuring magic squares

On October 9, 2014 the post office of Macao in the People's Republic of China issued a series of stamps based on magic squares. The figure below shows the stamps featuring the nine magic squares chosen to be in this collection.

The metallic artifact at the center of the X-Files episode Biogenesis is alleged by Chuck Burks to be a magic square.

Mathematician Matt Parker attempted to create a 3x3 magic square using square numbers in a YouTube video on the Numberphile channel. His failed attempt is known as the Parker Square.

انظر أيضاً

  • Antimagic square
  • Arithmetic sequence
  • Combinatorial design
  • Freudenthal magic square
  • John R. Hendricks
  • Hexagonal tortoise problem
  • Latin square
  • Magic15 - A game using a 3-by-3 magic square
  • Magic circle
  • Magic cube classes
  • Magic series
  • Most-perfect magic square
  • Nasik magic hypercube
  • Prime reciprocal magic square
  • Room square
  • Square matrices
  • Sriramachakra
  • سودوكو
  • Unsolved problems in mathematics
  • Vedic square

مراجع

  1. ^ Magic Square" by Onkar Singh Wolfram MathWorld.
  2. ^ The On-Line Encyclopedia of Integer Sequences
  3. ^ Swaney, Mark. "Mark Swaney on the History of Magic Squares". Archived from the original on 2004-08-07.
  4. ^ The most famous Arabic book on magic, named "Shams Al-ma'arif (العربية: كتاب شمس المعارف‎), for Ahmed bin Ali Al-boni, who died about 1225 (622 AH). Reprinted in Beirut in 1985
  5. ^ Peter, J. Barta, The Seal-Ring of Proportion and the magic rings (2016), pp. 6-9.
  6. ^ Jābir ibn Hayyān, Book of the Scales. French translation in: Marcelin Berthelot (1827-1907), Histoire de sciences. La chimie au moyen âge, Tom. III: L'alchimie arabe. Paris, 1893. [rprt.. Osnabruck: O. Zeller, 1967], pp. 139-162, in particular: pp. 150-151
  7. ^ al-Ghazālī, Deliverance From Error (al-munqidh min al-ḍalāl ) ch. 145. Arabic: al-Munkidh min al-dalal. ed. J. Saliba – K. Ayyad. Damascus: Maktab al-Nashr al-'Arabi, 1934, p. 79. English tr.: Richard Joseph McCarthy, Freedom and Fulfillment: An annotated translation of al-Ghazali's al-Munkidh min al-Dalal an other relevant works of al-Ghazali. Boston, Twayer, 1980. He refers a book titled 'The Marvels of Special Properties' as his source. This square was named in the Orient as the „Seal of Ghazali” after him.
  8. ^ This tradition about a series of magic squares from order three to nine, which are associated with the seven planets, survives in Greek, Arabic, and Latin versions. The Latin version is Liber de septem figuris septem planetarum figurarum Geberi regis Indorum. This treatise is the identified source of Dürer and Heinrich Cornelius Agrippa von Nettesheim. Cf. Peter, J. Barta, The Seal-Ring of Proportion and the magic rings (2016), pp. 8-9, n. 10
  9. ^ Andrews, William Symes (1917). (2nd ed.). Open Court Publishing Company. pp. 124–126.
  10. ^ "Magic cube with Dürer's square" Ali Skalli's magic squares and magic cubes
  11. ^ "Magic cube with Gaudi's square" Ali Skalli's magic squares and magic cubes
  12. ^ Magic Squares by Del Hawley NRICH
  13. ^ صفحة المعالج الرياضي مصممة كليا بلغة HTML وجافا سكربت
  14. ^ Macau Post Office web site
  15. ^ Macau's magic square stamps just made philately even more nerdy The Guardian Science, November 3, 2014

وصلات خارجية

  • Eaves, Laurence (2009). "Magic Square". Sixty Symbols. Brady Haran for the University of Nottingham.
  • مربع سحري at the Open Directory Project
تاريخ النشر: 2020-06-04 18:15:29
التصنيفات: Articles containing non-English-language text, مسائل غير محلولة في الرياضيات, مصفوفات, رياضيات مسلية, مربعات سحرية, رموز سحرية, اكتشافات رياضية صينية

مقالات أخرى من الموسوعة

سحابة الكلمات المفتاحية، مما يبحث عنه الزوار في كشاف:

آخر الأخبار حول العالم

سباليتى يؤكد رحيله: نابولى يستحق الأفضل وأنا لست مستعدًا لذلك

المصدر: موقع الدستور - مصر التصنيف: سياسة
تاريخ الخبر: 2023-05-29 18:21:18
مستوى الصحة: 48% الأهمية: 51%

وزير الزراعة: الإفراج عن 254 ألف طن أعلاف خلال أسبوع - أخبار مصر

المصدر: الوطن - مصر التصنيف: سياسة
تاريخ الخبر: 2023-05-29 18:20:32
مستوى الصحة: 55% الأهمية: 57%

أخنوش يمثل الملك في مراسيم تنصيب الرئيس الجديد لنيجيريا

المصدر: الأيام 24 - المغرب التصنيف: سياسة
تاريخ الخبر: 2023-05-29 18:20:33
مستوى الصحة: 66% الأهمية: 78%

الزراعة: الإفراج عن 254 ألف طن أعلاف بـ115 مليون دولار خلال أسبوع

المصدر: صوت الأمة - مصر التصنيف: سياسة
تاريخ الخبر: 2023-05-29 18:20:40
مستوى الصحة: 57% الأهمية: 59%

تشكيل بيراميدز فى مواجهة الاتحاد السكندرى بالدورى

المصدر: موقع الدستور - مصر التصنيف: سياسة
تاريخ الخبر: 2023-05-29 18:21:17
مستوى الصحة: 50% الأهمية: 62%

والد هدير يشكر الرئيس على استجابته لعلاج ابنته: "سميتها هدير السيسى"

المصدر: موقع الدستور - مصر التصنيف: سياسة
تاريخ الخبر: 2023-05-29 18:21:05
مستوى الصحة: 57% الأهمية: 65%

خبير يكشف لـ”الأيام24″ أسرار “الزلزال السياسي” في إسبانيا

المصدر: الأيام 24 - المغرب التصنيف: سياسة
تاريخ الخبر: 2023-05-29 18:20:27
مستوى الصحة: 75% الأهمية: 85%

وزير الصحة يؤكد الحرص على رفع كفاءة القابلات ضمن منظومة العمل

المصدر: موقع الدستور - مصر التصنيف: سياسة
تاريخ الخبر: 2023-05-29 18:21:16
مستوى الصحة: 51% الأهمية: 66%

انطلاق الجلسة الافتتاحية لورشة العمل التصديقية لمنظمة الكوميسا

المصدر: موقع الدستور - مصر التصنيف: سياسة
تاريخ الخبر: 2023-05-29 18:21:13
مستوى الصحة: 51% الأهمية: 51%

بابا الفاتيكان يستضيف أمين عام رابطة العالم الإسلامي

المصدر: صوت الأمة - مصر التصنيف: سياسة
تاريخ الخبر: 2023-05-29 18:20:46
مستوى الصحة: 52% الأهمية: 62%

الإفتاء: تأخير توزيع التركة بلا عذر أو إذن محرَّم شرعًا

المصدر: صوت الأمة - مصر التصنيف: سياسة
تاريخ الخبر: 2023-05-29 18:20:43
مستوى الصحة: 56% الأهمية: 55%

مواعيد قطارات القاهرة - أسيوط خلال يونيو 2023

المصدر: موقع الدستور - مصر التصنيف: سياسة
تاريخ الخبر: 2023-05-29 18:21:15
مستوى الصحة: 57% الأهمية: 63%

وزيرة التخطيط: ما تحقق في سيناء الآن كان حلما كبيرا منذ عدة سنوات

المصدر: موقع الدستور - مصر التصنيف: سياسة
تاريخ الخبر: 2023-05-29 18:21:12
مستوى الصحة: 60% الأهمية: 54%

الرئيس السيسى يوجه بعلاج شابة تعانى من تيبس فى الفكين

المصدر: موقع الدستور - مصر التصنيف: سياسة
تاريخ الخبر: 2023-05-29 18:21:09
مستوى الصحة: 58% الأهمية: 62%

رئيس الوزراء يستقبل نظيره الفلسطينى والوفد المرافق له بمطار القاهرة

المصدر: موقع الدستور - مصر التصنيف: سياسة
تاريخ الخبر: 2023-05-29 18:21:06
مستوى الصحة: 58% الأهمية: 51%

تحميل تطبيق المنصة العربية