Diagonal magic cube
A Diagonal Magic Cube is an improvement over the simple magic cube. It is the second of six magic cube classes when ranked by the number of lines summing correctly.
In a diagonal magic cube of order m, all 6m of the diagonals in the m planes parallel to the top, front, and sides of the cube must sum correctly. This means that the cube contains 3m simple magic squares of order m.
Because the cube contains so many magic squares, it was considered for many years to be perfect diagonal magic cube has a total of 3m2 + 6m + 4 correctly summing lines and 3m + 6 simple magic squares.
The new definition perfect magic cube' has a total of 13m2 correct lines and 9m'' pandiagonal magic squares.