Cryptography
Cryptography
Lecture 12
2-3 MATRICES
2
2.3.1 Definition
A matrix of size l ´ m
3
2.3.1 Continued
Examples of matrices
4
2.3.2 Operations and Relations
Example
7
2.3.2 Continued
Example
Scalar multiplication
8
2.3.3 Determinant
Note
10
2.3.3 Continued
Example
11
2.3.4 Inverses
Note
12
2.3.5 Residue Matrices
Example
A residue matrix and its multiplicative inverse
13
2-4 LINEAR CONGRUENCE
14
2.4.1 Single-Variable Linear Equations
15
2.4.1 Continued
Example
Solve the equation 10 x ≡ 2(mod 15).
Solution
First we find the gcd (10 and 15) = 5. Since 5 does not divide
2, we have no solution.
Example
Solve the equation 14 x ≡ 12 (mod 18).
Solution
16
2.4.1 Continued
Example
Solution
First we change the equation to the form ax ≡ b (mod n). We
add −4 (the additive inverse of 4) to both sides, which give
3x ≡ 2 (mod 13). Because gcd (3, 13) = 1, the equation has only
one solution, which is x0 = (2 × 3−1) mod 13 = 18 mod 13 = 5.
We can see that the answer satisfies the original equation:
3 × 5 + 4 ≡ 6 (mod 13).
17
2.4.2 Single-Variable Linear Equations
Example
Solve the set of following three equations:
Solution
The result is x ≡ 15 (mod 16), y ≡ 4 (mod 16), and z ≡ 14 (mod
16). We can check the answer by inserting these values into
the equations.
19
References