Source: http://www.irem.unilim.fr/fileadmin/documents/ERR/Maths-et-video/magie.pdf