Find the solutions of the following system of congruences

  • Thread starter Thread starter Math100
  • Start date Start date
  • Tags Tags
    System
AI Thread Summary
The system of congruences 5x + 3y ≡ 1 (mod 7) and 3x + 2y ≡ 4 (mod 7) leads to the solutions x ≡ 4 (mod 7) and y ≡ 3 (mod 7). By manipulating the equations, it is shown that y ≡ 17 (mod 7) simplifies to y ≡ 3 (mod 7). Further calculations reveal that -5x ≡ 1 (mod 7) results in x ≡ 4 (mod 7). A more efficient method is suggested, deriving x directly from y without unnecessary steps. The final solutions are confirmed as x ≡ 4 (mod 7) and y ≡ 3 (mod 7).
Math100
Messages
813
Reaction score
229
Homework Statement
Find the solutions of the following system of congruences:
## 5x+3y\equiv 1\pmod {7} ##
## 3x+2y\equiv 4\pmod {7} ##.
Relevant Equations
None.
Consider the following system of congruences:
## 5x+3y\equiv 1\pmod {7} ##
## 3x+2y\equiv 4\pmod {7} ##.
Then
\begin{align*}
&5x+3y\equiv 1\pmod {7}\implies 15x+9y\equiv 3\pmod {7}\\
&3x+2y\equiv 4\pmod {7}\implies 15x+10y\equiv 20\pmod {7}.\\
\end{align*}
Observe that ## [15x+10y\equiv 20\pmod {7}]-[15x+9y\equiv 3\pmod {7}] ## produces ## y\equiv 17\pmod {7} ##.
This means ## y\equiv 17\pmod {7}\implies y\equiv 3\pmod {7} ##.
Since ## 3y\equiv 9\pmod {7}\implies 3y\equiv 1-5x\pmod {7} ##,
it follows that ## 1-5x\equiv 9\equiv 2\pmod {7}\implies -5x\equiv 1\pmod {7} ##.
Thus
\begin{align*}
&-5x\equiv 1\pmod {7}\implies -15x\equiv 3\pmod {7}\implies -x\equiv 3\pmod {7}\\
&\implies x\equiv -3\pmod {7}\implies x\equiv 4\pmod {7}.\\
\end{align*}
Therefore, the solutions are ## x\equiv 4\pmod {7}; y\equiv 3\pmod {7} ##.
 
Physics news on Phys.org
Correct.

I only think that you could save a few steps. From ##y \equiv 3\pmod{7}## we get ##3x\equiv 4-6\equiv 5\pmod{7}## and so ##x\equiv 5^2\equiv 4\pmod{7}.##
 
fresh_42 said:
Correct.

I only think that you could save a few steps. From ##y \equiv 3\pmod{7}## we get ##3x\equiv 4-6\equiv 5\pmod{7}## and so ##x\equiv 5^2\equiv 4\pmod{7}.##
This is way better.
 
Back
Top