11348

# Pandiagonal Magic Squares of Order Five

A magic square has the same sums for the numbers in the rows, columns, and main diagonals. In a pandiagonal magic square, the square can be rotated as if the edges were wrapped around (like a rubber square sheet can be made into a torus), and the main diagonals will still add up to the same magic sum (65 here). All of the 5×5 pandiagonal magic squares can be generated by adding together two sets of permutations.

### DETAILS

By one count, there are 3600 order-5 pandiagonal magic squares [1]. If you would like to generate all 275,305,224 order-5 magic squares, try [2].
Reference
[1] H. Heinz. "Pandiagonal 5×5." (Feb 17, 2016) recmath.org/Magic%20 Squares/pandiag5.htm.
[2] Netstaff Co., Inc. "Magic Squares." (Feb 17, 2016) www.netstaff.co.jp/msq/msqe.htm.

### PERMANENT CITATION

 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 » Download Demonstration as CDF » Download Author Code »(preview ») Files require Wolfram CDF Player or Mathematica.

#### Related Topics

 RELATED RESOURCES
 The #1 tool for creating Demonstrations and anything technical. Explore anything with the first computational knowledge engine. The web's most extensive mathematics resource. An app for every course—right in the palm of your hand. Read our views on math,science, and technology. The format that makes Demonstrations (and any information) easy to share and interact with. Programs & resources for educators, schools & students. Join the initiative for modernizing math education. Walk through homework problems one step at a time, with hints to help along the way. Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet. Knowledge-based programming for everyone.