Congruences

Congruence
Let n be a positive integer, and let a and b be any integers. We say that a is congruent to b(modn), or a is a residue of b(modn), written

ab(modn)
If a and b leave the same remainder when divided by n.To be more precise, we use the division algorithm to put a=qn+r with 0r<n, and b=qn+r with  0r<n, and then we say that ab(modn)  if and only if r=r
Example:both 28 and 48 leave the same reminder when divided by 5. ie 4828(mod5)

We will use the notation ab(modn) to denote that a and b are not congruent (modn),that is, they leave different remainders when divided by n.

Example: 
1002(mod7)
203(mod5) 
 
Theorem: ab(modm) if and only if a=b+km for some integer k.
Proof:suppose ab(modm), then m|(ab), so ab=km for some integer k, tht is a=b+km.
Example:233(mod5) and 23=3+4.5
Note:If a0(modm) if and only if m|a, Eg: 280(mod4)
 
Lemma:For any fixed n1 , we have ab(modn), if and only if n|ab

Proof:Putting a=qn+r and b=qn+r as above, we have ab=(qq)n+(rr) with n<rr<n.If ab(modn), then r=r,so rr=0 and ab=(qq)n, which is divisible byn.Conversely if n divides ab, then it divides ab(qq)n=rr; now the only integer strictly between n and n which is divisible by n is 0.So rr=0 giving r=r  and hence ab(modn).
Example:
since 5|(233) ,we can say 233(mod5).

Lemma:
For any fixed n1, we have
1)aa for all integers a  ; reflexivity
2)If ab  then ba   ;symmetry
3)If ab and bc then ac ; transitivity
proof: 
  • since m|(aa),aa(modm) 
  • suppose ab(modm). Then m|(ab) ie; m|(ba). So m|(ba), that is ba(modm)
  • suppose ab(modm) and bc(modm). Then m|(ab) and m|(bc), so m|[(ab)+(bc)] ie; m|(ac), consequently  ac(modm)

When these three properties are the properties for equivalence relation.So these lemma proves that for each fixed n, congruence mod n is an equivalence relation on Z.It follows that Z is partitioned into disjoint equivalence classes, these are the congruence classes.

Example:since7 \equiv -5 \pmod{4}and-5 \equiv 15 \pmod{4},7 \equiv 15 \pmod{4}$.

When n=1 all integers are congruent to each other, so there is a single congruent class, coinciding with Z.When n=2, the two classes [0]=[0]2 and [1]=[1]2 consist of even and odd integers respectively.
For a given n1, we denote the set of n equivalence class(modn) by Zn.We can do arithmetic with these congruence classes, so that Zn become a number system with properties very similar to that of Z.If [a] and [b] are elements of Zn ie; congruent classes mod n.We define the sum, difference and product to be the classes.
[a]+[b]=[a+b]
[a][b]=[ab]
[a][b]=[ab]
containing the integers a+b,ab and ab respectively.




If we try to define exponentiation of classes in Zn such that
[a][b]=[ab]
restricting b to non-negative values to ensure that ab is an integer.If we take n=3, for instance this gives
[2][1]=[21]=[2]
unfortunately [1]=[4] in Z3, and our definition is also gives
[2][4]=[24]=[16]=[1][2]

So exponentiation of congruence class is not well defined.We therefore confine arithmetic in Zn to operations which are well defined, like addition,subtraction,multiplication and powers.A restricted form of division can also be defined.

A set of n integers, containing one representative from each of the n congruent class in Zn,is called complete set of residues modn.A sensible choice of such a set can ease calculations considerably.One obvious choice is provided by the division algorithm. We can divide an integer a by n  to give a=qn+r for some unique r satisfying 0r<n; thus each class [a]Z contains a uniqe r=0,1,,n1, so these n integers form a complete set of residues, called the least non-negative residues mod n. The remainder r satisfying n/2<rn/2.These reminders are the least absolute residues modn, those with least absolute value; when n is odd they are 0,±1,±2,,±(n1)/2 and when n is even they are 0,±1,±2,,±(n2)/2,±n/2

