DETAILED Mathematical + Coding explanation by Gregorio Maspero: To begin with, this problem involves a lot of mathematics. Even though it may seem that there are plenty of different Magic Squares, ...