Magic squares of doubly even order: Difference between revisions
Content deleted Content added
m →{{header|REXX}}: added a comment, changed whitespace, used a template for the output section. |
m added highlighting, used × instead of a small "x". |
||
Line 1: | Line 1: | ||
{{task}} |
{{task}} |
||
A [[wp:Magic_square|magic square]] is an ''' |
A [[wp:Magic_square|magic square]] is an '''N×N''' square matrix whose numbers consist of consecutive numbers arranged so that the sum of each row and column, ''and'' both diagonals are equal to the same sum (which is called the ''magic number'' or ''magic constant''). |
||
A magic square of doubly even order has a size that is a multiple of four (e.g. 4, 8, 12). |
A magic square of doubly even order has a size that is a multiple of four (e.g. '''4''', '''8''', '''12'''). |
||
This means that the subsquares also have an even size, which plays a role in the construction. |
|||
<!-- As more computer programming languages will be added, they will "fill up" the space to the left of this light blue grid, and the first language entry will be the (normal) full width, so the big size is essential "free space". Gerard Schildberger. --> |
<!-- As more computer programming languages will be added, they will "fill up" the space to the left of this light blue grid, and the first language entry will be the (normal) full width, so the big size is essential "free space". Gerard Schildberger. --> |
||
Line 25: | Line 27: | ||
<br> |
<br> |
||
;Task |
;Task |
||
Create a magic square of 8 |
Create a magic square of '''8 × 8'''. |
||
<br><br> |
|||
; |
;Related tasks |
||
* [[Magic squares of odd order]] |
* [[Magic squares of odd order]] |
||
* [[Magic squares of singly even order]]<br><br> |
* [[Magic squares of singly even order]]<br><br> |
||
; |
;See also: |
||
* [http://www.1728.org/magicsq2.htm Doubly Even Magic Squares (1728.org)] |
* [http://www.1728.org/magicsq2.htm Doubly Even Magic Squares (1728.org)] |
||
<br><br> |
<br><br> |