Euler's and Fermat's last theorems, the Simpsons and CDC6600