0

Suppose I have the following equation $$\frac{ax+by}{t}= \text{an integer}$$ and $a$, $b$ and $t$ are known. I also have a set of solutions for $x$ and $y$ out of which only one will satisfy the above equation. Without having to resort to trying each solution out, which is the fastest way (if it exists) to figure out the correct values of $x$ and $y$? Does something like a Chinese remainder theorem help here? And how to proceed if $a$ and $b$ are co-prime?

RTn
  • 299

0 Answers0