














Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
During the study of discrete mathematics, I found this course very informative and applicable.The main points in these lecture slides are:Division Algorithm, Positive Integer, Modular Arithmetic, Caesar Cipher, Decryption and Encryption, Prime Factors, Fundamental Theorem of Arithmetic, Infinite Primes, Proof by Contradiction, Euclid Theorem
Typology: Slides
1 / 22
This page cannot be seen from the preview
Don't miss anything!















q = a div d, quotient r = a mod d, remainder
a + c ≡ b + d mod m. ac ≡ bd mod m.
The only prime factors less than √113 = 10. are 2, 3, 5, and 7 Neither of these divide 113 evenly Thus, by the fundamental theorem of arithmetic, 113 must be prime
Rephrased: the number of prime numbers less than x is approximately x /ln( x )
When x = 2^512 , # of primes = 2^512 /512 ∼ 2503
Denoted by gcd(a,b)
gcd (24, 36) = 12 gcd (17, 22) = 1 gcd (100, 17) = 1
A set of integers a 1 , a 2 , … an are pairwise relatively prime if, for all pairs of numbers, they are relatively prime Formally: The integers a 1 , a 2 , … an are pairwise relatively prime if gcd( ai, aj ) = 1 whenever 1 ≤ i < j ≤ n.
Example: are 10, 17, and 21 pairwise relatively prime? gcd(10,17) = 1, gcd (17, 21) = 1, and gcd (21, 10) = 1 Thus, they are pairwise relatively prime
Example: are 10, 19, and 24 pairwise relatively prime? Since gcd(10,24) ≠ 1, they are not
Example: gcd (120, 500) 120 = 2^3 35 = 2^3 *3^1 *5^1 500 = 2^2 *5^3 = 2^2 *3^0 *5^3
Example: gcd(120,500) = 2min(3,2) 3 min(1,0) 5 min(1,3) = 2^2 30 51 = 20
n b n n
a b b n a pa^^1 pa^2 ... p , b p^1 p^2 ... p = 1 2 = 1 2
min( , ) min( , ) 2
min( , ) gcd( , ) 1 ... 1 1 2 2 an bn n a b = p a^ b p a b p
Let a and b be positive integers. Then a*b = gcd( a , b ) * lcm ( a , b )
Example: gcd (10,25) = 5, lcm (10,25) = 50 1025 = 5
Example: gcd (95256, 432) = 216, lcm (95256,
x := a, y := b while y ≠ 0 r := x mod y x := y y := r Return r