Linear Congruences
Linear Congruence
A relation in the form
is called a linear congruence on the variable
Linear Congruence Theorem (LCT)
For all integers
has a solution if and only if
Moreover, if
or, equivalently
(See divisibility, GCD, set builder notation, Linear Diophantine Equations)
From the definitions of congruence and divisibility,
Rearranging slightly, this means that the linear Diophantine equation
From LDET 1, with
Moreover, if
We can also express the elements of
Each element
Now, dividing
Hence, we can write
where
For each fixed
This proof tells us that to find all solutions to the linear congruence relation
Examples
If possible, solve the linear congruence
Since
If possible, solve the linear congruence
Since
Since
To find a particular, we consider the corresponding linear Diophantine equation
Applying the Extended Euclidean Algorithm:
EA | |||||
---|---|---|---|---|---|
We obtain
To obtain
thus one particular solution is given by
If possible, solve the linear congruence
Since
Moreover, since
Since
Observe, that when
Hence the solutions are all integers