A magazine where the digital world meets the real world.
On the web
- Home
- Browse by date
- Browse by topic
- Enter the maze
- Follow our blog
- Follow us on Twitter
- Resources for teachers
- Subscribe
In print
What is cs4fn?
- About us
- Contact us
- Partners
- Privacy and cookies
- Copyright and contributions
- Links to other fun sites
- Complete our questionnaire, give us feedback
Search:
The Computing of Magic Squares

Algorithms that add up to magic
Magic Squares are simple mathematical curios. They are just grids of numbers but with the magical property that their rows, columns and diagonals add up to the same total. The earliest known is from China and dates back to 2800 B.C. Great mathematician Leonhard Euler was interested in them. Victorian computer scientists, Ada Lovelace and Charles Babbage played with them. US Founding Father Benjamin Franklin did too. German painter and printmaker, Albrecht Dürer created a woodcut of one.
Magic Squares fascinate, so what links to computer science are there. We will see...