Solution to Diophantine eqn