Magic constant

Magic constant

The magic constant or magic sum of a magic square is the sum of numbers in any row, column, and diagonal of the magic square. For example, the magic square shown below has a magic constant of 15.

MagicSquare-ExplicitSums.png

The term magic constant or magic sum is similarly applied to other "magic" figures such as magic stars and magic cubes.

Contents

Normal magic squares

If a magic square of order n is normal (i.e., it contains the numbers 1 to n²), then the magic constant depends only on n; its value is

M_2(n) = \frac{n(n^2+1)}{2}.

This formula is a consequence of the formula for the sum of the first n integers

1 + 2 + ... + k = \frac{k(k+1)}{2}

applied to the case k = n², yielding n²(n²+1)/2, which is then divided by n because there are n rows, all of which sum to the same value.

The magic constants of normal magic squares of order n = 3, 4, 5, … are (sequence A006003 in OEIS):

15, 34, 65, 111, 175, 260, 369, 505, 671, 870, ….

The numbers in any row, column, or diagonal of a normal magic square form a magic series.

Magic cubes

Similarly, if a magic cube consists of the numbers 1, 2, ..., n³, then it has magic constant (sequence A027441 in OEIS)

M_3(n) = \frac{n(n^3+1)}{2}.

Magic tesseracts

In 4 dimensions, a magic tesseract consists of the numbers 1, 2, ..., n4, and has magic constant

M_4(n) = \frac{n(n^4+1)}{2}.

In general, for dimension d and order n, a magic hypercube consists of the numbers 1, 2, ..., nd, and has the magic constant

M_d(n) = \frac{n(n^d+1)}{2}.

Magic stars

The magic constant of an n-pointed normal magic star is M = 4n + 2.

See also

External links


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Magic number — may refer to: Magic number (chemistry), number of atoms or molecules forming an exceptionally stable cluster Magic number (sports), a number that indicates how close a team is to winning a season title Magic number (oil), the price per barrel of… …   Wikipedia

  • Magic number (programming) — For other uses of the term, see Magic number (disambiguation). In computer programming, the term magic number has multiple meanings. It could refer to one or more of the following: A constant numerical or text value used to identify a file format …   Wikipedia

  • Magic square — In recreational mathematics, a magic square of order n is an arrangement of n2 numbers, usually distinct integers, in a square, such that the n numbers in all rows, all columns, and both diagonals sum to the same constant.[1] A normal magic… …   Wikipedia

  • Magic hypercube — In mathematics, a magic hypercube is the k dimensional generalization of magic squares, magic cubes and magic tesseracts; that is, a number of integers arranged in an n × n × n × ... × n pattern such that the sum of the numbers on each pillar… …   Wikipedia

  • Magic tesseract — In mathematics, a magic tesseract is the 4 dimensional counterpart of a magic square and magic cube, that is, a number of integers arranged in an n × n × n × n pattern such that the sum of the numbers on each pillar (along any axis) as well as… …   Wikipedia

  • Magic cube — For the flashbulb cartridges, see Magicube. For the puzzle, see Rubik s Cube. In mathematics, a magic cube is the 3 dimensional equivalent of a magic square, that is, a number of integers arranged in a n x n x n pattern such that the sum of the… …   Wikipedia

  • Magic hexagon — A magic hexagon of order n is an arrangement of numbers in a centered hexagonal pattern with n cells on each edge, in such a way that the numbers in each row, in all three directions, sum to the same magic constant. A normal magic hexagon… …   Wikipedia

  • Magic star — An n pointed magic star is a star polygon with Schläfli symbol {n/2} in which numbers are placed at each of the n vertices and n intersections, such that the four numbers on each line sum to the same magic constant. A normal magic star contains… …   Wikipedia

  • Magic series — A magic series is a set of distinct positive numbers which add up to the magic constant of a magic square and a magic cube, thus potentially making up lines in magic tesseracts. So, in an n × n magic square using the numbers from 1 to n2, a magic …   Wikipedia

  • Magic User's Club — 魔法使いTai! (Mahō Tsukai Tai!) Genre Magical girl/boy Original video animation Directed by Junic …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”