Tuesday 13 August 2013

Magic Square

A magic square is an array of integers divided into a square matrix such that the sum of the numbers in every row, every column and both diagonals always gives the same number; this integer is called the magic constant or magic constant or magic sum of the square. In mathematics, a square matrix is called a square matrix.
A magic square of order containing all the integers from 1 to n^2 is called perfect or normal. The magic constant of these squares is given by the formula:

 M (n) = \ frac1n \ sum_ {k = 1} ^ {n ^ 2} = k \ frac {1} {2} n (n ^ 2 + 1)
 The first 15 components of this sequence are: 1, 5, 15, 34, 65, 111, 175, 260, 369, 505, 671, 870, 1105, 1379, and 1695.

Tuesday 5 March 2013

Squadrato magico

In recreational mathematics, a magic square is an arrangement of numbers in a square grid, where the numbers in each row, and in each column, and the numbers that run diagonally in both directions, all add up to the same number. A magic square has the same number of rows as it has columns, and in conventional math notation, "n" stands for the number of rows it has. Thus, a magic square always contains n2 numbers, and its size is described as being "of order n". A magic square that contains the integers from 1 to n2 is called a normal magic square.