0 views

Uploaded by hamza

magic

- jrxml_params
- Test Matematika Mid Semester 2 Class 7 2011
- Modulo Art -Computer Based Design
- Assign_Questions
- Grade7-221933-5-9895
- Fourier Transform Examples
- 10.1.1.6
- 024.ps
- Table of Thermo Relations
- r
- Binder 1
- Computer Science Formulas
- Actuarial Mathematics-Chapter 3 Solutions
- LLL Wikipedia
- LCivil01
- folland2
- Definition of a Limit
- Solution Manual for Microcomputer Engineering 3rd Edition Miller SM Sample 1 1
- CH15
- Alg4

You are on page 1of 2

Marián Trenkler

Magic squares fascinated people throughout centuries. A magic cube is a generalization of a magic square.

Probably the first magic cube appeared in a letter of Pierre de Fermat from 1640.

A magic cube of order n is a cubical array

Mn = [mn (i, j, k); 1 ≤ i, j, k ≤ n], (1)

containing natural numbers 1, 2, . . . , n3 such that the sums of the numbers along each row (n-tuple of elements

having the same coordinates in two places) and also along each of its four great diagonals are the same, e.i.

n(n3 +1)

2 .

Figure 1 shows the magic cube M3 which was constructed using the formula (1). The element m3 (1, 1, 1) = 8

is in three rows containing the triples {8, 15, 19}, {8, 24, 10}, {8, 12, 22}. On the four diagonals there are the

triples {8, 14, 20}, {19, 14, 9}, {10, 14, 18} and {6, 14, 22}.

Here we gives an algorithm for making magic cubes of order n 6= 2. The proof of the correctness of our

formulas follows from [3] and [4]. We use the following notation:

x (mod n) := the remainder after division of x by n

x := n + 1 − x,

x ∗

:= min{x, x}

