Docsity

Math 310 Chapter 6: Divisibility, GCD, and Primality - Prof. Andrew Loveless, Study notes of Mathematics

Toggle sidebar
bg1
Math 310 Chapter 6 Review
Divisibility/GCD/Primality
•divisibility: For a,b ∈Zand a6= 0, if there exists k∈Zsuch that b=ka, then we say adivides b
(or bis divisible by a. We write a|b.
•prime: If n∈Nwith n > 1 and the only divisors of nare 1 and n, then we say nis a prime.
•greatest common divisor: If a, b ∈Zand b6= 0, then gcd(a, b)=‘the largest positive integer that
divides both aand b’. And we define gcd(0,0) = 0.
•relatively prime: If a, b ∈Zand gcd(a, b) = 1, then we say that aand bare relatively prime.
Basic Proof Tips:
1. When proving facts involving divisibility always write out the definition of a|b.
2. When proving facts about the gcd(a, b) it is often useful to consider the set
D(a, b) = {d∈N:d|aand d|b}. Note that gcd(a, b)=the largest element of D(a, b). And if
D(a, b) = D(c, d) (i.e. if these sets are equal), then gcd(a, b) = gcd(c, d).
3. The fundamental theorem of arithmetic says that for any n∈Nwith n > 1, you are allowed to write:
n=Qk
i=1 pei
i,where piare all primes and eiare positive exponents and this can be done in a unique
way.
(a) Here are a couple examples: 52 = 2 ·2·13 = 22·13 and 150 = 2 ·3·52.
(b) You can use this in proofs as well. If n∈Nand n > 1, then in a proof you can write:
n=Qk
i=1 pei
i.
4. (Facts about relative primality) If aand bare relatively prime (that is, gcd(a, b) = 1, then
(a) there exist integers xand ysuch that ax +by = 1, and
(b) if a=Qk
i=1 pei
iand b=Qk0
j=1 qfj
j, then every prime piis different from every prime qjfor each
iand j.
Important Results:
1. If d|aand d|b, then d|(a+b). (Proof given in lecture.)
2. If gcd(a, b) = 1 and a|qb, then a|q. (Proof given in lecture.)
3. If p|ab and pis a prime, then p|aor p|b. (Proof given in lecture.)
4. (Division Algorithm) If a, b ∈Nand a>b, then there exists q, r ∈Nsuch that a=qb +rwhere
0≤r < b.
5. (Euclidean Algorithm) Let a, b ∈Nand a > b and define r0=a,r1=band
ri=qi+1ri+1 +ri+2,where 0 ≤ri+2 < ri+1 .
If rn6= 0 and rn+1 = 0, then gcd(a, b) = rn. (That is, gcd(a, b) is the last nonzero remainder using
the given process).
6. (Linear Diophantine Equations) If a, b ∈Z, then there exist solutions (x, y)∈Z×Zto the equation
ax +by =cif and only if gcd(a, b)|c. NOTE: We can get one solution to ax +by =dwhere
d= gcd(a, b) by back substituting in the Euclidean algorithm.
7. (Fundamental Theorem of Arithmetic) If n∈Nand n > 1, then ncan be expressed as the product
of primes in a unique way (up to ordering).

Partial preview of the text

Download Math 310 Chapter 6: Divisibility, GCD, and Primality - Prof. Andrew Loveless and more Study notes Mathematics in PDF only on Docsity!

Math 310 Chapter 6 Review Divisibility/GCD/Primality

  • divisibility: For a, b ∈ Z and a 6 = 0, if there exists k ∈ Z such that b = ka, then we say a divides b (or b is divisible by a. We write a|b.
  • prime: If n ∈ N with n > 1 and the only divisors of n are 1 and n, then we say n is a prime.
  • greatest common divisor: If a, b ∈ Z and b 6 = 0, then gcd(a, b)=‘the largest positive integer that divides both a and b’. And we define gcd(0, 0) = 0.
  • relatively prime: If a, b ∈ Z and gcd(a, b) = 1, then we say that a and b are relatively prime. Basic Proof Tips:
  1. When proving facts involving divisibility always write out the definition of a|b.
  2. When proving facts about the gcd(a, b) it is often useful to consider the set D(a, b) = {d ∈ N : d|a and d|b}. Note that gcd(a, b)=the largest element of D(a, b). And if D(a, b) = D(c, d) (i.e. if these sets are equal), then gcd(a, b) = gcd(c, d).
  3. The fundamental theorem of arithmetic says that for any n ∈ N with n > 1, you are allowed to write: n = ∏ki=1 pe i i, where pi are all primes and ei are positive exponents and this can be done in a unique way. (a) Here are a couple examples: 52 = 2 · 2 · 13 = 2^2 · 13 and 150 = 2 · 3 · 52. (b) You can use this in proofs as well. If n ∈ N and n > 1, then in a proof you can write: n = ∏ki=1 pe i i.
  4. (Facts about relative primality) If a and b are relatively prime (that is, gcd(a, b) = 1, then (a) there exist integers x and y such that ax + by = 1, and (b) if a = ∏ki=1 pe i iand b = ∏k j=1′ qf j j, then every prime pi is different from every prime qj for each i and j. Important Results:
  5. If d|a and d|b, then d|(a + b). (Proof given in lecture.)
  6. If gcd(a, b) = 1 and a|qb, then a|q. (Proof given in lecture.)
  7. If p|ab and p is a prime, then p|a or p|b. (Proof given in lecture.)
  8. (Division Algorithm) If a, b ∈ N and a > b, then there exists q, r ∈ N such that a = qb + r where 0 ≤ r < b.
  9. (Euclidean Algorithm) Let a, b ∈ N and a > b and define r 0 = a, r 1 = b and ri = qi+1ri+1 + ri+2, where 0 ≤ ri+2 < ri+1. If rn 6 = 0 and rn+1 = 0, then gcd(a, b) = rn. (That is, gcd(a, b) is the last nonzero remainder using the given process).
  10. (Linear Diophantine Equations) If a, b ∈ Z, then there exist solutions (x, y) ∈ Z × Z to the equation ax + by = c if and only if gcd(a, b)|c. NOTE: We can get one solution to ax + by = d where d = gcd(a, b) by back substituting in the Euclidean algorithm.
  11. (Fundamental Theorem of Arithmetic) If n ∈ N and n > 1, then n can be expressed as the product of primes in a unique way (up to ordering).