Lecture 6 Groups, Rings, Fields and Some Basic Number Theory Read: - - PowerPoint PPT Presentation

lecture 6
SMART_READER_LITE
LIVE PREVIEW

Lecture 6 Groups, Rings, Fields and Some Basic Number Theory Read: - - PowerPoint PPT Presentation

Lecture 6 Groups, Rings, Fields and Some Basic Number Theory Read: Chapter 7 and 8 in KPS 1 Finite Algebraic Structures Groups Abelian Cyclic Generator Group Order Rings Fields Subgroups Euclidian Algorithm


slide-1
SLIDE 1

1

Lecture 6

Groups, Rings, Fields and Some Basic Number Theory Read: Chapter 7 and 8 in KPS

slide-2
SLIDE 2

2

Finite Algebraic Structures

  • Groups
  • Abelian
  • Cyclic
  • Generator
  • Group Order
  • Rings
  • Fields
  • Subgroups
  • Euclidian Algorithm
  • CRT (Chinese Remainder Theorem)
slide-3
SLIDE 3

3

GROUPs

DEFINITION: A nonempty set G and operator @, (G,@), is a group if:

  • CLOSURE: for all x, y in G:
  • (x @ y) is also in G
  • ASSOCIATIVITY: for all x, y, z in G:
  • (x @ y) @ z = x @ (y @ z)
  • IDENTITY: there exists identity element I in G, such that, for all x in G:
  • I @ x = x and x @ I = x
  • INVERSE: for all x in G, there exist inverse element x-1 in G, such that:
  • x-1 @ x = I = x @ x-1

DEFINITION: A group (G,@) is ABELIAN if:

  • COMMUTATIVITY: for all x, y in G:
  • x @ y = y @ x
slide-4
SLIDE 4

4

Groups (contd)

DEFINITION: An element g in G is a group generator of group (G,@) if: for all x in G, there exists i ≥ 0, such that: x = gi = g @ g @ g @ … @ g (i times) This means every element of the group can be generated by g using @. In other words, G=<g> DEFINITION: A group (G,@) is cyclic if a group generator exists! DEFINITION: Group order of a group (G,@) is the size of set G, i.e., |G| or #{G} or ord(G) DEFINITION: Group (G,@) is finite if ord(G) is finite.

slide-5
SLIDE 5

5

Rings and Fields

DEFINITION: A structure (R,+,*) is a Ring if (R,+) is an Abelian group (usually with identity element denoted by 0) and the following properties hold:

  • CLOSURE: for all x, y in R, (x*y) in R
  • ASSOCIATIVITY: for all x, y, z in R, (x*y)*z = x*(y*z)
  • IDENTITY: there exists 1 ≠ 0 in R, s.t., for all x in R, 1*x = x
  • DISTRIBUTION: for all x, y, z in R, (x+y)*z = x*z + y*z

In other words (R,+) is an Abelian group with identity element 0 and (R,*) is a Monoid with identity element 1≠0. A Monoid is a set with a single associative binary

  • peration and an identity element.

The Ring is commutative Ring if

  • COMMUTATIVITY: for all x, y in R, x*y=y*x
slide-6
SLIDE 6

6

Rings and Fields

DEFINITION: A structure (F,+,*) is a Field if (F,+,*) is a commutative Ring and:

  • INVERSE: all non-zero x in R, have multiplicative inverse.

i.e., there exists an inverse element x-1 in R, such that: x * x-1 = 1.

slide-7
SLIDE 7

7

Example: Integers Under Addition

G = Z = integers = { … -3, -2, -1, 0 , 1 , 2 …} the group operator is “+”, ordinary addition

  • integers are closed under addition
  • identity element with respect to addition is 0 (x+0=x)
  • inverse of x is -x (because x + (-x) = 0)
  • addition of integers is associative
  • addition of integers is commutative (the group is Abelian)
slide-8
SLIDE 8

8

Non-Zero Rationals under Multiplication

G = Q - {0} = {a/b} where a, b in Z*

the group operator is “*”, ordinary multiplication

  • if a/b, c/d in Q-{0}, then: a/b * c/d = (ac/bd) in Q-{0}
  • the identity element is 1
  • the inverse of a/b is b/a
  • multiplication of rationals is associative
  • multiplication of rationals is commutative (the group is Abelian)
slide-9
SLIDE 9

9

Non-Zero Reals under Multiplication

G = R - {0}

the group operator is “*”, ordinary multiplication

  • if a, b in R - {0}, then a*b in R-{0}
  • the identity is 1
  • the inverse of a is 1/a
  • multiplication of reals is associative
  • multiplication of reals is commutative

(the group is Abelian)

Remember:

slide-10
SLIDE 10

10

Integers mod N Under Addition

G = Z+N = integers mod N = {0 … N-1}

