P17, P18, P19, P67: Added Mathematica solution.