Art of Problem Solving

Magic squares: Difference between revisions

Asf (talk | contribs)
mNo edit summary
Sap1248 (talk | contribs)
m minor definition change
 
Line 1: Line 1:
== Definition ==
== Definition ==


A magic square is a <math>n \times n</math> grid filled in with numbers where the sum of the rows are the same, and the sum of the columns are the same. <math>n</math> is the order of the square.
A magic square is a <math>n \times n</math> grid filled in with numbers where the sum of the rows are the same, the sum of the columns, and the sum of the main diagonals are the same. <math>n</math> is the order of the square.


A magic square can be rotated, you can add or subtract a same number to all the numbers, and it can be flipped to produce another valid magic square.
A magic square can be rotated, you can add or subtract a same number to all the numbers, and it can be flipped to produce another valid magic square.

Latest revision as of 21:53, 30 June 2021

Definition

A magic square is a $n \times n$ grid filled in with numbers where the sum of the rows are the same, the sum of the columns, and the sum of the main diagonals are the same. $n$ is the order of the square.

A magic square can be rotated, you can add or subtract a same number to all the numbers, and it can be flipped to produce another valid magic square.

Number of Magic Squares

Order Number of Different Magic Squares
1 1
2 0
3 1
4 880
5 275, 305, 224

Resources

The Zen of Magic Squares, Circles, and Stars by Clifford A. Pickover

This article is a stub. Help us out by expanding it.