(

n

0 for 1≤x≤ 2

e :=

x n

1 for 2 < x ≤ n.

We construct a magic cube Mn = [mn (i, j, k)] of order n using the following three formulas:

1. If n ≡ 1 (mod 2) then

with ai,j,k = (i − j + k − 1) (mod n), bi,j,k = (i − j − k) (mod n), ci,j,k = (i + j + k − 2) (mod n)

2. If n ≡ 0 (mod 4) then

(

(i − 1) n2 + (j − 1) n + k if F(i, j, k) = 1

mn (i, j, k) = 2

(i − 1) n + (j − 1) n + k if F(i, j, k) = 0

Figure 1:

1

where

j+e

F(i, j, k) = (i + j + k + ei + e k) (mod 2)

n

3. If n ≡ 2 (mod 4) (in this case t = 2 is odd) then

where

u = (i∗ − j ∗ + k ∗ ) (mod t) + 1,

j+e

v = 4ei + 2e k + 1, and

4 )

d(1, v) 7 3 6 2 5 1 4 0

d(2, v) 3 7 2 6 1 5 0 4

d(3, v) 0 1 3 2 5 4 6 7

d(2x + 2, v) 0 1 2 3 4 5 6 7

d(2x + 3, v) 7 6 5 4 3 2 1 0

Using analogous formulas it is easy to make a computer program which constructs a magic square for every

n 6= 2.

References

[1] W.S.Andrews, Magic Squares and Cubes, Dover, New York, 1960

[2] W.H.Benson, O.Jacoby, Magic cubes, New recreations, Dover, New York, 1981

[3] M.Trenkler, A construction of magic cubes, The Mathematical Gazette, 84, 36–41, March 2000

[4] M.Trenkler, Magic p-dimensional cubes, Acta Arithmetica 96, 361–364, 1998

e-mail: trenkler@fedu.ku.sk

(Published - The ΠM E Journal, Vol. 12, No. 2, pp. 105-106, Spring 2005)

- jrxml_paramsUploaded byskadam00
- Test Matematika Mid Semester 2 Class 7 2011Uploaded byEko Budi Prasetyo
- Modulo Art -Computer Based DesignUploaded byLivin Rejuso
- Assign_QuestionsUploaded byAsma Zul
- Grade7-221933-5-9895Uploaded bychandresh mishra
- Fourier Transform ExamplesUploaded byhamza abdo mohamoud
- 10.1.1.6Uploaded byGabriel Elpers
- 024.psUploaded bylmvillada
- Table of Thermo RelationsUploaded bybilly435
- rUploaded byholdonpainends
- Binder 1Uploaded bykexiongli
- Computer Science FormulasUploaded bySheeraz Ahmed
- Actuarial Mathematics-Chapter 3 SolutionsUploaded byAiz Dan
- LLL WikipediaUploaded by00carambola
- LCivil01Uploaded byAmeer Elatma
- folland2Uploaded byCatalin Toma
- Definition of a LimitUploaded byJonnifer Quiros
- Solution Manual for Microcomputer Engineering 3rd Edition Miller SM Sample 1 1Uploaded byAnonymous yKQXlL
- CH15Uploaded byEldreds Guillermo Enalisan
- Alg4Uploaded byKamal Lohia
- Tutorial 5(3)Uploaded byWei Wei
- Systems Day 1 WorksheetUploaded bymbpershan
- MT PAPER 1 Y6 marchUploaded byarasu86
- 200701 UMaths TMA2 AnsGuideUploaded byapi-26781128
- Chris - Family of Functions ProofUploaded byChris Alexander
- MATHS GRADE 11_Sets and Venn DiagramUploaded byLeslie Armstrong
- Initial ValueUploaded bymeeranatht
- scholarschallenge5Uploaded byapi-255402067
- Mathematics Workshop for Form 2Uploaded byGauveri Ganapathy
- Thought Provoking Problems 4Uploaded byAnirudh Krishana

- AstrologieEsotériqueUploaded byPatricia Corsini
- Horoscope ChinoisUploaded byYanikdj
- Y0swDwAAQBAJUploaded byhamza
- Doctrine Des Quatre ÉlémentsUploaded byhamza
- Doctrine Des Quatre ÉlémentsUploaded byhamza
- Doctrine Des Quatre ÉlémentsUploaded byhamza
- Doctrine Des Quatre ÉlémentsUploaded byhamza
- Directional Astrology by V.G.RELE (READ DESCRIPTION WITHOUT FAIL)Uploaded bysharath kumar.r
- Arthrose, Arthrite, Polyarthrite RhumatoïdeUploaded byhamza
- astrologie.pdfUploaded bymimor33
- 4 Astrologie EnergétiqueUploaded byhamza
- 4 Astrologie EnergétiqueUploaded byhamza
- 4 Astrologie EnergétiqueUploaded byhamza
- Y0swDwAAQBAJUploaded byhamza
- Western Sidereal AstrologyUploaded byMarco Marice
- HERBORISTERIE-1Uploaded byhamza
- HERBORISTERIE-1Uploaded byhamza
- HERBORISTERIE-1Uploaded byhamza
- HERBORISTERIE-1Uploaded byhamza
- HERBORISTERIE-1Uploaded byhamza
- HERBORISTERIE-1Uploaded byhamza
- astrologie.pdfUploaded bymimor33
- astrologie.pdfUploaded bymimor33
- astrologie.pdfUploaded bymimor33
- 4 Astrologie EnergétiqueUploaded byhamza
- 4 Astrologie EnergétiqueUploaded byhamza
- HERBORISTERIE 2Uploaded bykundanaganath_261839
- HERBORISTERIE 2Uploaded bykundanaganath_261839
- HERBORISTERIE 2Uploaded bykundanaganath_261839
- Le Corps VitalUploaded byPierreOrmel

- Chun Wendy Hui Kyong on Sourcery or Code as FetishUploaded byJason Burrage
- CRM on BanglalinkUploaded byshrjbln
- 000 Syllabus (1)Uploaded byGillian Alvero
- A Review on Smart Bus Ticketing System using QR-CodeUploaded byIRJET Journal
- Crankshaft DeflectionUploaded byFaizan Yousuf
- DSAPUploaded bykarmugelana
- HIstology Experiment 12Uploaded byPearlregine Cianne Miranda
- 9781107596078u10_p92-101Uploaded byStephanie Oliveira Principal
- district meeting calendar websiteUploaded byapi-253281432
- Estimating WorksheetUploaded byjuluces
- MLEUploaded byPoornima Pamulapati
- 拉岡講座302 the Eye and the Gaze 眼睛與凝視Uploaded byChun-hsiung Chen
- RSO Experience in the Utilization of Repetitive Surge OscillographsUploaded bycarlrvdv
- Rhetorical Analysis of HappyUploaded byJohn Mccarthy
- RSV2 CT Japanese 1Uploaded byMasilamanian Vaidyanathan
- rg12864b-biw-vUploaded byDanailaDragos
- Sande Low SkiUploaded bycorele
- VRV IV-FXVQUploaded bycyclon2010
- Application Programming and SQL GuideUploaded by曾令燊
- General RelativityUploaded bykebarcla
- Eurocargo Euro VUploaded byCiumarnean Bogdan
- ROLE OF RELATIVE STIFFNESS IN PILED-RAFT FOUNDATION SYSTEMUploaded byVivek Kumawat
- 01_Book_Salager_Briceo.pdfUploaded byPedro Bortot
- LM1458Uploaded byPadmo Padmundono
- Powerful Forecasting With MS Excel SampleUploaded bylpachasm
- More "human" or simply less Neanderthal? "Classic" vs "Levantine" NeanderthalsUploaded byNoelle Tankard
- The Hybrid Pi and T Models LectureUploaded byhasnaintoaha
- Portfolio ResumeUploaded byTyler Shumock
- FundamentalsofHeatPipesIIUploaded byRichard Christensen
- Negotiation TheoryUploaded byBenjamin Muhire