Hello, i'm writing an application for a java class that solves the problem where you are given n jugs of arbitrary sizes and have to come up with the steps to reach a certain value.(adsbygoogle = window.adsbygoogle || []).push({});

I have figured out(read: did research) how to do this in a different way than the original, but it requires math that I don't know how to solve.

My question is, what is the general method for solving a diophantine equation of the form asub1x+asub2y+...asubnz = something or if you could point me to a paper or article on the subject

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# General solution to diophantine equations

**Physics Forums | Science Articles, Homework Help, Discussion**