Magic squares are mathematical puzzles where integers are arranged in a square grid so that the sums of each row, column and diagonal are equal. For example, in a 3x3 magic square, the center number is first placed, then numbers are added and subtracted diagonally and vertically to fill in the rest of the spaces so that each row, column and diagonal adds up to the same number. Magic squares have entertained people while exercising their minds for many years through this mathematical contrivance.