diophantine equation—nth powers