File:Order 31 magic square.png
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 |
Licensing
Eviatar Bach, the copyright holder of this work, hereby publishes it under the following license:
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.