I am trying to find a reliable fast way to find the integer solutions for equations such as $17x+13y=282$. I need to know as fast as possible if such equation has only 1 pair of integers $x,y$ that meet the equation, or more than one.
What would be the best method to approach such a problem? Thank you.
Ps. Assume I have no calculator. Just pen and paper.
This is a linear Diophantine equation. The techniques for solving are well-known. If there is one solution, then there are infinitely many, so there is no case in which there is just one solution.
Since the $\gcd(17,13) =1,$ first find a solution to $17x+13y = 1$. Then multiply the solution by $282$. Then whatever the solution is, you can add any multiple of $13$ to $x$ and subtract the same multiple of $17$ from $y$ and get another solution.