How Do You Know When to Use of Equality or of Congruence
This post is an introductory discussion on the congruence equations of the form where the modulus
is an odd prime and the number
is relatively prime to
. A word on the related notion of quadratic residues is found here. Specific algorithms for solving quadratic congruence eqautions with odd prime moduli are discussed in this subsequent postal service.
____________________________________________________________________________
Simple Example
We start off with a simple example. Calculate modulo
for
.
The to a higher place calculation shows that the values of modulo
can but exist
. So equations such every bit
for
have solutions. For instance, the solutions for the equation
are
and
.
On the other hand, the equations for
have no solutions.
Also note that whenever and the equation
has a solution, the solutions come in pairs.
____________________________________________________________________________
Quadratic Congruences
Let be an odd prime number. Let
be an integer that is not divisible by
(equivalently relatively prime to
). The object of interest hither is the quadratic congruence equation
. It turns out that each such equation has exactly two solutions whenever the number
and the modulus
are relatively prime (as demonstrated in the above unproblematic example). The following lemma and corollary confirm what we encounter in the above example.
- Lemma i
- Permit
has no solutions or exactly ii solutions.
Proof of Lemma 1
If equation (i) has no solutions, then we are washed. Suppose information technology has at least one solution, say . We accept
. It follows that
is a solution of equation (i) as well.
We claim and
are singled-out modulo
. To see this, suppose
. And so
. Because
is an odd prime,
. So
. This implies that
. Because
,
, contradicting the supposition that
. Thus
, demonstrating that equation (1) has at least two solutions.
It remains to exist shown that any solution of equation (1) must be congruent to ane of and
. Suppose
. Then
. It follows that
. Thus
must split i of the two factors (Euclid's lemma). The case
implies
. The instance
implies
.
- Corollary 2
Remark
For the even prime , the equation
is non an interesting one. For
,
is the simply solution. For
,
is the merely solution.
For composite moduli, the quadratic equation can have more than two solutions. For case,
has 4 solutions
.
For these reasons, we only work with odd prime moduli for quadratic congruences.
____________________________________________________________________________
General Case
What almost the full general case of the quadratic congruence equation of the following grade?
Of course, nosotros only consider the equations where and
is an odd prime number. Information technology turns out that equation (two) can exist replaced past an equivalent congruence equation of the same course as equation (1) in a higher place. So the full general case of equation (two) presents no new problem. We just catechumen equation (two) to its equivalence and solve it accordingly. We now discuss how this is washed.
The coefficient , the coefficient of the
term, has a multiplicative changed modulo
. So multiplying equation (2) past
gives the following equation.
So nosotros can at present focus on solving equation (three), which has the same solutions equally equation (two). Consider the coefficient of the term. If the coefficient
is even, we tin can complete the square and obtain an equivalent equation of the same grade as equation (one). If the coefficient
is odd, then we can add
to information technology and obtain an even coefficient. We tin can so proceed to complete the square every bit in the even case. We demonstrate with two examples.
Consider the equation . Since
. The multiplicative inverse of
is
. And then nosotros multiply
across and obtain
. The coefficient of the
term is even. Nosotros complete the square as follows.
The last equation in the above derivation is of the form where the solutions are
and
. Thus we have
and
. These two congruences give
and
.
For the odd example, consider the equation . The multiplicative inverse of
is
as
. After multiplying past the inverse, we obtain
. We farther reduce
modulo
to go
. Note that the coefficient of the
term is odd. And so we add modulus to that coefficient to obtain the equation
. We then proceed to complete the square as follows.
The concluding equation in the to a higher place derivation is of the grade , which has no solutions (based on the simple example above). Thus the original equation
has no solutions.
____________________________________________________________________________
Examples
To solve the quadratic congruence , one way is to compute the entire table of values for
modulo
. For very small prime number such equally the simple instance above, this approach is workable. For large primes, this requires a lot of computational resources.
To further illustrate the quadratic congruences, nosotros work 3 examples with help from Euler'south Benchmark and from using Excel to practice some of the calculations.
According to Euler's Criterion, the equation has solutions if and only if
. Equivalently, the equation
has no solutions if and only if
. So the solvability of the quadratic congruence equation tin can be translated as a modular exponentiation calculation.
The ciphering for can be washed directly using an online modular arithmetic estimator or using the fast-powering algorithm (discussed in the post Congruence Arithmetics and Fast Powering Algorithm). For a word and a proof of Euler's Criterion, encounter the post Euler's Criterion.
When Euler's Criterion indicates there are solutions, how do we find the solutions? Nosotros demonstrate using the following examples.
Case 1
Solve .
According to Euler'due south Criterion, the equation has solutions since
. To discover the solutions, we keep adding the modulus to
until we get a perfect square.
So nosotros have , which gives
and
. The solutions are
and
.
Example 2
Solve .
Since , the equation has solutions. We then add the modulus repeatedly to
until we get a perfect foursquare (with the aid of an Excel spreadsheet).
So we have , which gives
and
. The solutions are
and
.
Case three
Solve .
Since , the equation has no solutions according to Euler'south Criterion.
____________________________________________________________________________
Revised Dec 9, 2015
Source: https://exploringnumbertheory.wordpress.com/2013/10/15/solving-quadratic-congruences/
0 Response to "How Do You Know When to Use of Equality or of Congruence"
Post a Comment