Find the least positive four-digit solution to the following system of congruences.
7x≡21(mod14)
2x+13≡16(mod9)
−2x+1≡x(mod25)
from the first one, you can see that x is odd.
now you do the second one.
this means 2x leaves a remainder of 3 when divided by 9.
this means x is a multiple of 3.
now, 3x divided by 25 leaves remainder of 1 from the third one.
now you do guess and check and see tht the first x is 17, the next is 42, the next is 67, and on and on
this means that the number when divided by 25 leaves remainder 17, and that it is odd.
2x is remainder of 3 when divided by 9, so the first one would be 42, then adding 225 because of 25 and 9, so then it would be 942 would be one, then 1167. you can double check and it all works.
HOPE THIS HELPED!
There is a more formal method to solving this problem.
First let's reduce these congruences.
7x≡21(mod14)x≡3(mod2)x≡1(mod2)
--------------------------------
2x+13≡16(mod9)2x≡3(mod9)now we multiply both sides by the multiplicative inverse of 2(mod9)5⋅2x≡5⋅3(mod9)x≡6(mod9)
---------------------------------
−2x+1≡x(mod25)3x≡1(mod25)17⋅3x≡17(mod25)x≡17(mod25)
Now we have the following system of linear congruencesx≡1(mod2)x≡6(mod9)x≡17(mod25)
From the first congruence we havex=2t+1, t∈Zsubstitute this into the second congruence2t+1≡6(mod9)2t≡5(mod9)5⋅2t≡5⋅5(mod9)t≡7(mod9)t=9s+7, s∈Z
substitute this back into x and simplifyx=2(9s+7)+1x=18s+14+1=18s+15
Now we substitute this into the third congruence18s+15≡17(mod25)18s≡2(mod25)Now we have to find 18−1(mod25), with these small numbers trial and error works18−1(mod25)=77⋅18s≡14(mod25)s≡14(mod25)s=25u+14, u∈Z
and we substitute this back into xx=18(25u+14)+15=267+450ux≡267(mod450)The smallest 4 digit solution will bex=2⋅450+267=1167