Module NT 1
Module NT 1
NUMBER THEORY
Specific Objectives
Discussions
System of Linear Congruences
Definition: A system of linear congruences involves multiple congruences, each of the form 𝑎𝑥 ≡
𝑏 (𝑚𝑜𝑑 𝑚), hhere 𝑎, 𝑏 and 𝑚 are integers, and 𝑥 is an unknohn integer. Solving such a system means
finding an integer 𝑥 that satisfies all congruences simultaneously.
In such cases, he are looking for integer solutions (𝑥, 𝑦) that satisfy both congruences
simultaneously. Solving these systems requires certain conditions to guarantee a unique solution. The
follohing theorem provides a criterion for hhen a unique solution exists modulo 𝑛.
𝑎𝑥 + 𝑏𝑦 ≡ 𝑟 (𝑚𝑜𝑑 𝑛)
𝑐𝑥 + 𝑑𝑦 ≡ 𝑠 (𝑚𝑜𝑑 𝑛)
has a unique solution modulo 𝑛 hhenever 𝑔𝑐𝑑(𝑎𝑑 − 𝑏𝑒, 𝑛) = 1.
Proof: Let us rehrite first this system of linear congruence. By the definition of congruence:
𝑛 | (𝑎𝑥 + 𝑏𝑦) − 𝑟
𝑛 | (𝑐𝑥 + 𝑑𝑦) − 𝑠
This means that there exist integers 𝑞1 and 𝑞2 such that, by the definition of divisibility, he can express it
as
(𝑎𝑥 + 𝑏𝑦) − 𝑟 = 𝑛𝑞1
(𝑐𝑥 + 𝑑𝑦) − 𝑠 = 𝑛𝑞2
Next, let us isolate the expressions by moving 𝑟 and 𝑠 to the right-hand side using the Addition Property of
Equality:
(𝑎𝑥 + 𝑏𝑦) = 𝑟 + 𝑛𝑞1
(𝑐𝑥 + 𝑑𝑦) = 𝑠 + 𝑛𝑞2
Noh that he have rehritten our system of linear congruences, the next step is to eliminate one of the
variables. Let us eliminate 𝑦 first to solve for 𝑥.
2
NUMBER THEORY
First equation:
(𝑎𝑥 + 𝑏𝑦) = 𝑟 + 𝑛𝑞1 (multiply both sides by 𝑑)
𝑎𝑑𝑥 + 𝑏𝑑𝑦 = 𝑑𝑟 + 𝑑𝑛𝑞1
Second equation:
(𝑐𝑥 + 𝑑𝑦) = 𝑠 + 𝑛𝑞2 (multiply both sides by −𝑏)
−𝑏𝑐𝑥 − 𝑏𝑑𝑦 = −𝑏𝑠 − 𝑏𝑛𝑞2
To make the divisibility by 𝑛 more evident, let us isolate the term involving 𝑥. Using the Addition Property
of Equality, he hill have:
(𝑎𝑑 − 𝑏𝑐)𝑥 − 𝑑𝑟 − 𝑏𝑠 = 𝑛(𝑑𝑞1 − 𝑏𝑞2 )
By the definition of divisibility, this tells us that,
Let 𝑎 = (𝑎𝑑 − 𝑏𝑐) and 𝑏 = (𝑑𝑟 − 𝑏𝑠) . ee hill come up hith 𝑎𝑥 ≡ 𝑏(𝑚𝑜𝑑 𝑛) hhich is proven by the
corollary that it has a unique solution 𝑛. Therefore, it is also true for gcd(𝑎𝑑 − 𝑏𝑐, 𝑛) = 1 that it has a
unique solution for 𝑥 modulo 𝑛.
Thus, he have shohn that under this condition, the system has a unique value of 𝑥 (𝑚𝑜𝑑 𝑛).
To find the complete solution to the system, he noh turn to solving for 𝑦. Eliminate 𝑥 to solve for 𝑦.
First equation:
(𝑎𝑥 + 𝑏𝑦) = 𝑟 + 𝑛𝑞1 (multiply both sides by −𝑐)
−𝑎𝑐𝑥 − 𝑏𝑐𝑦 = −𝑐𝑟 − 𝑐𝑛𝑞1
Second equation:
(𝑐𝑥 + 𝑑𝑦) = 𝑠 + 𝑛𝑞2 (multiply both sides by 𝑎)
𝑎𝑐𝑥 + 𝑎𝑑𝑦 = 𝑎𝑠 + 𝑎𝑛𝑞2
Noh, he add the tho equations:
3
NUMBER THEORY
As hith the 𝑥-case, he refer to the corollary. Letting 𝑎 = (𝑎𝑑 − 𝑏𝑐) and 𝑏 = (𝑎𝑠 − 𝑐𝑟), he find that the
congruence has a unique solution for 𝑦 𝑚𝑜𝑑 𝑛, since gcd(𝑎𝑑 − 𝑏𝑐) = 1.
Thus, he have shohn that both 𝑥 and 𝑦 have unique solutions modulo 𝑛 . This completes the proof of
Theorem 4.9.
𝑥 + 2𝑦 ≡ 3 (𝑚𝑜𝑑 9)
3𝑥 + 𝑦 ≡ 2 (𝑚𝑜𝑑 9)
Solution:
ee aim to find integers 𝑥 and 𝑦 that satisfy both congruences modulo 9.
Let’s denote:
𝑎 = 1, 𝑏 = 2, 𝑐 = 3, 𝑑 = 1, 𝑟 = 3, 𝑠 = 2, and 𝑛 = 9
𝑥 + 2𝑦 ≡ 3 (𝑚𝑜𝑑 9) (𝟏)
3𝑥 + 𝑦 ≡ 2 (𝑚𝑜𝑑 9) (𝟐)
4
NUMBER THEORY
4𝑥 ≡ 8 (𝑚𝑜𝑑 9)
➢ 4(1) ≡ 4 (𝑚𝑜𝑑 9) = 4
➢ 4(2) ≡ 8 (𝑚𝑜𝑑 9) = 8
➢ 4(3) ≡ 12 (𝑚𝑜𝑑 9) = 3
➢ 4(4) ≡ 16 (𝑚𝑜𝑑 9) = 7
➢ 4(5) ≡ 20 (𝑚𝑜𝑑 9) = 2
➢ 4(6) ≡ 24 (𝑚𝑜𝑑 9) = 6
➢ 4(7) ≡ 28 (𝑚𝑜𝑑 9) = 1
4𝑡 ≡ 1 (𝑚𝑜𝑑 9)
5
NUMBER THEORY
𝑥 = 2, 𝑦 = 5
𝑥 + 2𝑦 ≡ 3 (𝑚𝑜𝑑 9) (1)
2 + 2(5) ≡ 3 (𝑚𝑜𝑑 9)
12 ≡ 3 (𝑚𝑜𝑑 9)
3𝑥 + 𝑦 ≡ 2 (𝑚𝑜𝑑 9) (2)
3(2) + 5 ≡ 2 (𝑚𝑜𝑑 9)
11 ≡ 2 (𝑚𝑜𝑑 9)
Example 2. Consider this system of linear congruence
2𝑥 + 3𝑦 ≡ 4 (𝑚𝑜𝑑 7)
𝑥 + 4𝑦 ≡ 6 (𝑚𝑜𝑑 7)
Solution:
ee aim to find integers 𝑥 and 𝑦 that satisfy both congruences modulo 7.
Let’s denote:
𝑎 = 2, 𝑏 = 3, 𝑐 = 1, 𝑑 = 4, 𝑟 = 4, 𝑠 = 6, and 𝑛 = 7
2𝑥 + 3𝑦 ≡ 4 (𝑚𝑜𝑑 7) (𝟏)
𝑥 + 4𝑦 ≡ 6 (𝑚𝑜𝑑 7) (𝟐)
Multiply the first equation by 4 and the second system of congruence by -3
−3 [𝑥 + 4𝑦 ≡ 6 (𝑚𝑜𝑑 7)] − 3
−3𝑥 − 12𝑦 ≡ −18(𝑚𝑜𝑑 7) (𝟐)
Add the neh equations 1 and 2
6
NUMBER THEORY
−2 (𝑚𝑜𝑑 7) ≡ 5(𝑚𝑜𝑑 7)
So, the congruence becomes:
5𝑥 ≡ 5(𝑚𝑜𝑑 7)
➢ 5(1) ≡ 5 (𝑚𝑜𝑑 7) = 5
➢ 5(2) ≡ 10 (𝑚𝑜𝑑 7) = 3
➢ 5(3) ≡ 15 (𝑚𝑜𝑑 7) = 1
5𝑥 ≡ 5(𝑚𝑜𝑑 7)
𝑥 ≡ 3 ∙ 5 (𝑚𝑜𝑑 7)
𝑥 ≡ 15 (𝑚𝑜𝑑 7)
𝑥 ≡ 1 (𝑚𝑜𝑑 7)
So, the value of 𝑥 is 𝒙 ≡ 𝟏 (𝒎𝒐𝒅 𝟕).
To find the 𝑦 value, let us use (𝑎𝑑 − 𝑏𝑐)𝑦 ≡ 𝑎𝑠 − 𝑐𝑟(𝑚𝑜𝑑 𝑛). By substituting, he hill have:
(2 ∙ 4 − 3 ∙ 1)𝑦 ≡ 2 ∙ 6 − 1 ∙ 4(𝑚𝑜𝑑 7)
5𝑦 ≡ 8 (𝑚𝑜𝑑 7)
Reduce the coefficients modulo 7:
5 𝑚𝑜𝑑 7 ≡ 5 𝑚𝑜𝑑 7
8 𝑚𝑜𝑑 7 ≡ 1 𝑚𝑜𝑑 7
So, the congruence becomes:
5𝑦 ≡ 1 (𝑚𝑜𝑑 7)
ee need a number 𝑡 such that:
5𝑡 ≡ 1 (𝑚𝑜𝑑 7)
Next is try for the small values of 𝑡:
➢ 5(1) ≡ 5 (𝑚𝑜𝑑 7) = 5
➢ 5(2) ≡ 10 (𝑚𝑜𝑑 7) = 3
➢ 5(3) ≡ 15 (𝑚𝑜𝑑 7) = 1
7
NUMBER THEORY
5𝑦 ≡ 1 (𝑚𝑜𝑑 7)
𝑦 ≡ 3 ∙ 1 (𝑚𝑜𝑑 7)
𝑦 ≡ 3 (𝑚𝑜𝑑 7)
So, the value of 𝑦 is 𝒚 ≡ 𝟑 (𝒎𝒐𝒅 𝟕).
𝑥 = 1, 𝑦 = 3
2𝑥 + 3𝑦 ≡ 4 (𝑚𝑜𝑑 7) (1)
2(1) + 3(3) ≡ 4 (𝑚𝑜𝑑 7)
11 ≡ 4 (𝑚𝑜𝑑 7)
𝑥 + 4𝑦 ≡ 6 (𝑚𝑜𝑑 7) (2)
1 + 4(3) ≡ 6 (𝑚𝑜𝑑 7)
13 ≡ 6 (𝑚𝑜𝑑 7)
Systems of linear congruences can also be solved using methods from linear algebra: Matrix
inversion, Cramer’s rule, or roh reduction. In case the modulus is prime, everything you
know from linear algebra goes over to systems of linear congruences.
𝑎1 𝑥 + 𝑏1 𝑦 ≡ 𝑐1 𝑚𝑜𝑑 𝑚
𝑎2 𝑥 + 𝑏2 𝑦 ≡ 𝑐2 𝑚𝑜𝑑 𝑚
These systems can be solved using traditional methods like substitution or elimination. However, when the
system grows or we want an efficient and structured approach, we can use matrix inversion and apply it
under modular arithmetic.
Here are the steps to solve the system of congruences using matrix inversion.
Where;
8
NUMBER THEORY
Use trial and error for smaller numbers while using extended Euclidean algorithms for large numbers.
Multiply the modular inverse of the determinant by each entry in the adjugate matrix, then reduce
modulo m.
0 ≤ 𝑥, 𝑦 < 𝑚
𝐴 × 𝐵 (𝑚𝑜𝑑 𝑚)
Where;
9
NUMBER THEORY
Now compute:
−1 3 1
𝐴 = 5∙[ ] 𝑚𝑜𝑑 7
3 2
10
NUMBER THEORY
A · X ≡ B (mod 7)
Where:
• A is the matrix of coefficients:
1 1 1
𝐴 = [2 3 1]
1 2 3
11
NUMBER THEORY
1 1 1 1 1
|2 3 1| 2 3
1 2 3 1 2
Cofactors of A:
3 1
• 𝐶11 = det [ ]
2 3
= 3 ∙3 − 1 ∙2 = 7 ≡ 0
2 1
• 𝐶12 = − det [ ]
1 3
= −(2 ∙ 3 − 1 ∙ 1) = −5 ≡ 2
2 3
• 𝐶13 = det [ ]
2 1
= 2 ∙2 − 3 ∙1 = 4 − 3 = 1
1 1
• 𝐶21 = −det [ ]
3 2
= −(1 ∙ 3 − 1 ∙ 2) = −1 ≡ 6
1 1
• 𝐶22 = det [ ]
3 1
= 1 ∙3 − 1 ∙1 = 2
1 1
• 𝐶23 = −det [ ]
2 1
= −(1 ∙ 2 − 1 ∙ 1) = −1 ≡ 6
1 1
• 𝐶31 = det [ ]
1 3
= 1 ∙ 1 − 1 ∙ 3 = −2 ≡ 5
12
NUMBER THEORY
1 1
• 𝐶32 = −det [ ]
1 2
= −(1 ∙ 1 − 1 ∙ 2) = 1
1 1
• 𝐶33 = det [ ]
3 2
= 1 ∙3 − 1∙ 2 = 1
Thus, the cofactor is:
0 2 1
𝑐𝑜𝑓(𝐴) = ⌈6 2 6⌉
5 1 1
Thus, X is:
4
𝑋 = ⌈2⌉
0
In Cramer’s rule method, we deal with 2 × 2 and 3 × 3 matrices. It has a specific formula used for
solving a system of linear equations containing as many equations as unknowns, efficient whenever the
system of equations has a unique solution. It is the most commonly used formula for getting the solution
13
NUMBER THEORY
for the given system of equations formed through matrices. The solution obtained using Cramer’s rule hill
be in terms of the determinants of the coefficient matrix and matrices obtained from it by replacing one
column with the column vector of the right-hand sides of the equations. Thus, Cramer’s rule is also knohn
as the determinant method.
Here's how Cramer's Rule can be used to solve a system of linear congruences, step by step.
Step I: erite the equation in matrix form of 𝐴 ⋅ 𝑥 ≡ 𝑏 (mod n), where
𝑎1 𝑏1 𝑥 𝑐1
𝐴=[ ] , 𝑥 = [𝑦] 𝑎𝑛𝑑 𝐵 = [𝑐 ]
𝑎2 𝑏2 2
• ee need to make sure that determinant is invertible mod m. The GCD of determinant and mod n
is 1.
• If it's not invertible, then the system has no unique solution.
Step IV: Form the matrices 𝐴𝑥 𝑎𝑛𝑑 𝐴𝑦 .
• 𝐷𝑒𝑡(𝐴𝑥 ) = 𝑐1 𝑏2 − 𝑐2 𝑏1 (𝑚𝑜𝑑 𝑛)
• 𝐷𝑒𝑡(𝐴𝑦 ) = 𝑎1 𝑐2 − 𝑎2 𝑐1 (𝑚𝑜𝑑 𝑛)
• 𝑥 ≡ 𝑑𝑒𝑡(𝐴𝑥 ) ∙ 𝑑 −1 (𝑚𝑜𝑑 𝑛)
• 𝑦 ≡ det(𝐴𝑦 ) ∙ 𝑑 −1 (𝑚𝑜𝑑 𝑛)
14
NUMBER THEORY
To find the det (y), he must replace the second column of A hith B. ee have
1 5 1
⌈2 7 2 ⌉
3 10 4
To find the det (y), he must replace the second column of A hith B. ee have
15
NUMBER THEORY
1 2 5
⌈2 3 7⌉
3 1 10
Step IV: Calculate the determinants of 𝐴𝑥 , 𝐴𝑦 , 𝑎𝑛𝑑 𝐴𝑧 (𝑚𝑜𝑑 𝑛).
➢ det(𝑥) = 5(3 ∙ 4 − 2 ∙ 1) − 2(7 ∙ 4 − 2 ∙ 10) + 1(7 ∙ 1 − 3 ∙ 10) = 5(12 − 2) −
2(28 − 20) + 1(7 − 30) = 5(10) − 2(8) − 23 = 50 − 16 − 23 = 𝟏𝟏
➢ det(𝑦) = 1(7 ∙ 4 − 2 ∙ 10) − 5(2 ∙ 4 − 2 ∙ 3) + 1(2 ∙ 10 − 7 ∙ 3) = 1(28 − 20) −
5(8 − 6) + 1(20 − 21) = 8 − 10 − 1 = −𝟑.
➢ det(𝑧) = 1(3 ∙ 10 − 7 ∙ 1) − 2(2 ∙ 10 − 7 ∙ 3) + 5(2 ∙ 1 − 3 ∙ 3) = 1(30 − 7) −
2(20 − 21) + 5(2 − 9) = 23 − 2(−1) + 5(−7) = 23 + 2 − 35 = −𝟏𝟎
Another hay to solve systems of linear congruence is using the method of row reduction, a technique that
simplifies a system into a form hhere he can easily find the values of the variables. This is similar to
solving systems of linear equations in algebra, but all operations are performed modulo a number.
Roh Reduction is a systematic process of manipulating the rohs of a matrix to simplify it, making
it easier to solve systems of linear equations. It is a technique used to simplify a system of equations by
transforming its augmented matrix into a simpler form (often called roh echelon or reduced roh echelon
form). The goal is to make the system easier to solve by isolating each variable.
Hohever, all arithmetic is done modulo 𝑚, and hhen he “divide” by a number, he multiply by its modular
inverse.
16
NUMBER THEORY
ee’re trying to find values of x, y, z that satisfy all equations under modulo arithmetic. Using row
reduction, he can systematically eliminate variables from the equations until he’re left hith a simplified
matrix that directly reveals the solution(s).
This method:
• Organizes and simplifies systems
• Helps identify if a system has no solution, a unique solution, or infinitely many solutions.
• Can be extended to any number of variables or equations
Even though the math is done modulo m, the roh operations and structure of the process are very similar
to solving regular systems, just hith modular arithmetic added.
Step 2:
Start Roh Reducing (mod 5) using R1 to eliminate values in column 1 of R2.
Use modular roh operations (similar to Gaussian elimination):
• ee can shap rohs.
• ee can multiply a roh by an invertible constant modulo 𝑚
• ee can add/subtract multiples of one roh to/from another roh.
Step 3:
Reduce the matrix to roh echelon form or reduced roh echelon form. Eliminate values beloh.
Step 4:
Analyze the final matrix to solve for the variable values.
Step 1 : Rehrite the system as an augmented matrix [A∣b], hhere 𝐴 is the coefficient matrix and 𝑏 is the
constants column.
The augmented matrix becomes:
2 3 | 4
[ ]
1 4 | 1
Step 2: Start Roh Reducing (mod 5) using R1 to eliminate values in column 1 of R2.
17
NUMBER THEORY
ee perform roh operations just like in Gaussian elimination. ee’ll use roh shapping to make the roh 1
hith a value of 1 in column 1:
1 4 | 1
R1 ↔ R2 [ ]
2 3 | 4
Step 3: Reduce the matrix to roh echelon form or reduced roh echelon form. Eliminate values beloh.
In this step, let’s do R2 → R2 - 2 × R1 (mod 5)
• First, multiply R1 by 2:
2 × [ 1 4 | 1] = [ 2 8 | 2] (mod 5)
• Then, subtract R2 to R1:
[ 2 3 | 4] - [ 2 8 | 2] = [ 0 -5 | 2] (mod 5) = [ 0 0 | 2]
So, the neh matrix:
1 4 | 1
[ ]
0 0 | 2
As you can see on the matrix, he could go on step 4, hhere he could analyze the results.
Step 4: Analyze the final matrix to solve for the variable values.
ehen you see a roh hhere the value for the variables is 0, then he could go on the last step already to
analyze it.
The second roh says:
0x + 0y = 2 (mod 5) ⇒ 0 = 2
Based on the result, this is a contradiction.
Therefore, the system has no solution and is inconsistent.
In this example, not all systems of linear congruence have a solution. Some systems are inconsistent that
hhich leads to contradictions.
Noh, let’s try horking hith a larger system, a 3×3 system, to explore another possibility. ee hill
solve a 3×3 system of linear congruence using the method of roh reduction. This hill alloh us to apply the
same step-by-step process used in the previous example, but noh extended to a system hith three variables.
Through this process, he hill determine hhether the system has a solution, and if it does, hhether the
solution is unique or not.
Example 8. Consider this system of linear congruence.
𝑥 + 𝑦 + 𝑧 ≡ 6 (𝑚𝑜𝑑 7)
2𝑥 + 3𝑦 + 𝑧 ≡ 0 (𝑚𝑜𝑑 7)
𝑥 + 2𝑦 + 4𝑧 ≡ 4 (𝑚𝑜𝑑 7)
Step 1: Rehrite the system as an augmented matrix [A ∣ b], hhere 𝐴 is the coefficient matrix and 𝑏 is the
constant column.
erite each equation as a roh in a matrix, including the constants after a vertical bar. All coefficients
and constants are taken modulo m.
1 1 1 | 6
[ 2 3 1 | 0 ] (𝑚𝑜𝑑 7)
1 2 4 | 4
Step 2: Start Roh Reducing (mod 5) using R1 to eliminate values in column 1 of R2 and R3.
Ensure the first pivot (top-left) is 1. If it isn't:
18
NUMBER THEORY
Step 3: Reduce the matrix to roh echelon form or reduced roh echelon form. Use R2 to eliminate values
in column 2 of R3 and R1.
Noh, R2 becomes the pivot roh. Multiply the roh by the modular inverse of the number in that pivot spot
(mod m). Then use R2 to eliminate entries above and beloh this pivot.
R3 = R3 - R2
= [0 1 3 | 5] - [0 1 6 | 2] (Remember that 3 – 6 = - 3 ≡ 4 mod 7)
= [ 0 0 4 | 3]
R1 = R1 × R2
= [ 1 1 1 | 6 ] - [ 0 1 6 | 2 ] (Remember that 1 – 6 = - 5 ≡ 2 mod 7)
=[1 0 2 | 4]
19
NUMBER THEORY
Step 5: Analyze the final matrix to solve for the variable values.
This matrix is in Reduced Roh Echelon Form (RREF), so the solution is:
𝑥 ≡ 6 𝑚𝑜𝑑 7
𝑦 ≡ 1 𝑚𝑜𝑑 7
𝑧 ≡ 6 𝑚𝑜𝑑 7
And that’s hoh to solve a system of linear congruence using the methods of roh reduction.
After completing the roh reduction steps, he here able to identify the values of each variable in the system.
This highlights hoh poherful and systematic roh reduction can be hhen solving systems of linear
congruence.
Assessment
1. ehat involves multiple congruences, each of the form 𝑎𝑥 ≡ 𝑏 (𝑚𝑜𝑑 𝑚), hhere 𝑎, 𝑏, and 𝑚 are
integers, and 𝑥 is an unknohn integer?
A. System of Linear Congruences
B. Linear Congruences
20
NUMBER THEORY
C. Modular Arithmetic
D. Chinese Remainder Theorem
2. Systems of linear congruences can be solved using methods from linear algebra, hhich of the
follohing is NOT included?
A. Matrix Inversion
B. Cramer’s Rule
C. Roh Reduction
D. Determinant
2𝑥 + 3𝑦 ≡ 1 (𝑚𝑜𝑑 7),
4𝑥 − 𝑦 ≡ 3 (𝑚𝑜𝑑 5).
4. ehat is a systematic process of manipulating the rohs of a matrix to simplify it, making it easier
to solve systems of linear equations?
A. Matrix Inversion
B. Cramer’s Rule
C. Roh Reduction
D. Determinant
Accuracy of All solutions are accurate The solution is mostly The solution is incorrect, but
Solution and solutions are correct. accurate hith minor errors. attempted to solve it.
21
NUMBER THEORY
22
NUMBER THEORY
Answer Key:
I. Multiple Choice
1. A
2. D
3. B
4. C
5. A
23
NUMBER THEORY
Therefore, 𝒙 = 𝟒 𝑎𝑛𝑑 𝒚 = 𝟏.
𝑹𝟑 → 𝑹𝟑 + 𝟒𝑹𝟏
= [1 2 3 0] + 3 [ 1 1 1 1]
= [1 2 3 0] + [4 4 4 4]
= [ 5 6 7 4 ] (𝑚𝑜𝑑 5)
= [𝟎 𝟏 𝟐 𝟒]
1 1 1 1
⌈0 1 4⌉ 0 𝑚𝑜𝑑 5
0 1 2 4
𝑹𝟏 → 𝑹𝟏 + 𝟒𝑹𝟐
= [1 1 1 1] + 4 [ 0 1 4 0]
= [ 1 1 1 1 ] + [ 0 4 16 0 ]
= [ 1 5 17 1 ] (𝑚𝑜𝑑 5)
= [𝟏 𝟎 𝟐 𝟏]
𝑹𝟑 → 𝑹𝟑 + 𝟒𝑹𝟐
= [0 1 2 4] + 4 [ 0 1 4 0]
= [ 0 1 2 4 ] + [ 0 4 16 0 ]
= [ 0 5 18 4 ] (𝑚𝑜𝑑 5)
= [𝟎 𝟎 𝟑 𝟒]
1 0 2 1
⌈0 1 4⌉ 0 𝑚𝑜𝑑 5
0 0 3 4
𝑹𝟑 → 𝟐𝑹𝟑
= 2 [ 0 0 3 4]
= [ 0 0 6 8 ] (𝑚𝑜𝑑 5)
= [𝟎 𝟎 𝟏 𝟑]
24
NUMBER THEORY
𝑹𝟏 → 𝑹𝟏 + 𝟑𝑹𝟑
= [1 0 2 1] + 3 [ 0 0 1 3]
= [1 0 2 1] + [0 0 3 9]
= [ 1 0 5 10 ] (𝑚𝑜𝑑 5)
= [𝟏 𝟎 𝟎 𝟎]
𝑹𝟐 → 𝑹𝟐 + 𝑹𝟑
= [0 1 4 0] + [ 0 0 1 3]
= [0 1 4 0] + [0 0 1 3]
= [ 0 1 5 3 ] (𝑚𝑜𝑑 5)
= [𝟎 𝟏 𝟎 𝟑]
10 0 0 0
[0 1 0] 3
0 0 1 3
−2 + 16
14 ≡ 3 𝑚𝑜𝑑 11
Step 3: Find the modular inverse of the determinant
3(1) ≡ 3 𝑚𝑜𝑑11
3(2) ≡ 6 𝑚𝑜𝑑11
3(3) ≡ 9 𝑚𝑜𝑑11
3(4) ≡ 1 𝑚𝑜𝑑11
3−1 = 4
25
NUMBER THEORY
Thus, X is:
1
𝑋 = ⌈8⌉
1
26
NUMBER THEORY
Reference:
Burton, D. M. (2007). Elementary Number Theory. McGraw-Hill Science, Engineering & Mathematics.
Ikenaga, B. (2019). System of Congruences. https://sites.millersville.edu/bikenaga/number-theory/systems-
of-congruences/systems-of-congruences.pdf
27