Example:
Lets calculate the least non-negative residue of  28×33(mod35) 
We have 287(mod35) and 332(mod35)
So 28×33=7×2=14(mod35)

Example:
Lets calculate the least absolute residue of 15×59(mod75). We have 
15×59=15×16=15×4×4=60×4=15×4=60=15(mod75) 

Example:
Lets calculate the least non negative residue of 38(mod13)

32=9=4(mod13)
34=(32)2=(4)2=16=3(mod13)
38=(34)2=32=9(mod13)

Since n divides m  if and only if m0(modn), it follows that problem about divisibility is equivalent to problems about congruences and these can be sometimes easier to solve.

Example:
Lets prove a(a+1)(2a+1) is divisible by 6 for every integer a.By taking least absolute residues mod 6, we can see that a0,±1,±2 and 3.
if a=0 then a(a+1)(2a+1)0.1.10
if a=1 then a(a+1)(2a+1)1.2.30
We can show this for other values also hence
6|a(a+1)(2a+1) for all a
 
Theorem: let ab(modm) and cd(modm). Then a+cb+d(modm) and acbd(modm)
Example:We have 174(mod3) and 287(mod3).So by the theorem 17+284+7(mod3)ie; 453(mod3).Also 17.28(4).7(mod3) ie; 47628(mod3)

Corollary:If ab(modm) and c is any integer, then
a+cb+c(modm)
acbc(modm)
acbc(modm)
a2b2(modm)
Example: Notice that 195(mod7).So 19+115+11(mod7),1911511(mod7), and 19.115.11(mod7).

Theorem:If ab(modm), then anbn(modm) for any positive integer n.
This theorem helps in solving the congruence
Example:Find the remainder when 1653 is divisible by 7.
It is noted that 162(mod7).So by the theorem 1653253(mod7).
23=81(mod7). So
253=23.17+2=(23)17.22
117.4(mod7)
4(mod7)

Theorem:
Let n have prime power factorisation
n=pe11.pe22..pekk
where p1,p2,,pk are distinct primes.Then for any integers a and b we have
ab(modn) if and only if ab(modpeii) for each i=1k.
Example: 823(mod15)
implies that
823(mod5)
823(mod3)

Lemma
let f(x) be a polynomial with integer coefficients and let n1. If ab(modn). Then f(a)f(b)(modn)

Lets consider the polynomial f(x)=x.(x+1).(2x+1)=2x3+3x2+x and n=6. Use the fact that a0,±1,±2or3, then f(a)f(0),f(±1),f(±2)orf(3) respectively, all of which are easily seen to be congruent to 0 mod 6.

Suppose that a polynomial f(x) , with integer coefficients , has an integer root x=aZ,so that  f(a)=0.It follows then that f(a)0(modn) for all integers n1. We can often use the contra-positive of this to show that certain polynomials f(x) has no integer roots; if there exist an integer n1 , such that the congruence f(x)0(modn) has no solutions x, then the equation f(x)=0 can have no solutions x.If n is small, we can check whether f(x)0(modn) has any solutions simply by evaluating f(x1),f(xn), where x1,x2,,xn for a complete set of residues (modn) ; each xZ is congruent to some xi. This implies that f(x)f(xi), and we simply determine whether any of f(x1),,f(xn) is divisible by n.

Example:
Lets prove that the polynomial f(x)=x5x2+x3 has no integer roots.To do this lets take n=4 and consider the congruence

f(x)=x5x2+x30(mod4)
Using the least absolute residues 0,±1,2 , as a complete set of residues(mod 4) we find that
f(0)=3f(1)=2f(1)=6andf(2)=27


Comments

Popular posts from this blog

Number Theory CST 292 KTU IV Semester Honors Course Notes Dr Binu V P 9847390760

Sum of Squares

Well Ordering Principle