the group operator is “+”, modular addition

  • integers modulo N are closed under addition
  • identity is 0
  • inverse of x is -x (=N-x)
  • addition of integers modulo N is associative
  • addition integers modulo N is commutative

(the group is Abelian)

slide-11
SLIDE 11

11

Integers mod(p) (where p is Prime) under Multiplication

G = Z*

p

non-zero integers mod p = {1 … p-1}

the group operator is “*”, modular multiplication

  • integers mod p are closed under “*” ( where GCD = Greatest Common Divisor):

because if GCD(x, p) =1 and GCD(y, p) = 1 then GCD(xy, p) = 1 (Note that x is in Z*P iff GCD(x, p)=1)

  • the identity is 1
  • the inverse of x is u s.t. ux (mod p)=1
  • u can be found either by Extended Euclidian Algorithm

ux + vp = 1 = GCD(x, p)

  • Or using Fermat’s little theorem xp-1 = 1 (mod p), u = x-1 = xp-2
  • “*” is associative
  • “*” is commutative (so the group is Abelian)
slide-12
SLIDE 12

12

Positive Integers under Exponentiation?

G = {0, 1, 2, 3…}

the group operator is “^”, exponentiation

  • closed under exponentiation
  • the (one-sided?) identity is 1, x^1=x
  • the (right-side only) inverse of x is always 0, x^0=1
  • exponentiation of integers is NOT commutative,

x^y ≠ y^x (non-Abelian)

  • exponentiation of integers is NOT associative,

(x^y)^z ≠ x^(y^z)

slide-13
SLIDE 13

13

Z*N : Positive Integers mod(N) Relatively Prime to N

  • Group operator is “*”, modular multiplication
  • Group order ord(Z*N) = number of integers relatively prime to N denoted by

phi(N)

  • integers mod N are closed under multiplication:

if GCD(x, N) =1 and GCD(y,N) = 1, GCD(x*y,N) = 1

  • identity is 1
  • inverse of x is from Euclid’s algorithm:

ux + vN = 1 (mod N) = GCD(x,N) so, x-1 = u (= x phi(N)-1)

  • multiplication is associative
  • multiplication is commutative (so the group is Abelian)

G = Z*

N

non-zero integers mod N = {1 …, x, … n-1} such that GCD(x, N)=1

slide-14
SLIDE 14

14

Non-Abelian Group Example: 2x2 Non-Singular Real Matrices under Matrix Multiplication

  • if A and B are non-singular, so is AB
  • the identity is I = [ ]
  • Inverse:

=

/ (ad-bc)

  • matrix multiplication is associative
  • matrix multiplication is not commutative

GL(2) ={[

], ad-bc = 0}

a b c d

1 0 0 1

[ ]

a b c d

  • 1 [ ]

d -b

  • c a

Recall: a square matrix is non-singular if its determinant is non-

  • zero. A non-singular

matrix has an inverse.

slide-15
SLIDE 15

15

Non-Abelian Groups (contd)

[ ]

2 5 10 30

  • 1

[ ]

3 -0.5

  • 1 0.2

=

[ ]

2 5 10 30

[ ]

3 5 1 2

[ ]

11 20 60 110

=

[ ]

3 5 1 2 [ ] 2 5 10 30

[ ]

56 165 22 65

=

slide-16
SLIDE 16

16

Subgroups

DEFINITION: (H,@) is a subgroup of (G,@) if:

  • H is a subset of G
  • (H,@) is a group
slide-17
SLIDE 17

17

Subgroup Example

Let (G,*), G = Z*7 = {1, 2, 3, 4, 5, 6} Let H = {1, 2, 4} (mod 7) Note that:

  • H is closed under multiplication mod 7
  • 1 is still the identity
  • 1 is 1’s inverse, 2 and 4 are inverses of each other
  • Associativity holds
  • Commutativity holds (H is Abelian)
slide-18
SLIDE 18

18

Let (G,*), G = R-{0} = non-zero reals Let (H,*), Q-{0} = non-zero rationals H is a subset of G and both G and H are groups in their own right

Subgroup Example

slide-19
SLIDE 19

19

Order of a Group Element

Let x be an element of a (multiplicative) finite integer group G. The order of x is the smallest positive number k such that xk= 1 Notation: ord(x)

slide-20
SLIDE 20

20

Example: Z*7: multiplicative group mod 7 Note that: Z*7=Z7

  • rd(1) = 1 because 11 = 1
  • rd(2) = 3 because 23 = 8 = 1
  • rd(3) = 6 because 36 = 93 = 23 =1
  • rd(4) = 3 because 43 = 64 = 1
  • rd(5) = 6 because 56 = 253 = 43 = 1
  • rd(6) = 2 because 62 = 36 = 1

Order of an Element

slide-21
SLIDE 21

21

Theorem (Lagrange)

