3 Congruence
We read this as “a is congruent to b modulo (or mod) n. For example 29 ? 8 mod 7
3 Congruence
We read this as “a is congruent to b modulo (or mod) n. For example 29 ? 8 mod 7
Math 255 – Spring 2017 Solving x2 ? a (mod n)
When we solve a linear equation ax ? b (mod n) but gcd(a n) > 1
Math 3527 (Number Theory 1)
congruence q(x) ? 0 (mod m) to solving the individual congruences q(x) ? 0 (mod pd ) where the Example: Solve the equation x3 + x + 2 ? 0 (mod 36).
Congruence and Congruence Classes
or adding b + d to both sides of this equation
Congruence of Integers
14?/11?/2013 2 Congruence Equation. Let m be a positive integer and let a b ? Z. The equation ax ? b mod m. (1) is called a linear congruence equation ...
Math 255 - Spring 2017 Homework 11 Solutions 1. To solve an
general quadratic equation as there are solutions y to the simple quadratic congruence y2 ? b2 ? 4ac (mod n). (a) For this equation a = 1 b = 5
4 Cryptography
As we have seen the algebraic problem of decoding an affine code involves solving a linear congruence. This is an equation of the form ax ? b mod n. In all of
Homework 3 (Linear congruences and the Chinese Remainder
n > 1 such that the congruence f(x) ? 0 mod(n) has no solutions x then the equation f(x) = 0 can have no integer solutions x.
Solutions to Assignment 2
and the congruence x2 ? 1 (mod 3) has a solution if and only if x ? 1 (mod Solution: From Question 7 we note that if n > 1 then the equation [ a ]x ...
[PDF] 3 Congruence
The appropriate congruence is 23x ? ?9 mod 60 We'll use the gcd method and find 1 as a linear combination of 23 and 60 A spreadsheet calculation gives
[PDF] 3 Congruences and Congruence Equations
This new equation can be solved by brute force: by considering numbers congruent to 12 mod- ulo 37 we don't have far to look before we find a perfect square!
[PDF] Congruences
Theorem 1: Every integer is congruent ( mod m) to exactly one of the numbers in the list :- But how about adding an equation to a congruency or
[PDF] (1) Modular arithmetic Congruence relation
This set consisting of the integers congruent to a modulo n is called the “congruence class” or “residue class” or simply “residue” of the integer a modulo n
[PDF] Congruences and Modular Arithmetic - mathillinoisedu
This type of manipulation is called modular arithmetic or congruence magic and it allows one to quickly calculate remainders and last digits of numbers with
[PDF] 42 Congruence relation modulo n
More generally to calculate ik it suffices to know the remainder r when k is divided by 4 and then we have ik = ir Definition Given two integers a b and a
[PDF] Solving Congruences
The solutions to a linear congruence ax ? b( mod m) are all From this equation we get ?2?3 + 1?7 = 1 and see that ?2 and 1 are
[PDF] Examples of Modular Arithmetic
obtain from Z by the equivalence relation congruence modulo n x(h) y(h) of the homogenous equation ax + by = 0 or ax = ?by then x(h) = ?b
[PDF] Math 127: Chinese Remainder Theorem
Hence multiplying both sides of the above equation by 7 we obtain Let n ? N and let a b ? Z The congruence ax ? b (mod n) has a solution for x
[PDF] Modular Arithmetic
m is called the modulus of the congruence Congruence mod m is an equivalence relation: Reducing this equation mod m I have qm = 0 (mod m) so
Math 3527 (Number Theory 1)
Lecture #29Polynomial Congruences:
Polynomial Congruences ModulomPolynomial Congruences Modulopnand Hensel's Lemma This material representsx5.1 from the course notes.Overview
The goal of this last segment of the course is to discuss quadratic residues (which are simply squares modulom) and the law of quadratic reciprocity, which is a stunning and unexpected relation involving quadratic residues modulo primes.We begin with some general tools for solving polynomial congruences modulo prime powers, which essentially reduce matters to studying congruences modulo primes.Then we study the quadratic residues (and quadratic nonresidues) modulop, which leads to the Legendre symbol, a tool that provides a convenient way of determining when a residue classamodulopis a square.We then discuss quadratic reciprocity and some of its applications.Polynomial Congruences, I
In an earlier chapter, we analyzed the problem of solving linear congruences of the formaxb(modm). We now study the solutions of congruences of higher degree.As a rst observation, we note that the Chinese Remainder Theorem reduces the problem of solving any polynomial congruenceq(x)0 (modm) to solving the individual congruencesq(x)0 (modpd), where thepdare the prime-power divisors ofm.Polynomial Congruences, II
Example: Solve the equationx3+x+ 20 (mod 36).By the Chinese remainder theorem, it suces to solve the two
separate equationsx3+x+ 20 (mod 4) and x3+x+ 20 (mod 9).We can just test all possible residues to see that the only
solutions arex2 (mod 4) andx8 (mod 9).Therefore, by the Chinese remainder theorem, there is a unique solution; namely, the solution to those simultaneous congruences, which isx26 (mod 36).Polynomial Congruences, II
Example: Solve the equationx3+x+ 20 (mod 36).By the Chinese remainder theorem, it suces to solve the two
separate equationsx3+x+ 20 (mod 4) and x3+x+ 20 (mod 9).We can just test all possible residues to see that the only
solutions arex2 (mod 4) andx8 (mod 9).Therefore, by the Chinese remainder theorem, there is a unique solution; namely, the solution to those simultaneous congruences, which isx26 (mod 36).Polynomial Congruences, III
Example: Solve the equationx20 (mod 12).By the Chinese remainder theorem, it suces to solve the two separate equationsx20 (mod 4) andx20 (mod 3), and then put the results back together.The rst equation visibly has the solutionsx0;2 (mod 4)while the second equation has the solutionx0 (mod 3).Then applying the Chinese remainder theorem to the 2
possible pairs of congruencesx0 (mod 4),x0 (mod 3), andx0 (mod 4),x2 (mod 3), yields the solutions x0;6 (mod 12) to the original equation.Polynomial Congruences, III
Example: Solve the equationx20 (mod 12).By the Chinese remainder theorem, it suces to solve the two separate equationsx20 (mod 4) andx20 (mod 3), and then put the results back together.The rst equation visibly has the solutionsx0;2 (mod 4)while the second equation has the solutionx0 (mod 3).Then applying the Chinese remainder theorem to the 2
possible pairs of congruencesx0 (mod 4),x0 (mod 3), andx0 (mod 4),x2 (mod 3), yields the solutions x0;6 (mod 12) to the original equation.Polynomial Congruences, IV
Example: Solve the equationx21 (mod 30).By the Chinese remainder theorem, it suces to solve the three separate equationsx21 (mod 2),x21 (mod 3), x21 (mod 5).We can just test all possible residues to see that the solutions
arex1 (mod 2),x1;2 (mod 3), andx1;4 (mod 5).Therefore, by applying the Chinese remainder theorem to all
122 = 4 ways to pick a solution from each congruence, we
see that there are 4 solutions modulo 30, and they are x1;11;19;29 (mod 30).Polynomial Congruences, IV
Example: Solve the equationx21 (mod 30).By the Chinese remainder theorem, it suces to solve the three separate equationsx21 (mod 2),x21 (mod 3), x21 (mod 5).We can just test all possible residues to see that the solutions
arex1 (mod 2),x1;2 (mod 3), andx1;4 (mod 5).Therefore, by applying the Chinese remainder theorem to all
122 = 4 ways to pick a solution from each congruence, we
see that there are 4 solutions modulo 30, and they are x1;11;19;29 (mod 30).Polynomial Congruences, V
We are therefore reduced to solving a polynomial congruence of the formq(x)0 (modpd).Observe that any solution modulopd\descends" to a solution modulop, simply by considering it modulop.For example, any solution tox3+x+ 30 (mod 25), suchasx= 6, is also a solution tox3+x+ 30 (mod 5).Our basic idea is that this procedure can also be run in
reverse, by rst nding all the solutions modulopand thenusing them to compute the solutions modulopd.More explicitly, if we rst solve the equation modulop, we
can then try to \lift" each of these solutions to get all of the solutions modulop2, then \lift" these to obtain all solutions modulop3, and so forth, until we have obtained a full list of solutions modulopd.Polynomial Congruences, VI
Example: Solve the congruencex3+x+ 30 (mod 25).Since 25 = 52, we rst solve the congruence modulo 5.Ifq(x) =x3+x+ 3, we can just try all residues to see the
only solution isx1 (mod 5).Now we \lift" to nd the solutions to the original congruence, as follows: ifx3+x+ 30 (mod 25) then we must have x1 (mod 5).Now writex= 1 + 5a: plugging in yields (1 + 5a)3+ (1 + 5a) + 30 (mod 25), which, uponexpanding and reducing, simplies to 5 + 20a0 (mod 25).Cancelling the factor of 5 yields 4a4 (mod 5), which has
the single solutiona1 (mod 5).This yields the single solutionx6 (mod 25) to our original congruence.Polynomial Congruences, VI
Example: Solve the congruencex3+x+ 30 (mod 25).Since 25 = 52, we rst solve the congruence modulo 5.Ifq(x) =x3+x+ 3, we can just try all residues to see the
only solution isx1 (mod 5).Now we \lift" to nd the solutions to the original congruence, as follows: ifx3+x+ 30 (mod 25) then we must have x1 (mod 5).Now writex= 1 + 5a: plugging in yields (1 + 5a)3+ (1 + 5a) + 30 (mod 25), which, uponexpanding and reducing, simplies to 5 + 20a0 (mod 25).Cancelling the factor of 5 yields 4a4 (mod 5), which has
the single solutiona1 (mod 5).This yields the single solutionx6 (mod 25) to our original congruence.Polynomial Congruences, VII
Example: Solve the congruencex3+ 4x4 (mod 343).Since 343 = 73, we rst solve the congruence modulo 7, then
modulo 72, and then nally modulo 73.By trying all the residue classes, we see thatx3+ 4x4
(mod 7) has the single solutionx3 (mod 7).Next we lift to nd the solutions modulo 72: any solution
must be of the formx= 3 + 7afor somea.Plugging in yields (3 + 7a)3+ 4(3 + 7a)4 (mod 72), which eventually simplies to 21a14 (mod 72).Cancelling the factor of 7 yields 3a2 (mod 7), which has the single solutiona3 (mod 7).This tells us thatx24 (mod 49).Polynomial Congruences, VII
Example: Solve the congruencex3+ 4x4 (mod 343).Since 343 = 73, we rst solve the congruence modulo 7, then
modulo 72, and then nally modulo 73.By trying all the residue classes, we see thatx3+ 4x4
(mod 7) has the single solutionx3 (mod 7).Next we lift to nd the solutions modulo 72: any solution
must be of the formx= 3 + 7afor somea.Plugging in yields (3 + 7a)3+ 4(3 + 7a)4 (mod 72), which eventually simplies to 21a14 (mod 72).Cancelling the factor of 7 yields 3a2 (mod 7), which has the single solutiona3 (mod 7).This tells us thatx24 (mod 49).Polynomial Congruences, VIII
Example(continued):
Now that we know that we must havex24 (mod 49), we can lift to nd the solutions modulo 73in the same way.Explicitly, any solution must be of the formx= 24 + 49bfor
someb.Plugging in yields (24 + 72b)3+ 4(24 + 72b)4 (mod 73),
which eventually simplies to 147b147 (mod 73).Cancelling the factor of 72yields 3b3 (mod 7), which has
the single solutionb1 (mod 7).Hence we obtain the unique solution x24 + 49b73 (mod 73).Polynomial Congruences, IX
Example: Solve the congruencex3+ 4x12 (mod 73).We rst solve the congruence modulo 7. By trying all the
residue classes, we see thatx3+ 4x5 (mod 7) has two solutions,x1 (mod 7) andx5 (mod 7).Next we lift to nd the solutions modulo 72: any solution
must be of the formx= 1 + 7korx= 5 + 7kfor somek.Ifx= 1 + 7k, then we get (1 + 7k)3+ 4(1 + 7k)12 (mod
72), which simplies to 07 (mod 72). This is contradictory
so there are no solutions in this case.Ifx= 5 + 7k, then we get (5 + 7k)3+ 4(5 + 7k)12 (mod 72), which simplies to 14k14 (mod 72). Solving this
linear congruence producesk1 (mod 7), so we obtain x12 (mod 49).Polynomial Congruences, IX
Example: Solve the congruencex3+ 4x12 (mod 73).We rst solve the congruence modulo 7. By trying all the
residue classes, we see thatx3+ 4x5 (mod 7) has two solutions,x1 (mod 7) andx5 (mod 7).Next we lift to nd the solutions modulo 72: any solution
must be of the formx= 1 + 7korx= 5 + 7kfor somek.Ifx= 1 + 7k, then we get (1 + 7k)3+ 4(1 + 7k)12 (mod
72), which simplies to 07 (mod 72). This is contradictory
so there are no solutions in this case.Ifx= 5 + 7k, then we get (5 + 7k)3+ 4(5 + 7k)12 (mod 72), which simplies to 14k14 (mod 72). Solving this
linear congruence producesk1 (mod 7), so we obtain x12 (mod 49).Polynomial Congruences, X
Example(continued):
Now we lift to nd the solutions modulo 7
3: from the previous
slide, any solution must be of the formx= 12 + 49k.In the same way as before, plugging in yields (12 + 72k)3+ 4(12 + 72k)4 (mod 73), which after
expanding and reducing, simplies to 98k294 (mod 73). Solving in the same way as before yieldsk5 (mod 7), whencex12 + 49k257 (mod 73).Hence, there is a unique solution:x257 (mod 73).Polynomial Congruences, XI
Example: Solve the congruencex29 (mod 16).Since 16 = 24, we nd the solutions mod 2, then work upward.It is easy to see that there is a unique solution tox29
(mod 2), namely,x1 (mod 2).Next we lift to nd the solutions modulo 22: any solution
must be of the formx= 1 + 2k, so we get (1 + 2k)29 (mod 22), which simplies to 19 (mod 22). This is always
true, so we get two possible solutions,x1;3 (mod 4).Ifx= 1 + 4k, then we get (1 + 4k)29 (mod 23), which
simplies to 19 (mod 23), which is again always true.Ifx= 3 + 4k, then we get (3 + 4k)29 (mod 23), which
simplies to 99 (mod 23), which is also always true.Thus we get the four solutionsx1;3;5;7 (mod 23).Polynomial Congruences, XI
Example: Solve the congruencex29 (mod 16).Since 16 = 24, we nd the solutions mod 2, then work upward.It is easy to see that there is a unique solution tox29
(mod 2), namely,x1 (mod 2).Next we lift to nd the solutions modulo 22: any solution
must be of the formx= 1 + 2k, so we get (1 + 2k)29 (mod 22), which simplies to 19 (mod 22). This is always
true, so we get two possible solutions,x1;3 (mod 4).Ifx= 1 + 4k, then we get (1 + 4k)29 (mod 23), which
simplies to 19 (mod 23), which is again always true.Ifx= 3 + 4k, then we get (3 + 4k)29 (mod 23), which
simplies to 99 (mod 23), which is also always true.Thus we get the four solutionsx1;3;5;7 (mod 23).Polynomial Congruences, XII
Example(continued):
Finally, we must lift each solutionx1;3;5;7 (mod 23) to the modulus 24.Ifx= 1 + 8kthen we get (1 + 8k)29 (mod 24), which
simplies to 19 (mod 24), which is contradictory.Ifx= 3 + 8kthen we get (3 + 8k)29 (mod 24), which simplies to 99 (mod 24), which is always true, so we get two solutionsx3;11 (mod 24).Ifx= 5 + 8kthen we get (5 + 8k)29 (mod 24), which simplies to 259 (mod 24), which is always true, so we get two solutionsx5;13 (mod 24).Ifx= 7 + 8kthen we get (7 + 8k)29 (mod 24), whichsimplies to 499 (mod 24), which is contradictory.Thus, we get four solutions in total:x3;5;11;13 (mod 24).
Polynomial Congruences, XIII: Lucky!
The general procedure will work the same way for any prime power moduluspn:We rst solve the congruence modulop. For each solution we obtain, we then try to lift it to a solution modp2, then lift each of those to a solution modp3, and so forth, until we get the full list of solutions modpn.In the last few examples we just worked through, we saw a variety of dierent behaviors.Sometimes, when we lift a solution, we obtain exactly one lifted solution. Other times, the lifting might fail, or it mightyield more than one possible lifted solution.We would like to understand what determines when each of
these behaviors will occur.Hensel's Lemma, I
Rather than building the motivation, we will simply state the result:Theorem (Hensel's Lemma)
Suppose q(x)is a polynomial with integer coecients. If q(a)0 (mod p d) and q0(a)60(mod p), then there is a unique k (modulo p) such that q(a+kpd)0(mod qd+1). Explicitly, if u is the inverse of q0(a)modulo p, then k=uq(a)p
d.This result (and a number of variations) is traditionally called Hensel's lemma, although for us it is really more of a theorem since the proof is fairly technical. (The full proof is in the notes, but it is just a formalized version of the procedure we were using earlier.)Hensel's Lemma, II
Example: Show that there is a unique solution to the congruence x32x+ 70 (mod 32020).The idea is to use Hensel's lemma to show that the lifting will
always yield a unique solution starting from the bottom level.First, we solve the congruence modulo 3: testing all 3 possible
residues shows that the only solution isx1 (mod 3).Now we just compute the derivative: ifq(x) =x32x+ 7,
thenq0(x) = 3x221 (mod 3), no matter whatxis.Therefore, Hensel's lemma guarantees that we will always
have a unique solution to this congruence modulo 3 dfor any d1. In particular, the solution is unique modulo 32020.Hensel's Lemma, II
Example: Show that there is a unique solution to the congruence x32x+ 70 (mod 32020).The idea is to use Hensel's lemma to show that the lifting will
always yield a unique solution starting from the bottom level.First, we solve the congruence modulo 3: testing all 3 possible
residues shows that the only solution isx1 (mod 3).Now we just compute the derivative: ifq(x) =x32x+ 7,
thenq0(x) = 3x221 (mod 3), no matter whatxis.Therefore, Hensel's lemma guarantees that we will always
have a unique solution to this congruence modulo 3 dfor any d1. In particular, the solution is unique modulo 32020.Hensel's Lemma, III
Example(continued): Solutions ofx32x+ 70 (mod 3d).We can even calculate the various lifts using the formula given
in Hensel's lemma. (Our direct technique will yield the same result, since ultimately it is how Hensel's lemma is proven.)For example, mod 32, sinceq0(a)1 (mod 3) has inverse
u1 (mod 3), we will obtain the solutionx= 1 + 3kwhere k=uq(a)p d=163 =2: thus,x 54 (mod 9), which indeed works.Lifting again yieldsx= 4 + 9kwhere k=uq(a)p d=1639 =7, yieldingx4 + 9k22 (mod 27).We can continue in this way and compute the lifts as high as we desire.Hensel's Lemma, III
Example(continued): Solutions ofx32x+ 70 (mod 3d).We can even calculate the various lifts using the formula given
in Hensel's lemma. (Our direct technique will yield the same result, since ultimately it is how Hensel's lemma is proven.)For example, mod 32, sinceq0(a)1 (mod 3) has inverse
u1 (mod 3), we will obtain the solutionx= 1 + 3kwhere k=uq(a)p d=163quotesdbs_dbs10.pdfusesText_16[PDF] mode d'emploi telecommande clim toshiba inverter
[PDF] mode d'emploi telecommande fujitsu atlantic
[PDF] mode d'emploi télécommande fujitsu inverter ar rah1e
[PDF] mode d'emploi telecommande sfr box
[PDF] model 5200 garage door
[PDF] model a2200 ipad case
[PDF] model condo rules and regulations
[PDF] model question paper 2020
[PDF] model question paper for 10th
[PDF] model question papers 2019
[PDF] model based decision making
[PDF] modele attestation d'accueil en france
[PDF] modele bilan financier association excel
[PDF] modele bilan financier association gratuit