Professional Documents
Culture Documents
Returning to the general linear congruence we see that (1) implies m|(ax − b).
So ∃ y ∈ Z such that ax − b = my, that is,
ax − my = b. (2)
This shows that the solution of the congruence (1) is equivalent to the solution of the
linear Diophantine equation (2). So we can transfer known results to congruences.
1
Prof A. Munagi Linear Congruences MATH4024-Number Theory
First, we deduce from (2) that the linear congruence (1) is solvable only when
d = (a, m) divides b.
Examples: In E1 d = (7, 12) = 1 and 1 divides b = 3, so the congruence has solutions.
Also in E3 d = (6, 15) = 3 and 3 divides b = 9, so the congruence has solutions.
But in E2 d = (12, 8) = 4 and 4 does not divide b = 2, so the congruence has no
solutions, as already found.
ax ≡ b (mod m)
2
Prof A. Munagi Linear Congruences MATH4024-Number Theory
Exercise 1. Let p be a prime. Prove that an integer a > 0 is its own inverse modulo
p if and only if a ≡ 1 (mod p) or a ≡ −1 (mod p).
3
Prof A. Munagi Linear Congruences MATH4024-Number Theory