The Greatest Common Divisor and Groups Modulo N, Study notes of Introduction to Sociology

The concept of the greatest common divisor (gcd) of two integers and its relation to integers modulo n. It covers the definition of zn, z∗n, and ϕ(n), as well as the properties of division and modulo operations. The document also discusses groups and their application to modular arithmetic.

Typology: Study notes

Pre 2010

Uploaded on 03/28/2010

koofers-user-19y-1
koofers-user-19y-1 🇺🇸

4

(1)

10 documents

1 / 162

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
COMPUTATIONAL NUMBER THEORY
1 / 70
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download The Greatest Common Divisor and Groups Modulo N and more Study notes Introduction to Sociology in PDF only on Docsity!

COMPUTATIONAL NUMBER THEORY

Notation

Z = {... , − 2 , − 1 , 0 , 1 , 2 ,.. .}

N = { 0 , 1 , 2 ,.. .}

Z+ = { 1 , 2 , 3 ,.. .}

d|a means d divides a

Example: 2 |4.

For a, N ∈ Z let gcd(a, N) be the largest d ∈ Z+ such that d|a and d|N.

Example: gcd(30, 70) =

Integers mod N

For N ∈ Z+, let

  • ZN = { 0 , 1 ,... , N − 1 }
  • (^) Z∗ N = {a ∈ ZN : gcd(a, N) = 1}
  • ϕ(N) = |Z∗ N |

Example: N = 12

  • (^) Z 12 = { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 }
  • Z∗ 12 =

Integers mod N

For N ∈ Z+, let

  • ZN = { 0 , 1 ,... , N − 1 }
  • (^) Z∗ N = {a ∈ ZN : gcd(a, N) = 1}
  • ϕ(N) = |Z∗ N |

Example: N = 12

  • (^) Z 12 = { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 }
  • Z∗ 12 = { 1 , 5 , 7 , 11 }
  • (^) ϕ(12) =

Division and mod

Fact: For any a, N ∈ Z with N > 0 there exist unique q, r ∈ N such that

  • a = Nq + r
  • (^0) ≤ r < N

Refer to q as the quotient and r as the remainder. Then

a mod N = r ∈ ZN

is the remainder when a is divided by N.

Def: a ≡ b (mod N) iff (a mod N) = (b mod N).

Examples:

  • If a = 17 and N = 3 then the quotient and remainder are q =? and r =?

Division and mod

Fact: For any a, N ∈ Z with N > 0 there exist unique q, r ∈ N such that

  • a = Nq + r
  • (^0) ≤ r < N

Refer to q as the quotient and r as the remainder. Then

a mod N = r ∈ ZN

is the remainder when a is divided by N.

Def: a ≡ b (mod N) iff (a mod N) = (b mod N).

Examples:

  • If a = 17 and N = 3 then the quotient and remainder are q = 5 and r = 2

Division and mod

Fact: For any a, N ∈ Z with N > 0 there exist unique q, r ∈ N such that

  • a = Nq + r
  • 0 ≤ r < N

Refer to q as the quotient and r as the remainder. Then a mod N = r ∈ ZN is the remainder when a is divided by N.

Def: a ≡ b (mod N) iff (a mod N) = (b mod N).

Examples:

  • (^) If a = 17 and N = 3 then the quotient and remainder are q = 5 and r = 2
  • 17 mod 3 = 2
  • (^17) ≡ 14 (mod 3)

Division and mod

Fact: For any a, N ∈ Z with N > 0 there exist unique q, r ∈ N such that

  • a = Nq + r
  • 0 ≤ r < N

Refer to q as the quotient and r as the remainder. Then a mod N = r ∈ ZN is the remainder when a is divided by N.

Def: a ≡ b (mod N) iff (a mod N) = (b mod N).

Examples:

  • (^) If a = 17 and N = 3 then the quotient and remainder are q = 5 and r = 2
  • 17 mod 3 = 2
  • (^17) ≡ 14 (mod 3) because 17 mod 3 = 14 mod 3 = 2

Groups

Let G be a non-empty set, and let · be a binary operation on G. This means that for every two points a, b ∈ G , a value a · b is defined.

We say that G is a group if it has the following properties: 1 Closure: For every a, b ∈ G it is the case that a · b is also in G. 2 Associativity: For every a, b, c ∈ G it is the case that (a · b) · c = a · (b · c). 3 Identity: There exists an element 1 ∈ G such that a · 1 = 1 · a = a for all a ∈ G. 4 Invertibility: For every a ∈ G there exists a unique b ∈ G such that a · b = b · a = 1. The element b in the invertibility condition is referred to as the inverse of the element a, and is denoted a−^1.

ZN under MOD-ADD

Fact: Let N ∈ Z+. Then ZN is a group under addition modulo N. Addition modulo N: a, b 7 → a + b mod N

ZN under MOD-ADD

Fact: Let N ∈ Z+. Then ZN is a group under addition modulo N.

Example: Let N = 12, so ZN = Z 12 = { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 }

Closure: a, b ∈ ZN ⇒ a + b mod N ∈ ZN. Check: 9 + 7 mod 12 = 16 mod 12 = 4 ∈ Z 12

ZN under MOD-ADD

Fact: Let N ∈ Z+. Then ZN is a group under addition modulo N.

Example: Let N = 12, so ZN = Z 12 = { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 }

Associative: ((a + b mod N) + c) mod N = (a + (b + c mod N)) mod N

Check:

(9 + 7 mod 12) + 10 mod 12 = (16 mod 12) + 10 mod 12 = 4 + 10 mod 12 = 2

9 + (7 + 10 mod 12) mod 12 = 9 + (17 mod 12) mod 12

= 9 + 5 mod 12 = 2

ZN under MOD-ADD

Fact: Let N ∈ Z+. Then ZN is a group under addition modulo N.

Example: Let N = 12, so ZN = Z 12 = { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 }

Inverse: ∀a ∈ ZN ∃a−^1 ∈ Z∗ N such that a + a−^1 mod N = 0.

Check: 9 −^1 is the x ∈ Z 12 satisfying

9 + x ≡ 0 (mod 12)

so x =

ZN under MOD-ADD

Fact: Let N ∈ Z+. Then ZN is a group under addition modulo N.

Example: Let N = 12, so ZN = Z 12 = { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 }

Inverse: ∀a ∈ ZN ∃a−^1 ∈ Z∗ N such that a + a−^1 mod N = 0.

Check: 9 −^1 is the x ∈ Z 12 satisfying

9 + x ≡ 0 (mod 12)

so x = 3