What are the different methods for solving a linear equation with integral Solutions? Which one is preferred over other? What is the best method?
For example, 3x + 5y = 12309834576, How do I find solutions to this equation? (Integral Solutions).
I have tried many google searches and pretty many documents and different methods like benzier etc. However couldn't decide which one is better.
I'm a computer science student, hence comparisons in terms of Order of Algorithms makes great sense to me.
$$ 3x + 5y = 12309834576=12309834576(3\cdot2-5)$$
$$\implies 3(x-12309834576\cdot2)=-5(y+12309834576)$$
$$\implies \frac{5(y+12309834576)}3=12309834576\cdot2-x(\text{ which is an integer as }x \text{ is})$$
$$\implies 3|5(y+12309834576)$$
$$\implies 3|(y+12309834576)\text{ as }(3,5)=1$$
$$\implies y+12309834576=3z$$ where $z$ is any integer