Code to solve the Chess Board riddle by using Mathematica to set up a system of equations.