6. Fermat's Little Theorem and Wilson's Theorem


Lemma: Suppose that (a,m)=1, then the least residues of ka for k=1,,m1 are a permutation of 0,1,,m1
Proof) There are m1 numbers in Z/mZ that is not congruent to 0. Let ka and ka be two numbers with 1k,km1, then we have (kk)a0 implies that (kk)0 as (a,m)=1, however because m<kk<m, we see that k=k. Hence there cannot be two different k,k with different least residue.

Thoerem (Fermat's Little Theorem): If p is prime and (a,p)=1, then



ap11 (mod p)

Proof) Given any p, a prime, we know that (a,p)=1. Hence 



a,2a,,(p1)a

all have different least residues which would be 1,,p1. If we multiply them together,

(p1)!ap1(p1)!

as (a,l)=1 for l=1,,p1, we may conclude that ap11 (mod p).

Easy application of Fermat's Little Theorem would be,


Corollary: If p is a prime, then



apa (mod p)

Proof) If (a,p)=1, then multiply a on both side from Fermat's little theorem. If (a,p)=p, then this shouls that 00.

Lemma:  x21 (mod p) has exactly two solutions: 1 and p1.
Proof) We want to find least residues satisfying the above equation. Then we have p|x21, i.e. p|x1 for p|x+1 for 0xp1. we can clearly see that 1 and p1 are the only solutions.

Lemma: Let p be an odd prime and r be the solution of ax1 (mod p) for a=1,,p1, (respectively, s a solution to bx1 (mod p) then rs (mod p) if and only if ab (mod p). Furthermore, aa if and only if a=1 or p1.

Proof) abbabaab. Converse works the same way. The rest follows from lemma above.

Theorem (Wilson's Theorem):  p is a prime if and only if 
(p1)!1( mod p)
Proof) We have (p3)/2 pairs such that when multiplied together, they become 1 modulo p. Hence (p2)!1, hence (p1)!p11 (mod p). Conversely, if we assume n is composite, then n=ab for 1<a,b<n, then we have

a|n|(n1)!+1

But clearly, we know that a|(n1)!, hence it follows that a|1, giving a contradiction.

Equivalence relation: Let R be a set, then an equivalence relation is a subset E of R×R, where ab if (a,b)E satisfying the following property:
1) aa (Reflexive)
2) ab, then ba (Symmetry)
3) ab and bc, then ac (Transitive)

Partition: A partition of set R is subsets {Pi}iI such that
1) iIPi=R
2) PiPj=

For any equivalence relationship, we can define a subset of R [a] to be the equivalence class defined as

[a]:={bR | ab}

Then we have the following relationship between equivalence relationship,

Theorem: Given a partition {Pi}iI of R, define a relation by ab if a,bPi for some iI, then is an equivalence relationship with Pi as the equivalence classes. Conversely, distinct equivalence classes of of R defines a partition of R.

Lagrange's Theorem: Let G be a group and H a subgroup of G. Let xy be defined if xyH, then this defines an equivalence relation on G. Let {xα} be one element from each equivalence classes, then we have the following

G=iIxiH

If G is finite, and [G:H] denote the index of G and H, then we have [G:{e}]=[G:H][H:{e}], hence [G:H]|G|.

By Lagrange's theorem, the order of an element divides the order of the group, the multiplicative group of Z/pZ which has p1 elements, gives ap1=1 in the group, hence the Fermat's little theorem. 

Comments

Popular posts from this blog

Max-Spec vs Spec

함수와 무한대2