Section 6.5 Applications to Congruences
ΒΆSubsection 6.5.1 Factoring the modulus
ΒΆThe reason the fundamental theorem is so useful for congruences is that prime powers (for different primes) are automatically relatively prime to each other. So in using the Chinese Remainder Theorem (Theorem 5.3.2) we don't have a spend time looking for coprime factors; we can just factor into prime powers using the Fundamental Theorem of Arithmetic. So here is a useful repositioning of Proposition 5.4.4.Proposition 6.5.1. Converting to and from prime powers.
Suppose that Xβ‘Y (mod N), and N=βpeii. Then we have an equivalence between this congruence and a related system of congruences.
Certainly if N divides XβY, so does every factor of N, so Xβ‘Y (mod peii) for each of the prime power factors of N. (Once again, solutions to the βbigβ congruence are also solutions to a system of many little ones.
-
Conversely, the prime powers in a factorization are all coprime to each other, so if we are given a solution pair (Xi,Yi) to each of the congruences
Xiβ‘Yi (mod peii)then when combined they will give a solution of
Xβ‘Y (mod N).
Example 6.5.2.
Let's solve the following congruence using the method in the previous paragraph:
Here are some steps:
Create the individual congruences
Solve them
Put them back together
Subsection 6.5.2 Moduli that are prime powers
ΒΆWhen it comes to linear congruences, these consequences of the Chinese Remainder Theorem and Fundamental Theorem of Arithmetic suggest that we reconsider the prime power case with a more subtle tool. Assume that in solving a bunch of congruencesExample 6.5.3. Prime Power Congruences.
One reason we might want to solve such a congruence is for finding an inverse (recall Definition 5.3.3) for various purposes, so suppose we want to find the inverse of 4 modulo 49=72. That is solving 4xβ‘1 (mod 49).
First, let f(x)=4xβ1. The only solution of 4xβ‘1 (mod 7) is clear; it is x=[2]. How might we get solutions (mod 49) from this? We delineate relevant steps.
First, any solution of 4xβ‘1 (mod 72) is also a solution of 4xβ‘1 (mod 7). So xβ‘2+7k (mod 49) for some k, since [2]={2+7kβ£kβZ}.
-
Plugging 2+7k in the original congruence yields
4xβ‘4(2+7k)β‘4β 2+4β 7kβ‘1 (mod 49),or, rearranging (but keeping everything unmultiplied),
1β4β 2β‘4β 7k (mod 72). -
Now, we know that 7β£1β4β 2, because we already know that 2 solved our original congruence:
1β‘4β 2 (mod 7).So we can cancel out 7 from the entire congruence (as in Proposition 5.2.6) to get that
1β4β 27β‘4k (mod 7).This simplifies to β1β‘4k (mod 7).
-
By inspection β1β‘4k has the solution kβ‘5 (mod 7). Using this k and plugging it back in to get a solution to 4xβ‘1 (mod 72), we get
2+7k=2+7β 5=37 (mod 72)as the solution.
And indeed 4β 37=148β‘1 (mod 49).
Example 6.5.4.
Let's do it all again, more tersely, to get an inverse modulo 73, i.e. a solution to 4xβ‘1 modulo 73=343.
I already know that [37] is the solution to 4xβ‘1 (mod 72). That means that a solution to 4xβ‘1 (mod 73) must look like 37+72β (for some integer β).
-
Plugging this in gives me 4(37+72β)β‘1 (mod 73), which rearranges to
4β 72ββ‘1β4β 37 (mod 73). -
Since we know that 37 solves 4xβ‘1 (mod 72), that means (by definition of congruence) that
72β£1β4β 37,so we can divide βall three sidesβ of the last congruence by 72, which yields
4ββ‘1β4β 3772β‘β14772β‘β3β‘4 (mod 7). -
Solving this yields ββ‘1 (mod 7), so
xβ‘37+72β 1β‘86 (mod 343).
And a quick check shows 4β 86=344β‘1 (mod 343) works.