Fermat's Magic Cube

In 1640, Pierre de Fermat sent a letter to Marin Mersenne about an order-4 magic cube with 64 magic sums out of 76 possible. In a perfect magic cube the rows, columns, pillars, space diagonals, and the diagonals of each n×n orthogonal slice sum to the same number. For the order-4 case, numbers 1 to 64 are required. In 1972, Richard Schroeppel proved that a perfect order-4 magic cube was impossible (see Details).
In 2004, Walter Trump found an order-4 cube with eight more lines that summed to 130.



  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


Lemma 1: In a magic square of order 4, the sum of the corners is .
Proof: Add together each edge of the square and the two diagonals. This covers the square entirely, and each corner twice again. This adds to , so twice the corner sum is .
Lemma 2: In a magic cube of order 4, the sum of any two corners connected by an edge of the cube is .
Proof: Call the corners and . Let , , and , be the corners of any two edges of the cube parallel to . Then , , and are all the corners of magic squares. So ; ; .
Let (= 130) be the sum of a row. Consider a corner . There are three corners connected by an edge to . Each must have the same value , contradicting the requirement that all values are different. Thus, there is no magic cube of order 4.
QED. (Proof by Richard Schroeppel, 1972)
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2018 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+