Magic squares were known to Chinese mathematicians as early as 650 BC,
[2]
and to Arab
mathematicians possibly as early as the seventh century, when the Arabs conquered northwestern parts
of the Indian subcontinent and learned Indian mathematics and astronomy, including other aspects of
combinatorial mathematics.
[citation needed]
The first magic squares of order 5 and 6 appear in an
encyclopedia from Baghdad circa 983, the Encyclopedia of the Brethren of Purity (Rasa'il Ihkwan al-
Safa); simpler magic squares were known to several earlier Arab mathematicians.
[2]
Some of these
squares were later used in conjunction with magic letters, as in (Shams Al-ma'arif), to assist Arab
illusionists and magicians.
[3]