Linear diophantine equations