Cubic and quartic equations Diophantine equations mathematics