Linear congruence

from Wikipedia, the free encyclopedia

In number theory, linear congruence denotes a Diophantine equation in the form of congruence

.

Be

This congruence has solutions if and only if is a factor of :

.

If there is a special solution, then the solution set consists of different congruence classes.

The solutions then have the representation

.

proof

First, let the linear congruence be solvable and be a solution. Ways are and . The condition is equivalent to . Choose so that . Equivalent forming and insertion provide:

.

Here is . So or .

Now apply . Now choose so that . The lemma Bézout provides the existence of so . Insertion into the previous equation yields: . This is equivalent to or . So because of what is equivalent to . Hence, a solution of the linear congruence is given by.

Finally, let us again assume a special solution of linear congruence. For each is . This modulo are therefore found different solutions. To convince yourself that these are all the solutions, one can realize that a linear Diophantine equation is given and in this context all solutions for and can be found.

example

Find all solutions of linear congruence

.

a special solution can be found through trial and error and reads .

Since , there are three different solutions modulo 27 and thus three equivalence classes, namely

Alternatively, you can also use the calculation rules for congruences to find a solution more quickly:

by first shortening the equation by 3 (this also changes the modulus, because the ) and then multiplying by the inverse of 2. The equivalence class of the solutions is then obtained

literature