The LoneWolf's Lair. . .
Presented by Mosh "LoneWolf" Teitelbaum
A magic square is an NxN grid that contains all of the numbers from 1 to N2 (N-squared) in such a way that the sum of all of the numbers from any row, column, or diagonal equals the same number. For example, a 3x3 grid would contain all of the numbers from 1 to 9 (3-squared) such that, were you to add the numbers from any row, column, or diagonal, the sum would equal 15.
Go ahead and enter an odd, positive number in the form field below, click the build button, and see for yourself. This application will generate the magic square for the dimension that you enter. That is, if you enter 3, it will display the 3x3 magic square.
This page was last updated Monday, February 8, 1999.
Copyright © 1993 - 2003 by LoneWolf.
|[Section Index]||[Home Page]|