File:Order 31 magic square.png

Uploaded by InverseHypercube
Upload date 2012-04-09T08:34:16Z
MIME type image/png
Dimensions 1550 × 1550 px
File size 24.4 KB

Summary

Description
English: An order 31 magic square, where each number is converted to base five and displayed as a group of four concentric squares, with each colour corresponding to a different digit. This is similar to Magic Square 25 Study by Margaret Kepner. It was created with the following Sage code:
import numpy

def colours(a):
    parts = Integer(a).digits(5, padto=4)
    b = matrix(QQ, 5, 5, [parts[0]] * 25)
    b[1:4, 1:4] = matrix(QQ, 3, 3, [parts[1]] * 9)
    b[2, 2] = [parts[2]]
    return b

numpy.vstack(map(numpy.hstack,[map(colours, a) for a in magic(31)])) # requires magic square generator; see http://pydoc.net/magic_square/0.2/magic_square
Date
Source Own work
Author Eviatar Bach
PNG development
InfoField
 This image was created with Sage.

Licensing

Eviatar Bach, the copyright holder of this work, hereby publishes it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
Attribution:
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

9 April 2012

24,949 byte

1,550 pixel

1,550 pixel

image/png

01ffc2fb48845f9240ef9187729bf0e870fcd34c

Category:31×31 matrices Category:CC-BY-SA-3.0 Category:Created with SageMath Category:Files by User:InverseHypercube Category:Images with Sage source code Category:NumPy Category:Self-published work