GCDs & linear (ab)c = a (bc), a a = 0, combinations a + 0 = a, - - PowerPoint PPT Presentation

gcd s linear
SMART_READER_LITE
LIVE PREVIEW

GCDs & linear (ab)c = a (bc), a a = 0, combinations a + 0 = a, - - PowerPoint PPT Presentation

Arithmetic Assumptions Mathematics for Computer Science MIT 6.042J/18.062J assume usual rules for +, , - : Number Theory: a (b+c) = ab + ac, ab = ba, GCDs & linear (ab)c = a (bc), a a = 0, combinations a + 0 = a, a+1 > a,


slide-1
SLIDE 1

Albert R Meyer March 6, 2015

gcd-def.1

Number Theory:

GCD’s & linear combinations

Mathematics for Computer Science

MIT 6.042J/18.062J

Albert R Meyer March 6, 2015

Arithmetic Assumptions

assume usual rules for +,· ·, - :

a (b+c) = ab + ac, ab = ba, (ab)c = a (bc), a – a = 0, a + 0 = a, a+1 > a, ….

gcd-def.2

Albert R Meyer March 6, 2015

The Division Theorem For b > 0 and any a, have q = quotient(a,b) r = remainder(a,b) ∃ unique numbers q, r such that a = qb + r and 0 ≤ r < b.

Take this for granted too!

gcd-def.3

Albert R Meyer March 6, 2015

Divisibility

c divides a (c|a) iff

a = k·c for some k

5|15 because 15 = 3·5 n|0 because 0 = 0·n

gcd-def.4

1

slide-2
SLIDE 2
  • c|a implies c|(xa)

Albert R Meyer March 6, 2015

Simple Divisibility Facts

  • c|a implies c|(sa)

[a=k’c implies (sa)=(sk’)c]

gcd-def.5

k

Albert R Meyer March 6, 2015

Simple Divisibility Facts

  • c|a implies c|(sa)
  • if c|a and c|b then

c|(a+b) [if a=k1c, b=k2c then a+b= (k1+k2)c ]

gcd-def.6

Albert R Meyer March 6, 2015

  • if c|a and c|b then

c|(a+b)

Simple Divisibility Facts

gcd-def.7

integer linear combination of a and b

(sa+tb)

c a common divisor of a,b

Albert R Meyer March 6, 2015

Common Divisors

Common divisors of a & b divide integer linear combinations of a & b.

gcd-def.9

2

slide-3
SLIDE 3

Albert R Meyer March 6, 2015

GCD gcd(a,b) ::= the greatest common divisor of a and b gcd(10,12) = 2 gcd(13,12) = 1 gcd(17,17) = 17 gcd(0, n) = n for n>0

gcd-def.10

Albert R Meyer March 6, 2015

GCD gcd(a,b) ::= the greatest common divisor of a and b

lemma: p prime implies

gcd(p,a) = 1 or p

proof: The only divisors

  • f p are ±1 & ±p.

gcd-def.11

3

slide-4
SLIDE 4

MIT OpenCourseWare https://ocw.mit.edu

6.042J / 18.062J Mathematics for Computer Science

Spring 2015 For information about citing these materials or our Terms of Use, visit: https://ocw.mit.edu/terms.