#Help solving number theory equations
33 messages · Page 1 of 1 (latest)
- Wait patiently for a helper to come along.
- Once someone helps you, say thank you and close the thread with:
+close
- Feel free to nominate the person for helper of the week in #helper-nominations
- Do not ping the mods, unless someone is breaking the rules.
- If you're happy with the help you got here, and the server overall, you can contribute financially as well:
So we were seeing some system of equations of the form of
Diophantine equations
$x \equiv a \mod b\x \equiv c \mod d$
Miguel
So if gcd(b, d) is not equal to 1, it may or may not have a solution
But if it has
Uhm let me think
What you do is to write $x = a + n_1 b$
Miguel
Miguel
So this has a solution if and only if uhm $\alpha*gcd(b, d) = (c-a)$
Miguel
And that solution is $\alpha*(c-a)b^{-1}$
Miguel
Miguel
And now we just put that back into the previous equation
$x = a + b( \alpha * (c-a)b^{-1} + n_2d)$
Miguel