Theorem (Lagrange): Let G be a multiplicative group

  • f order n. For any g in G, ord(g) divides ord(G).

element! any

  • f
  • rder

largest n

* n

G

  • f
  • rder
  • )

( Φ

n mod g m

m

1 such that integer smallest : g

  • f
  • rder

1 1 : thus / / )

  • rd

) ( )

  • rd

: because mod 1 : 1 COROLLARY

/ 1 / ) ( * ) (

= = = Φ = = = Φ ∈ ∀ ≡

Φ Φ Φ k k (n) n * n * n n n

b b k (n) k (Z b

  • rd

(Z (n) Z b n b

slide-22
SLIDE 22

22

Example: in Z*13 primitive elements are: {2, 6, 7, 11}

element primitive ) ( ) 2 ) 1 then prime is p if : 2 COROLLARY

*

− − = ∍ ∈ ∃ ≡ ∈ ∀ a 1 p a

  • rd

Z a and p mod b b Z b

p p p

slide-23
SLIDE 23

23

Euclidian Algorithm

Purpose: compute GCD(x,y) GCD = Greatest Common Divisor

1 ) , gcd( mod 1 * ,

  • f

1 1 1

= ⇔ ∃ Ζ ∈ ∀ ≡ −

− − −

n b b b n b b b se tive inver multiplica b

n

Recall that:

1

1 ) , (

∃ ⇒ = b b n Euclidian

slide-24
SLIDE 24

24

Euclidian Algorithm (contd)

init : r

0 = x r 1 = y

q1 = r

0 / r 1

⎢ ⎣ ⎥ ⎦ r

2 = r 0 mod r 1

...= ... qi = r

i−1 / r i

⎢ ⎣ ⎥ ⎦ r

i+1 = r i−1mod r i

... = ... qm−1 = r

m−2 / r m−1

⎢ ⎣ ⎥ ⎦ r

m = r m−2mod r m−1

(r

m == 0)?

OUTPUT r

m−1

Example: x=24, y=15

  • 1. 1 9
  • 2. 1 6
  • 3. 1 3
  • 4. 2 0

Example: x=23, y=14

  • 1. 1 9
  • 2. 1 5
  • 3. 1 4
  • 4. 1 1
  • 5. 4 0
slide-25
SLIDE 25

25

Extended Euclidian Algorithm

Purpose: compute GCD(x,y) and inverse of y (if it exists)

init : r

0 = x r 1 = y t0 = 0 t1 =1

q1 = r

0 / r 1

⎢ ⎣ ⎥ ⎦ r

2 = r 0 mod r 1 t1 =1

...= ... qi = r

i−1 / r i

⎢ ⎣ ⎥ ⎦ r

i+1 = r i−1mod r i ti = ti−2 − qi−1ti−1 mod r

... = ... qm−1 = r

m−2 / r m−1

⎢ ⎣ ⎥ ⎦ r

m = r m−2mod r m−1 tm = tm−2 − qm−1tm−1 mod r

if (r

m =1) OUTPUT tm else if (rm = 0) OUTPUT "no inverse"

slide-26
SLIDE 26

26

Extended Euclidian Algorithm (contd)

Theorem:

) 1 (

1

> = i r t r

i i

r tm 1

1 =

I R T Q 87

  • 1

11 1 7 2 10 80 1 3 1 8

  • Example: x=87 y=11

! "

r mod t q t t r mod r r r r q

i i i i i i 1 i i i i 1 1 2 1 1

/

− − − − + −

− = = =

slide-27
SLIDE 27

27

I R T Q__ 93

  • 1

87 1 1 2 6 92 14 3 3 15 2 4 0 62

  • Example: x=93 y=87

Extended Euclidian Algorithm (contd)

! "

r mod t q t t r mod r r r r q

i i i i i i 1 i i i i 1 1 2 1 1

/

− − − − + −

− = = =

slide-28
SLIDE 28

28

Chinese Remainder Theorem (CRT)

The following system of n modular equations (congruences)

n n 1

m mod a x m mod a x ≡ ≡ ...

1

Has a unique solution:

i i i n 1 n i i i i

m mod m M y m m M M mod y m M a x

1 1

* ... * : where

− =

" " # $ % % & ' = = " " # $ % % & ' = ∑

(all mi-s relatively prime).

slide-29
SLIDE 29

29

CRT Example

! ! " # $ $ % & ≡ ≡ 11 3 7 5 mod x mod x

47 77 mod x mod y 7 mod mod y m M m M M M mod y m M y m M x = + = = = = = = = = = + =

− − −

) 8 * 7 * 3 2 * 11 * 5 ( 8 11 7 2 4 7 11 7 / 11 / 77 ] ) / ( 3 ) / ( 5 [

1 2 1 1 1 2 1 2 2 1 1