Solution of Linear Congruence/Unique iff Coprime to Modulus
Jump to navigation
Jump to search
Theorem
Let $a x \equiv b \pmod n$ be a linear congruence.
$a x \equiv b \pmod n$ has a unique solution if and only if $\gcd \set {a, n} = 1$.
Proof
Sufficient Condition
![]() | This theorem requires a proof. You can help $\mathsf{Pr} \infty \mathsf{fWiki}$ by crafting such a proof. To discuss this page in more detail, feel free to use the talk page. When this work has been completed, you may remove this instance of {{ProofWanted}} from the code.If you would welcome a second opinion as to whether your work is correct, add a call to {{Proofread}} the page. |
Necessary Condition
From Solution of Linear Congruence: Existence:
- the problem of finding all integers satisfying the linear congruence $a x \equiv b \pmod n$
is the same problem as:
- the problem of finding all the $x$ values in the linear Diophantine equation $a x - n y = b$.
Let:
- $\gcd \set {a, n} = 1$
Let $x = x_0, y = y_0$ be one solution to the linear Diophantine equation:
- $a x - n y = b$
From Solution of Linear Diophantine Equation, the general solution is:
- $\forall k \in \Z: x = x_0 + n k, y = y_0 + a k$
But:
- $\forall k \in \Z: x_0 + n k \equiv x_0 \pmod n$
Hence $x \equiv x_0 \pmod n$ is the only solution of $a x \equiv b \pmod n$.
$\blacksquare$
Sources
![]() | This page may be the result of a refactoring operation. As such, the following source works, along with any process flow, will need to be reviewed. When this has been completed, the citation of that source work (if it is appropriate that it stay on this page) is to be placed above this message, into the usual chronological ordering. In particular: this citation demonstrates only the necessary condition If you have access to any of these works, then you are invited to review this list, and make any necessary corrections. To discuss this page in more detail, feel free to use the talk page. When this work has been completed, you may remove this instance of {{SourceReview}} from the code. |
- 1982: P.M. Cohn: Algebra Volume 1 (2nd ed.) ... (previous) ... (next): $\S 2.3$: Congruences: Theorem $4$