Skip to content
Surf Wiki
Save to docs
general/magic-squares

From Surf Wiki (app.surf) — the open knowledge base

Antimagic square

Mathematical object


Summary

Mathematical object

An antimagic square of order n is an arrangement of the numbers 1 to n2 in a square, such that the sums of the n rows, the n columns and the two diagonals form a sequence of 2n + 2 consecutive integers. The smallest antimagic squares have order 4. Antimagic squares contrast with magic squares, where each row, column, and diagonal sum must have the same value.

Examples

Order 4 antimagic squares

33
30
37
36
29
37
30
34
35
31

|} In both of these antimagic squares of order 4, the rows, columns and diagonals sum to ten different numbers in the range 29–38.

Order 5 antimagic squares

121417416

|

141292210

|} In the antimagic square of order 5 on the left, the rows, columns and diagonals sum up to numbers between 60 and 71. In the antimagic square on the right, the rows, columns and diagonals add up to numbers in the range 59–70.

Generalizations

A sparse antimagic square (SAM) is a square matrix of size n by n of nonnegative integers whose nonzero entries are the consecutive integers 1,\ldots,m for some m\leq n^2, and whose row-sums and column-sums constitute a set of consecutive integers. If the diagonals are included in the set of consecutive integers, the array is known as a sparse totally anti-magic square (STAM). Note that a STAM is not necessarily a SAM, and vice versa.

A filling of the n × n square with the numbers 1 to n2 in a square, such that the rows, columns, and diagonals all sum to different values has been called a heterosquare. (Thus, they are the relaxation in which no particular values are required for the row, column, and diagonal sums.) There are no heterosquares of order 2, but heterosquares exist for any order n ≥ 3: if n is odd, filling the square in a spiral pattern will produce a heterosquare, and if n is even, a heterosquare results from writing the numbers 1 to n2 in order, then exchanging 1 and 2. It is suspected that there are exactly 3120 essentially different heterosquares of order 3.

References

References

  1. W., Weisstein, Eric. "Antimagic Square".
  2. "Anti-magic Squares".
  3. Gray, I. D.. (2006). "Sparse anti-magic squares and vertex-magic labelings of bipartite graphs". Discrete Mathematics.
  4. "Heterosquare".
  5. [http://www.magic-squares.net/anti-ms.htm#Peter%20Bartschs%20Heterosquares Peter Bartsch's Heterosquares] at magic-squares.net
Wikipedia Source

This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.

Want to explore this topic further?

Ask Mako anything about Antimagic square — get instant answers, deeper analysis, and related topics.

Research with Mako

Free with your Surf account

Content sourced from Wikipedia, available under CC BY-SA 4.0.

This content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.

Report