- #1
Quadrat
- 62
- 1
Homework Statement
[/B]
Find all integers ##n## which satisfies ##n\equiv_7 13## and ##n \equiv_5 2##
Homework Equations
-
The Attempt at a Solution
[/B]
I get that ##n\equiv_7 13## is the same thing as ##n\equiv_7 -1## and more generally ##n={-1}+7x##, {##x\cup \mathbb{Z}##} for any multiple of 7.
The other congruence could be written as ##n=2+5y##, {##y\cup \mathbb{Z}##}.
I can input different integers for ##x## and ##y## and by doing that I can see that ##27## solves both congruences. Since ##5## and ##7## is relative prime the solution should be ##n=27+(5*7)## and more generally ##n=27+(5*7)z##, {##z\cup \mathbb{Z}##}.
But I believe this is just a cheap way of finding the solution. How can one go about to make a better solution? It would prolly involve diophantine equations? It feels like I just got lucky this time. Anyone got a tips on how to attack these types of problems in a better way? Thanks