1, the history of the Rubik's cube.
The history of Rubik's Cube can be traced back to ancient China, and the earliest Rubik's Cube can be traced back to the Zhou Dynasty around 650 BC. Magic Square has been widely concerned and studied in the history of China.
In Europe, the concept of magic square was first put forward by Italian mathematician Rodovico Ferrari in16th century. Since then, many mathematicians in Europe have conducted in-depth research and discussion on the magic square.
2. Programming of Rubik's Cube.
Using computer programming, we can solve the magic square of any order (but the number of bits is limited by the computer and can only be any order in a limited range), and using Matlab to calculate the magic square of order n, the command is: A=magic(n).
Some square magic squares and high-order magic squares can also be obtained quickly by computer-aided calculation. A Rubik's cube, a Rubik's cube, a multidimensional Rubik's cube can even be obtained through simple formulas. Some types of square magic squares, even high-order and high-dimensional magic squares, can also be obtained by formulas.
Types of magic squares:
1, complete Rubik's cube.
A complete magic square means that the sum of the rows, columns, main diagonals and pan diagonals of the magic square is equal.
2. Take the Rubik's Cube as an example.
The multiplication magic square refers to a magic square, and the products of the numbers on the diagonal are equal.
3. High-order Rubik's Cube.
The n-order magic square is an n-order square matrix composed of the first n 2 (the second power of n) natural numbers, and the sum of the n numbers contained in each row, column and diagonal is equal.
4. Anti-Rubik's Cube.
In a square composed of a number of neatly arranged numbers, the sum of several numbers on any horizontal line, vertical line and diagonal line is not equal, and a chart with this property is called "anti-magic square".
The biggest difference between the anti-Rubik's cube and the positive Rubik's cube is magic and difference. All the magic sums of the positive magic square are the same, while all the magic sums of the negative magic square are different. The so-called magic sum is the sum of several numbers on any row, column and diagonal of the magic square.