C-N Math 207 Discrete Math

Size: px
Start display at page:

Download "C-N Math 207 Discrete Math"

Transcription

1 C-N Math Massey, 1 / 70 C-N Math 207 Discrete Math Kenneth Massey September 16, 2011

2 Question C-N Math Massey, 2 / 70 Introduction What is the smallest positive number?

3 Sets C-N Math Massey, 3 / 70 Introduction a set S is a collection of objects (members, elements) S = {VT, UNC, GT, Mia, UVA, Duke} the cardinality (size) of S is written as S S is finite if S <, and infinite if S = empty / null set = { }, = 0 x is an element of S is denoted by x S

4 Numbers C-N Math Massey, 4 / 70 Introduction Abstract notions of quantity, position, or size. natural numbers N = {0, 1, 2, 3, } (use N + to omit zero) integers Z = {, 2, 1, 0, 1, 2, 3, } set-builder notation: members such that conditions rational numbers Q = { n d n, d Z, d 0} real numbers R is the continuum of all points on number line including irrationals e.g. 2, π

5 Set Examples C-N Math Massey, 5 / 70 Introduction 1. S = {x Z x 5 2} 2. S = {1, 1 2, 1 4, 1 8, } 3. S = {(x, y) R 2 x 2 + y 2 1} 4. S = {ticker symbols of S&P 500 members}

6 Discrete vs Continuous C-N Math Massey, 6 / 70 Introduction A set is discrete if its members can be listed (enumerated) so that each has a next (successor), with nothing in-between all finite sets are discrete (loop) examples: 1. digital computers 2. money (Office Space rounding) 3. siblings ( 1 2 allowed) 4. water discrete, but practically continuous 5. quantum physics 6. movie frames vs real time? 7. Z vs R, Q?

7 Existence and Uniqueness C-N Math Massey, 7 / 70 Introduction there exists is denoted by x Z x 2 = 9! means there exists a unique! x R 3x + 4 = 10 slash through a symbol means not x Q x 2 = 2

8 If-Then Statements C-N Math Massey, 8 / 70 Introduction If (condition) then (conclusion) The conclusion must be true whenever the condition is true. Any exception (counter-example) means the if-then statement is false. If c Z, then x R x 2 + 6x = c

9 Function C-N Math Massey, 9 / 70 Introduction f : A B is a function that pairs each member of set A with a unique member of set B. y = f (x ) where x A and y B the set A is called the domain the set B is called the codomain {b B a A with f (a) = b} is called the range or image of f

10 Function Examples C-N Math Massey, 10 / 70 Introduction 1. f : R R defined by y = f (x ) = x 2 2. f : Z N defined by y = f (x ) = x 2 3. f : N N defined by y = f (n) = n 4. f : N + Q defined by f (n) = n+1 n Which are onto (range equals codomain)? Which are one-to-one (no y value hit twice)?

11 Invertible Function C-N Math Massey, 11 / 70 Introduction f is said to be invertible if each y in B is mapped to exactly once f 1 : B A is a function that reverses f To find the inverse, solve for x. x = f 1 (y) the composition of a function and its inverse is the identity function f 1 f = I f 1 (f (x )) = x and f (f 1 (y) = y

12 Sequence C-N Math Massey, 12 / 70 Introduction A sequence is a function whose domain is some subset of Z (often N). an ordered indexed list, f (k) = f k geometric sequence a k = r k for some r R harmonic sequence { } 1 k k=1

13 C-N Math Massey, 13 / 70 Sum Notation Capital Greek sigma Σ indicates the sum of indexed terms, e.g. 6 k 2 = = 86 k=3 k=1 a n = Introduction 1 10 k = = = 1 9 n k = k=1 n(n + 1) 2

14 Product Notation C-N Math Massey, 14 / 70 Introduction Capital Greek pi Π indicates the product of indexed terms, e.g. 4 k=1 k + 1 k = (2/1)(3/2)(4/3)(5/4) = 5

15 Factorials C-N Math Massey, 15 / 70 Introduction n factorial is defined for n N by n! = { n k=1 k n 1 1 n = 0 the sequence of factorials is 1, 1, 2, 6, 24, 120, n! = n (n 1)!

16 C-N Math Massey, 16 / 70 Z is discrete, but infinite Subsets of Z can be used to label other discrete sets. Arithmetic operations: addition (+) and multiplication ( ) Basic properties: closed, commutative, associative, distributive, identities, inverses, ordered Number theory is the branch of mathematics that studies the properties of Z.

17 Division Algorithm C-N Math Massey, 17 / 70 Note that 17 3 = can be written as 17 = Division algorithm: let a, b Z, with b 0, then! q, r Z such that a = bq + r, 0 r < b q is called the quotient, and r the remainder. example: a = ±73, b = 11

18 Place Value C-N Math Massey, 18 / 70 Ways to represent natural numbers: tally/tic marks, Egyptian, Roman numeral, place value (brilliant!). We are familiar with base 10, but other societies have used e.g. base 12 or 60. Computers use binary (base 2) octal (base 8), [hexadecimal] (base 16)

19 Place Value Each x N can be uniquely represented in base b as a linear combination of powers of b, with each coefficient (digit) between 0 and b 1. C-N Math Massey, 19 / 70 d 1 x = (D d 1 D 2 D 1 D 0 ) b = D k b k k=0 (75) 10 = (113) 8 = (300) 5 = ( ) 2 = (4B) 16 =

20 Place Value C-N Math Massey, 20 / 70 Write (146) 10 in base 3 using the division algorithm. 146 = = 3 ( ) + 2 = 3 (3 ( ) + 0) + 2 = 3 (3 (3 ( ) + 1) + 0) + 2 So (146) 10 = (12102) 3.

21 Place Value C-N Math Massey, 21 / 70 There are 10 types of people in the world: those that understand binary, and those that don t. 1. Coach Sparks decides to use hexadecimal for the football team s jersey numbers. If a jersey reads AC, find the decimal and binary equivalents. 2. How many points did C-N win by if the scoreboard reads in base 7?

22 Place Value C-N Math Massey, 22 / 70 Arithmetic algorithms work the same way in other bases. 1. (234) 5 + (312) 5 2. (175) 8 (6) 8 3. (11010) 2 (1011) 2

23 Divides C-N Math Massey, 23 / 70 Definition: Let a, b Z. Then b divides a, if and only if (iff) there exists q Z such that a = bq. in the division algorithm, r = 0 Equivalent statements: notation: b a b divides (evenly into) a a is divisible by b b is a factor/divisor of a

24 Generally True? C-N Math Massey, 24 / n n 3. n n 5. n n 6. n n 2 7. (a + b) (a 2 b 2 )

25 Your First Proof C-N Math Massey, 25 / 70 Theorem: If a b and b c, then a c (divisibility is transitive) Illustration: 4 12 and 12 72, therefore Proof: Suppose a b and b c. By definition, b = aq 1 and c = bq 2. Then by substitution, c = bq 2 = (aq 1 )q 2 = a(q 1 q 2 ). Therefore a c.

26 Direct If-Then Proofs C-N Math Massey, 26 / Understand what you are proving. Work an example; believe it is true. 2. Scratch work: what do you know? (the if part) what do you need to show? (the then part) use definitions to translate symbols/terminology deduce the desired result using algebra, substitution, tricks, previous theorems, etc 3. Rewrite your proof neatly. State the theorem. Prove the theorem, clearly justifying each step as you move from assumptions to the conclusion.

27 C-N Math Massey, 27 / 70 Theorem: Suppose a, b N. If a b and b a, then a = b. Proof:

28 Even and Odd C-N Math Massey, 28 / 70 Definitions: n Z is even iff q Z n = 2q n Z is odd iff q Z n = 2q + 1 Prove that 1. if n is odd, then n + 5 is even. 2. if n is odd, then n 2 is odd.

29 Modulo C-N Math Massey, 29 / 70 As in the division algorithm, let a = bq + r. Then a modulo b is the remainder r. notation: a (mod b) = r b a iff a (mod b) = 0 odd if a (mod 2) = 1 List the possible values of a (mod 5).

30 Congruence C-N Math Massey, 30 / 70 a and b are congruent (aliases) mod n a b (mod n) Equivalent definitions: n (a b) a (mod n) = b (mod n) (a b) (mod n) = 0 a b = qn for some q Z

31 Equivalence C-N Math Massey, 31 / 70 Congruence is an equivalence relation: 1. reflexive a a (mod n) 2. symmetric if a b (mod n) then b a (mod n) 3. transitive if a b (mod n) and b c (mod n) then a c (mod n)

32 (mod n) C-N Math Massey, 32 / 70 The equivalence class of a (mod n) is the set of all of a s aliases. [a] n = {b Z a b (mod n)} Z n is the set of all equivalence classes (mod n) Z n = {0, 1, 2, 3, n 1} Z mod n puts each integer into exactly one class loop around like a clock

33 Proof of Transitivity C-N Math Massey, 33 / 70 Theorem: if a b (mod n) and b c (mod n) then a c (mod n) Proof: Assume that a b (mod n). Then by definition a b = nq 1 for some q 1 Z. Similarly b c = nq 2 for some q 2 Z. (therefore) a c = (a b)+(b c) = nq 1 +nq 2 = n(q 1 +q 2 ) and hence by definition n (a c) and a c (mod n).

34 Algrebra of Congruence Theorem: if a b and c d, then a + c b + d and ac bd. Proof: By assumption, and the definition of congruence, a b = q 1 n and c d = q 2 n. Therefore, C-N Math Massey, 34 / 70 (a + c) (b + d) = (a b) + (c d) = q 1 n + q 2 n = (q 1 + q 2 )n ac bd = (b + q 1 n)c b(c q 2 n) = (q 1 c + q 2 b)n Thus by definition, a + c b + d and ac bd.

35 Z n Algebra C-N Math Massey, 35 / 70 Hence we may develop algebra of + and on Z n. See the Affine Cipher Project. addition / [multiplication tables] inverses solving equations

36 Problems C-N Math Massey, 36 / Compute 7 5 (mod 11), reducing as you go. 2. What day of the week will it be days from now? 3. Solve 4(6x 5) 5 (mod 7).

37 Affine Cipher C-N Math Massey, 37 / 70 The affine cipher transforms each character in an alphabet by the formula: y = f (x ) = (ax + b) (mod n) Experiment with the [web app]. Using the alphabet (space, A-Z), decrypt VWBTU if y = 5x + 2 (mod 27).

38 Invertibility C-N Math Massey, 38 / 70 If n = 27, a = 3, and b = 5 then J (letter 10) gets tranformed to H, but so does A To be decipherable, a cipher function must be invertible (reversible). Each character must be mapped to exactly once. If n = 27, what values of a make the affine cipher an invertible function? What if n = 28?

39 Affine De-Cipher C-N Math Massey, 39 / 70 if y = f (x ) = ax + b then x = f 1 (y) = a 1 (y b) y = ax + b is invertible iff a 1 exists find 7 1 (mod 27) by writing {7k (mod 27)} 7 1 (mod 28) DNE inverses come in pairs (some may be their own inverse) hypothesize about when a 1 (mod n) exists

40 A Weird Function C-N Math Massey, 40 / 70 Let δ : N + N be defined by δ(n) = {q N q n} Describe the function in words. Compute δ(21).

41 Prime Numbers C-N Math Massey, 41 / 70 Let n > 1 be a natural number. Definition: n is prime if its only natural number divisors are 1 and n itself. n is prime iff δ(n) =. If n is not prime, then it is composite. If n is composite, then it has a prime factor which is n. Sieve of Eratosthenes

42 Fundamental Theorem of Arithmetic C-N Math Massey, 42 / 70 Fundamental Theorem of Arithmetic: each n > 1 can be written uniquely (up to ordering) as the product of prime factors n = p α i i e.g. the prime factorization of is =

43 Prime Number Theorem C-N Math Massey, 43 / 70 Let π(n) be the number of primes p n. π(n) n ln(n) This estimate was proved to be asymptotic in lim n π(n) n/ ln(n) = 1

44 Greatest Common Divisor C-N Math Massey, 44 / 70 Define the greatest common divisor of a, b Z to be the largest integer that is a divisor of both a and b. e.g. gcd(36, 84) = 12 (can use prime factors) If a 0, then gcd(a, 0) = a. a and b are relatively prime (coprime) if gcd(a, b) = 1

45 Least Common Multiple C-N Math Massey, 45 / 70 Define the least common multiple of a, b Z to be the smallest natural number that is a multiple of both a and b. e.g. lcm(14, 35) = 70 (can use prime factors) If l = lcm(a, b) then a l and b l Define lcm(a, 0) = 0 as a special case.

46 GCD and LCM C-N Math Massey, 46 / 70 gcd and lcm are commutative functions Use prime factors to find gcd(24, 30) and lcm(24, 30). Convince yourself that gcd(a, b) lcm(a, b) = ab.

47 Proving or Disproving C-N Math Massey, 47 / 70 Consider a general if-then statement. To be true, it must hold for any condition that satisfies the if part. No exceptions. You can t prove the statement by cherry-picking examples that work. You can disprove the statement by finding one counter-example: a case where the if part is true, but the then part is false.

48 Disprove C-N Math Massey, 48 / 70 Find a counter-example to the following: 1. if n > 0 then 2 2n + 1 is prime = = (641)( ) 2. if c (ab) then either c a or c b 3. gcd(ma, nb) = gcd(m, n) gcd(a, b)

49 Prove C-N Math Massey, 49 / If x 3 (mod 8) then x 2 9 (mod 16). 2. The product of two consecutive integers is even. (rewrite as if/then) 3. If n is odd, then 8 (n 2 1). 4. If c a and c b, then for any m, n Z, c (ma + nb). 5. If n N, then gcd(n, n + 1) = 1.

50 Prove or disprove C-N Math Massey, 50 / If p is prime, then p + 7 is composite. 2. If n > 0, then 3 n + 2 is prime. 3. If a b (mod n) then a 2 b 2 (mod n 2 ) 4. If a b (mod n) then a 2 b 2 (mod n)

51 Mathematical Statements C-N Math Massey, 51 / 70 conjecture: believed to be true, but unproven lemma: a precursor to a more noteworthy theorem theorem: has been proved corollary: follows as a special case of a theorem

52 Fun Fact C-N Math Massey, 52 / 70 (Liouville) Pick any n N + and write down its divisors, e.g. if n = 50 then {1, 2, 5, 10, 25, 50}. Then count how many divisors each divisor has. C = {1, 2, 2, 4, 3, 6}. Then ( C x )2 = C x 3. ( ) 2 = Proof is beyond the scope of this class.

53 E.A. Lemma 1 C-N Math Massey, 53 / 70 Lemma: For any k Z, x divides both a and b if and only if (iff) x divides both a + kb and b Proof: Suppose x a and x b. Then a = xq 1 and b = xq 2. Therefore a + kb = x (q 1 + kq 2 ), and so x (a + kb). Now suppose x (a + kb) and x b. Then a + kb = xq 1 and b = xq 2. Therefore a = xq 1 kb = x (q 1 kq 2 ), and so x a.

54 E.A. Lemma 2 C-N Math Massey, 54 / 70 Lemma: For any k Z, gcd(a, b) = gcd(b, a + kb) Proof: By the previous lemma, the set of common divisors of a and b is identical to the set of common divisors of a + kb and b. Therefore the GCD s must be the same.

55 Euclidean Algorithm C-N Math Massey, 55 / 70 Euclidean Algorithm Theorem: gcd(a, b) = gcd(b, a (mod b)) Proof: Use the division algorithm to write a = bq + r, where r = a (mod b). Then r = a bq. Taking k = q, the previous lemma says that gcd(a, b) = gcd(b, a bq) = gcd(b, r)

56 C-N Math Massey, 56 / 70 E.A. Example The Euclidean algorithm repeatedly uses the previous theorem to find the GCD of two numbers. gcd(952, 210) = gcd(210, 112) = gcd(112, 98) = gcd(98, 14) = gcd(14, 0) = 14

57 E.A. Exercises C-N Math Massey, 57 / Use the EA to find gcd(12540, 2002), then find the lcm. 2. Show that 495 and 392 are relatively prime. 3. True or false? gcd(a, b, c) = gcd(gcd(a, b), c) 4. Draw a line from (0, 0) to (a, b) in the Cartesian plane. How many integer lattice points does it cross?

58 C-N Math Massey, 58 / 70 GCD as a Linear Combination Back-substitution allows us to write the gcd as a linear combination of the two arguments, that is gcd(a, b) = c 1 a + c 2 b. 952 = (210)(4) = (112)(1) = (98)(1) = (14)(7) = 952(1) + (210)( 4) 98 = (952)( 1) + (210)(5) 14 = (952)(2) + (210)( 9)

59 GCD as a Linear Combination C-N Math Massey, 59 / 70 Theorem a and b are relatively prime iff 1 can be written as a linear combination of a and b. Proof First suppose a and b are relatively prime. Then gcd(a, b) = 1, and the EA with back-substitution allows us to write c 1 a + c 2 b = gcd(a, b) = 1. Now suppose c 1 a + c 2 b = 1, and suppose x is a divisor of both a and b. Say a = xq 1 and b = xq 2. Then x (c 1 q 1 + c 2 q 2 ) = 1, and since everything is an integer, it must be that x = 1. Therefore gcd(a, b) = 1.

60 C-N Math Massey, 60 / 70 Inverses in Z n Theorem If gcd(a, n) = 1, then a has an inverse in Z n. Proof Since gcd(a, n) = 1, we can write c 1 a + c 2 n = 1. Therefore c 1 a 1 (mod n), and c 1 is the candidate inverse. (existence) To be the inverse, c 1 must be the unique solution to ax 1 in Z n. If ax 1 then ac 1 ax 0, and therefore c 1 a(c 1 x ) 0. But since c 1 a 1, we get c 1 x 0 or x c 1. (uniqueness) a 1 = c 1

61 C-N Math Massey, 61 / 70 Inverses in Z n Theorem The converse is also true: if a has in inverse in Z n, then gcd(a, n) = 1. Proof Suppose ab 1 (mod n), so that ab = 1 + kn. Let d be a divisor of both a and n, so that a = dq 1 and n = dq 2. Then dq 1 b = 1 + kdq 2, and d(q 1 b kq 2 ) = 1. The only integer possibility is d = ±1.

62 C-N Math Massey, 62 / 70 Finding an inverse in Z n 1. Show that a = 28 and n = 135 are relatively prime, and write 1 as a linear combination of a and n. 2. Find 28 1 (mod 135). 3. Find 4 1 in Z 27 (easy by inspection) 4. Find 8 1 in Z 27 (use EA) 5. Solve 10(x 7) = 6 + 2x in Z 27

63 Affine Cipher Decryption C-N Math Massey, 63 / 70 Recall the affine cipher function and its inverse: y = ax + b (mod n) x = a 1 (y b) We now know that a 1 exists iff gcd(a, n) = 1. In general, use the EA to write c 1 a + c 2 n = 1, and then a 1 = c 1. If n = 27, a = 2, and b = 5, then y = 2x + 5 (mod 27) x = 14(y 5).

64 Pirate Treasure C-N Math Massey, 64 / 70 CRT A band of ten pirates captured a treasure chest full of gold coins. When they attempted to divide the coins evenly, 3 were left over. A fight ensued and one pirate was killed. Again they attempted to divide the coins, but now there were 8 left over. This time two pirates were killed fighting over the extras. On the third try, the coins divided evenly. How many coins were in the chest?

65 Pirate Treasure C-N Math Massey, 65 / 70 CRT Solve the system of congruences: x 3 (mod 10) x 8 (mod 9) x 0 (mod 7)

66 Chinese Remainder Theorem C-N Math Massey, 66 / 70 CRT Chinese Remainder Theorem: if m 1 and m 2 are relatively prime, then x r 1 (mod m 1 ) x r 2 (mod m 2 ) has a unique solution (mod m 1 m 2 ). This theorem can be extended to 3 or more congruences by induction.

67 CRT Algorithm C-N Math Massey, 67 / 70 CRT Idea: absorb each congruence sequentially: x = n n 8 (mod 9) 1n 5 (mod 9) n (mod 9) n = 5 x = 53 (mod 90) n 0 (mod 7) 4 + 6n 0 (mod 7) 6n 3 (mod 7) n = (mod 7) n = 4 x = 413 (mod 630)

68 Football Scores C-N Math Massey, 68 / 70 CRT Find all scores less than 100 that satisfy: x 1 (mod 2) x 2 (mod 3) x 3 (mod 7)

69 CRT Conditions This system has solutions C-N Math Massey, 69 / 70 CRT x 3 (mod 4) x 5 (mod 6) but this one is inconsistent, and has no solution. x 2 (mod 4) x 5 (mod 6)

70 Eggs C-N Math Massey, 70 / 70 CRT An old woman goes to market and a horse steps on her basket and crushes the eggs. The rider offers to pay for the damages and asks her how many eggs she had brought. She does not remember the exact number, but when she had taken them out two at a time, there was one egg left. The same happened when she picked them out three, four, five, and six at a time, but when she took them seven at a time they came out even. What is the smallest number of eggs she could have had?

C-N Math 207 Discrete Math

C-N Math 207 Discrete Math C-N Math 207 Discrete Math Kenneth Massey September 16, 2011 C-N Math 207 - Massey, 1 / 70 Question Introduction What is the smallest positive number? C-N Math 207 - Massey, 2 / 70 Sets Introduction a

More information

Mathematics of Cryptography

Mathematics of Cryptography Modulo arithmetic Fermat's Little Theorem If p is prime and 0 < a < p, then a p 1 = 1 mod p Ex: 3 (5 1) = 81 = 1 mod 5 36 (29 1) = 37711171281396032013366321198900157303750656 = 1 mod 29 (see http://gauss.ececs.uc.edu/courses/c472/java/fermat/fermat.html)

More information

Chapter 5. Number Theory. 5.1 Base b representations

Chapter 5. Number Theory. 5.1 Base b representations Chapter 5 Number Theory The material in this chapter offers a small glimpse of why a lot of facts that you ve probably nown and used for a long time are true. It also offers some exposure to generalization,

More information

5: The Integers (An introduction to Number Theory)

5: The Integers (An introduction to Number Theory) c Oksana Shatalov, Spring 2017 1 5: The Integers (An introduction to Number Theory) The Well Ordering Principle: Every nonempty subset on Z + has a smallest element; that is, if S is a nonempty subset

More information

Chapter 5: The Integers

Chapter 5: The Integers c Dr Oksana Shatalov, Fall 2014 1 Chapter 5: The Integers 5.1: Axioms and Basic Properties Operations on the set of integers, Z: addition and multiplication with the following properties: A1. Addition

More information

Exercises Exercises. 2. Determine whether each of these integers is prime. a) 21. b) 29. c) 71. d) 97. e) 111. f) 143. a) 19. b) 27. c) 93.

Exercises Exercises. 2. Determine whether each of these integers is prime. a) 21. b) 29. c) 71. d) 97. e) 111. f) 143. a) 19. b) 27. c) 93. Exercises Exercises 1. Determine whether each of these integers is prime. a) 21 b) 29 c) 71 d) 97 e) 111 f) 143 2. Determine whether each of these integers is prime. a) 19 b) 27 c) 93 d) 101 e) 107 f)

More information

4 Number Theory and Cryptography

4 Number Theory and Cryptography 4 Number Theory and Cryptography 4.1 Divisibility and Modular Arithmetic This section introduces the basics of number theory number theory is the part of mathematics involving integers and their properties.

More information

8. Given a rational number r, prove that there exist coprime integers p and q, with q 0, so that r = p q. . For all n N, f n = an b n 2

8. Given a rational number r, prove that there exist coprime integers p and q, with q 0, so that r = p q. . For all n N, f n = an b n 2 MATH 135: Randomized Exam Practice Problems These are the warm-up exercises and recommended problems taken from all the extra practice sets presented in random order. The challenge problems have not been

More information

4 Powers of an Element; Cyclic Groups

4 Powers of an Element; Cyclic Groups 4 Powers of an Element; Cyclic Groups Notation When considering an abstract group (G, ), we will often simplify notation as follows x y will be expressed as xy (x y) z will be expressed as xyz x (y z)

More information

Sets. We discuss an informal (naive) set theory as needed in Computer Science. It was introduced by G. Cantor in the second half of the nineteenth

Sets. We discuss an informal (naive) set theory as needed in Computer Science. It was introduced by G. Cantor in the second half of the nineteenth Sets We discuss an informal (naive) set theory as needed in Computer Science. It was introduced by G. Cantor in the second half of the nineteenth century. Most students have seen sets before. This is intended

More information

3 The fundamentals: Algorithms, the integers, and matrices

3 The fundamentals: Algorithms, the integers, and matrices 3 The fundamentals: Algorithms, the integers, and matrices 3.4 The integers and division This section introduces the basics of number theory number theory is the part of mathematics involving integers

More information

0 Sets and Induction. Sets

0 Sets and Induction. Sets 0 Sets and Induction Sets A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a A to denote that a is an element of the set

More information

Modular Arithmetic Instructor: Marizza Bailey Name:

Modular Arithmetic Instructor: Marizza Bailey Name: Modular Arithmetic Instructor: Marizza Bailey Name: 1. Introduction to Modular Arithmetic If someone asks you what day it is 145 days from now, what would you answer? Would you count 145 days, or find

More information

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

CHAPTER 6. Prime Numbers. Definition and Fundamental Results CHAPTER 6 Prime Numbers Part VI of PJE. Definition and Fundamental Results 6.1. Definition. (PJE definition 23.1.1) An integer p is prime if p > 1 and the only positive divisors of p are 1 and p. If n

More information

2 Elementary number theory

2 Elementary number theory 2 Elementary number theory 2.1 Introduction Elementary number theory is concerned with properties of the integers. Hence we shall be interested in the following sets: The set if integers {... 2, 1,0,1,2,3,...},

More information

1. Given the public RSA encryption key (e, n) = (5, 35), find the corresponding decryption key (d, n).

1. Given the public RSA encryption key (e, n) = (5, 35), find the corresponding decryption key (d, n). MATH 135: Randomized Exam Practice Problems These are the warm-up exercises and recommended problems taken from all the extra practice sets presented in random order. The challenge problems have not been

More information

2 Arithmetic. 2.1 Greatest common divisors. This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}.

2 Arithmetic. 2.1 Greatest common divisors. This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}. 2 Arithmetic This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}. (See [Houston, Chapters 27 & 28]) 2.1 Greatest common divisors Definition 2.16. If a, b are integers, we say

More information

MATH 2200 Final Review

MATH 2200 Final Review MATH 00 Final Review Thomas Goller December 7, 01 1 Exam Format The final exam will consist of 8-10 proofs It will take place on Tuesday, December 11, from 10:30 AM - 1:30 PM, in the usual room Topics

More information

Integers and Division

Integers and Division Integers and Division Notations Z: set of integers N : set of natural numbers R: set of real numbers Z + : set of positive integers Some elements of number theory are needed in: Data structures, Random

More information

MATH 433 Applied Algebra Lecture 4: Modular arithmetic (continued). Linear congruences.

MATH 433 Applied Algebra Lecture 4: Modular arithmetic (continued). Linear congruences. MATH 433 Applied Algebra Lecture 4: Modular arithmetic (continued). Linear congruences. Congruences Let n be a postive integer. The integers a and b are called congruent modulo n if they have the same

More information

1 Overview and revision

1 Overview and revision MTH6128 Number Theory Notes 1 Spring 2018 1 Overview and revision In this section we will meet some of the concerns of Number Theory, and have a brief revision of some of the relevant material from Introduction

More information

Arithmetic and Algebra

Arithmetic and Algebra Arithmetic and Algebra Daniel Butnaru daniel.butnaru@uni-konstanz.de 15. Dezember 2006 Daniel Butnaru daniel.butnaru@uni-konstanz.de Arithmetic and Algebra 1/39 Outline 1 Introduction 2 Big Number Arithmetic

More information

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer? Chapter 3: Theory of Modular Arithmetic 25 SECTION C Solving Linear Congruences By the end of this section you will be able to solve congruence equations determine the number of solutions find the multiplicative

More information

WORKSHEET ON NUMBERS, MATH 215 FALL. We start our study of numbers with the integers: N = {1, 2, 3,...}

WORKSHEET ON NUMBERS, MATH 215 FALL. We start our study of numbers with the integers: N = {1, 2, 3,...} WORKSHEET ON NUMBERS, MATH 215 FALL 18(WHYTE) We start our study of numbers with the integers: Z = {..., 2, 1, 0, 1, 2, 3,... } and their subset of natural numbers: N = {1, 2, 3,...} For now we will not

More information

Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr.

Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr. Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr. Chapter : Logic Topics:. Statements, Negation, and Compound Statements.2 Truth Tables and Logical Equivalences.3

More information

INTEGERS. In this section we aim to show the following: Goal. Every natural number can be written uniquely as a product of primes.

INTEGERS. In this section we aim to show the following: Goal. Every natural number can be written uniquely as a product of primes. INTEGERS PETER MAYR (MATH 2001, CU BOULDER) In this section we aim to show the following: Goal. Every natural number can be written uniquely as a product of primes. 1. Divisibility Definition. Let a, b

More information

Applied Cryptography and Computer Security CSE 664 Spring 2017

Applied Cryptography and Computer Security CSE 664 Spring 2017 Applied Cryptography and Computer Security Lecture 11: Introduction to Number Theory Department of Computer Science and Engineering University at Buffalo 1 Lecture Outline What we ve covered so far: symmetric

More information

NOTES ON SIMPLE NUMBER THEORY

NOTES ON SIMPLE NUMBER THEORY NOTES ON SIMPLE NUMBER THEORY DAMIEN PITMAN 1. Definitions & Theorems Definition: We say d divides m iff d is positive integer and m is an integer and there is an integer q such that m = dq. In this case,

More information

WORKSHEET MATH 215, FALL 15, WHYTE. We begin our course with the natural numbers:

WORKSHEET MATH 215, FALL 15, WHYTE. We begin our course with the natural numbers: WORKSHEET MATH 215, FALL 15, WHYTE We begin our course with the natural numbers: N = {1, 2, 3,...} which are a subset of the integers: Z = {..., 2, 1, 0, 1, 2, 3,... } We will assume familiarity with their

More information

Lecture 2. The Euclidean Algorithm and Numbers in Other Bases

Lecture 2. The Euclidean Algorithm and Numbers in Other Bases Lecture 2. The Euclidean Algorithm and Numbers in Other Bases At the end of Lecture 1, we gave formulas for the greatest common divisor GCD (a, b), and the least common multiple LCM (a, b) of two integers

More information

MATH Fundamental Concepts of Algebra

MATH Fundamental Concepts of Algebra MATH 4001 Fundamental Concepts of Algebra Instructor: Darci L. Kracht Kent State University April, 015 0 Introduction We will begin our study of mathematics this semester with the familiar notion of even

More information

Number Theory and Group Theoryfor Public-Key Cryptography

Number Theory and Group Theoryfor Public-Key Cryptography Number Theory and Group Theory for Public-Key Cryptography TDA352, DIT250 Wissam Aoudi Chalmers University of Technology November 21, 2017 Wissam Aoudi Number Theory and Group Theoryfor Public-Key Cryptography

More information

Direct Proof MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Direct Proof Fall / 24

Direct Proof MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Direct Proof Fall / 24 Direct Proof MAT231 Transition to Higher Mathematics Fall 2014 MAT231 (Transition to Higher Math) Direct Proof Fall 2014 1 / 24 Outline 1 Overview of Proof 2 Theorems 3 Definitions 4 Direct Proof 5 Using

More information

Proofs. Methods of Proof Divisibility Floor and Ceiling Contradiction & Contrapositive Euclidean Algorithm. Reading (Epp s textbook)

Proofs. Methods of Proof Divisibility Floor and Ceiling Contradiction & Contrapositive Euclidean Algorithm. Reading (Epp s textbook) Proofs Methods of Proof Divisibility Floor and Ceiling Contradiction & Contrapositive Euclidean Algorithm Reading (Epp s textbook) 4.3 4.8 1 Divisibility The notation d n is read d divides n. Symbolically,

More information

Beautiful Mathematics

Beautiful Mathematics Beautiful Mathematics 1. Principle of Mathematical Induction The set of natural numbers is the set of positive integers {1, 2, 3,... } and is denoted by N. The Principle of Mathematical Induction is a

More information

MATH 361: NUMBER THEORY FOURTH LECTURE

MATH 361: NUMBER THEORY FOURTH LECTURE MATH 361: NUMBER THEORY FOURTH LECTURE 1. Introduction Everybody knows that three hours after 10:00, the time is 1:00. That is, everybody is familiar with modular arithmetic, the usual arithmetic of the

More information

An integer p is prime if p > 1 and p has exactly two positive divisors, 1 and p.

An integer p is prime if p > 1 and p has exactly two positive divisors, 1 and p. Chapter 6 Prime Numbers Part VI of PJE. Definition and Fundamental Results Definition. (PJE definition 23.1.1) An integer p is prime if p > 1 and p has exactly two positive divisors, 1 and p. If n > 1

More information

CHAPTER 3. Congruences. Congruence: definitions and properties

CHAPTER 3. Congruences. Congruence: definitions and properties CHAPTER 3 Congruences Part V of PJE Congruence: definitions and properties Definition. (PJE definition 19.1.1) Let m > 0 be an integer. Integers a and b are congruent modulo m if m divides a b. We write

More information

Basic elements of number theory

Basic elements of number theory Cryptography Basic elements of number theory Marius Zimand 1 Divisibility, prime numbers By default all the variables, such as a, b, k, etc., denote integer numbers. Divisibility a 0 divides b if b = a

More information

MATH 501 Discrete Mathematics. Lecture 6: Number theory. German University Cairo, Department of Media Engineering and Technology.

MATH 501 Discrete Mathematics. Lecture 6: Number theory. German University Cairo, Department of Media Engineering and Technology. MATH 501 Discrete Mathematics Lecture 6: Number theory Prof. Dr. Slim Abdennadher, slim.abdennadher@guc.edu.eg German University Cairo, Department of Media Engineering and Technology 1 Number theory Number

More information

Basic elements of number theory

Basic elements of number theory Cryptography Basic elements of number theory Marius Zimand By default all the variables, such as a, b, k, etc., denote integer numbers. Divisibility a 0 divides b if b = a k for some integer k. Notation

More information

4. Number Theory (Part 2)

4. Number Theory (Part 2) 4. Number Theory (Part 2) Terence Sim Mathematics is the queen of the sciences and number theory is the queen of mathematics. Reading Sections 4.8, 5.2 5.4 of Epp. Carl Friedrich Gauss, 1777 1855 4.3.

More information

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Lecture Notes 1 Basic Concepts of Mathematics MATH 352 Lecture Notes 1 Basic Concepts of Mathematics MATH 352 Ivan Avramidi New Mexico Institute of Mining and Technology Socorro, NM 87801 June 3, 2004 Author: Ivan Avramidi; File: absmath.tex; Date: June 11,

More information

Number Theory Proof Portfolio

Number Theory Proof Portfolio Number Theory Proof Portfolio Jordan Rock May 12, 2015 This portfolio is a collection of Number Theory proofs and problems done by Jordan Rock in the Spring of 2014. The problems are organized first by

More information

Math.3336: Discrete Mathematics. Primes and Greatest Common Divisors

Math.3336: Discrete Mathematics. Primes and Greatest Common Divisors Math.3336: Discrete Mathematics Primes and Greatest Common Divisors Instructor: Dr. Blerina Xhabli Department of Mathematics, University of Houston https://www.math.uh.edu/ blerina Email: blerina@math.uh.edu

More information

2k n. k=0. 3x 2 7 (mod 11) 5 4x 1 (mod 9) 2 r r +1 = r (2 r )

2k n. k=0. 3x 2 7 (mod 11) 5 4x 1 (mod 9) 2 r r +1 = r (2 r ) MATH 135: Randomized Exam Practice Problems These are the warm-up exercises and recommended problems take from the extra practice sets presented in random order. The challenge problems have not been included.

More information

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers Solutions

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers Solutions Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers Solutions Warm-up Problems 1. What is a prime number? Give an example of an even prime number and an odd prime number. A prime number

More information

Number Theory Marathon. Mario Ynocente Castro, National University of Engineering, Peru

Number Theory Marathon. Mario Ynocente Castro, National University of Engineering, Peru Number Theory Marathon Mario Ynocente Castro, National University of Engineering, Peru 1 2 Chapter 1 Problems 1. (IMO 1975) Let f(n) denote the sum of the digits of n. Find f(f(f(4444 4444 ))). 2. Prove

More information

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer? Chapter 3: Theory of Modular Arithmetic 25 SECTION C Solving Linear Congruences By the end of this section you will be able to solve congruence equations determine the number of solutions find the multiplicative

More information

Lecture 5: Arithmetic Modulo m, Primes and Greatest Common Divisors Lecturer: Lale Özkahya

Lecture 5: Arithmetic Modulo m, Primes and Greatest Common Divisors Lecturer: Lale Özkahya BBM 205 Discrete Mathematics Hacettepe University http://web.cs.hacettepe.edu.tr/ bbm205 Lecture 5: Arithmetic Modulo m, Primes and Greatest Common Divisors Lecturer: Lale Özkahya Resources: Kenneth Rosen,

More information

MATH 145 Algebra, Solutions to Assignment 4

MATH 145 Algebra, Solutions to Assignment 4 MATH 145 Algebra, Solutions to Assignment 4 1: a) Find the inverse of 178 in Z 365. Solution: We find s and t so that 178s + 365t = 1, and then 178 1 = s. The Euclidean Algorithm gives 365 = 178 + 9 178

More information

Student Responsibilities Week 8. Mat Section 3.6 Integers and Algorithms. Algorithm to Find gcd()

Student Responsibilities Week 8. Mat Section 3.6 Integers and Algorithms. Algorithm to Find gcd() Student Responsibilities Week 8 Mat 2345 Week 8 Reading: Textbook, Section 3.7, 4.1, & 5.2 Assignments: Sections 3.6, 3.7, 4.1 Induction Proof Worksheets Attendance: Strongly Encouraged Fall 2013 Week

More information

CSE 1400 Applied Discrete Mathematics Proofs

CSE 1400 Applied Discrete Mathematics Proofs CSE 1400 Applied Discrete Mathematics Proofs Department of Computer Sciences College of Engineering Florida Tech Fall 2011 Axioms 1 Logical Axioms 2 Models 2 Number Theory 3 Graph Theory 4 Set Theory 4

More information

Algorithmic number theory. Questions/Complaints About Homework? The division algorithm. Division

Algorithmic number theory. Questions/Complaints About Homework? The division algorithm. Division Questions/Complaints About Homework? Here s the procedure for homework questions/complaints: 1. Read the solutions first. 2. Talk to the person who graded it (check initials) 3. If (1) and (2) don t work,

More information

Lecture Notes. Advanced Discrete Structures COT S

Lecture Notes. Advanced Discrete Structures COT S Lecture Notes Advanced Discrete Structures COT 4115.001 S15 2015-01-13 Recap Divisibility Prime Number Theorem Euclid s Lemma Fundamental Theorem of Arithmetic Euclidean Algorithm Basic Notions - Section

More information

EUCLID S ALGORITHM AND THE FUNDAMENTAL THEOREM OF ARITHMETIC after N. Vasiliev and V. Gutenmacher (Kvant, 1972)

EUCLID S ALGORITHM AND THE FUNDAMENTAL THEOREM OF ARITHMETIC after N. Vasiliev and V. Gutenmacher (Kvant, 1972) Intro to Math Reasoning Grinshpan EUCLID S ALGORITHM AND THE FUNDAMENTAL THEOREM OF ARITHMETIC after N. Vasiliev and V. Gutenmacher (Kvant, 1972) We all know that every composite natural number is a product

More information

2.3 In modular arithmetic, all arithmetic operations are performed modulo some integer.

2.3 In modular arithmetic, all arithmetic operations are performed modulo some integer. CHAPTER 2 INTRODUCTION TO NUMBER THEORY ANSWERS TO QUESTIONS 2.1 A nonzero b is a divisor of a if a = mb for some m, where a, b, and m are integers. That is, b is a divisor of a if there is no remainder

More information

COMP239: Mathematics for Computer Science II. Prof. Chadi Assi EV7.635

COMP239: Mathematics for Computer Science II. Prof. Chadi Assi EV7.635 COMP239: Mathematics for Computer Science II Prof. Chadi Assi assi@ciise.concordia.ca EV7.635 The Euclidean Algorithm The Euclidean Algorithm Finding the GCD of two numbers using prime factorization is

More information

Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Spring 2006

Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Spring 2006 Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry Spring 2006 1 / 1 Computer Science & Engineering 235 Introduction to Discrete Mathematics Sections 2.4 2.6 of Rosen Introduction I When talking

More information

Part IA Numbers and Sets

Part IA Numbers and Sets Part IA Numbers and Sets Definitions Based on lectures by A. G. Thomason Notes taken by Dexter Chua Michaelmas 2014 These notes are not endorsed by the lecturers, and I have modified them (often significantly)

More information

CISC-102 Fall 2017 Week 6

CISC-102 Fall 2017 Week 6 Week 6 page 1! of! 15 CISC-102 Fall 2017 Week 6 We will see two different, yet similar, proofs that there are infinitely many prime numbers. One proof would surely suffice. However, seeing two different

More information

Know the Well-ordering principle: Any set of positive integers which has at least one element contains a smallest element.

Know the Well-ordering principle: Any set of positive integers which has at least one element contains a smallest element. The first exam will be on Monday, June 8, 202. The syllabus will be sections. and.2 in Lax, and the number theory handout found on the class web site, plus the handout on the method of successive squaring

More information

Number Theory Marathon. Mario Ynocente Castro, National University of Engineering, Peru

Number Theory Marathon. Mario Ynocente Castro, National University of Engineering, Peru Number Theory Marathon Mario Ynocente Castro, National University of Engineering, Peru 1 2 Chapter 1 Problems 1. (IMO 1975) Let f(n) denote the sum of the digits of n. Find f(f(f(4444 4444 ))). 2. Prove

More information

PROBLEMS ON CONGRUENCES AND DIVISIBILITY

PROBLEMS ON CONGRUENCES AND DIVISIBILITY PROBLEMS ON CONGRUENCES AND DIVISIBILITY 1. Do there exist 1,000,000 consecutive integers each of which contains a repeated prime factor? 2. A positive integer n is powerful if for every prime p dividing

More information

Mat Week 8. Week 8. gcd() Mat Bases. Integers & Computers. Linear Combos. Week 8. Induction Proofs. Fall 2013

Mat Week 8. Week 8. gcd() Mat Bases. Integers & Computers. Linear Combos. Week 8. Induction Proofs. Fall 2013 Fall 2013 Student Responsibilities Reading: Textbook, Section 3.7, 4.1, & 5.2 Assignments: Sections 3.6, 3.7, 4.1 Proof Worksheets Attendance: Strongly Encouraged Overview 3.6 Integers and Algorithms 3.7

More information

PRIME NUMBERS YANKI LEKILI

PRIME NUMBERS YANKI LEKILI PRIME NUMBERS YANKI LEKILI We denote by N the set of natural numbers: 1,2,..., These are constructed using Peano axioms. We will not get into the philosophical questions related to this and simply assume

More information

CS March 17, 2009

CS March 17, 2009 Discrete Mathematics CS 2610 March 17, 2009 Number Theory Elementary number theory, concerned with numbers, usually integers and their properties or rational numbers mainly divisibility among integers

More information

Deepening Mathematics Instruction for Secondary Teachers: Algebraic Structures

Deepening Mathematics Instruction for Secondary Teachers: Algebraic Structures Deepening Mathematics Instruction for Secondary Teachers: Algebraic Structures Lance Burger Fresno State Preliminary Edition Contents Preface ix 1 Z The Integers 1 1.1 What are the Integers?......................

More information

Elementary Number Theory Review. Franz Luef

Elementary Number Theory Review. Franz Luef Elementary Number Theory Review Principle of Induction Principle of Induction Suppose we have a sequence of mathematical statements P(1), P(2),... such that (a) P(1) is true. (b) If P(k) is true, then

More information

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers Warm-up Problems 1. What is a prime number? Give an example of an even prime number and an odd prime number. (a) Circle the prime

More information

1. multiplication is commutative and associative;

1. multiplication is commutative and associative; Chapter 4 The Arithmetic of Z In this chapter, we start by introducing the concept of congruences; these are used in our proof (going back to Gauss 1 ) that every integer has a unique prime factorization.

More information

4 PRIMITIVE ROOTS Order and Primitive Roots The Index Existence of primitive roots for prime modulus...

4 PRIMITIVE ROOTS Order and Primitive Roots The Index Existence of primitive roots for prime modulus... PREFACE These notes have been prepared by Dr Mike Canfell (with minor changes and extensions by Dr Gerd Schmalz) for use by the external students in the unit PMTH 338 Number Theory. This booklet covers

More information

Chapter 1 : The language of mathematics.

Chapter 1 : The language of mathematics. MAT 200, Logic, Language and Proof, Fall 2015 Summary Chapter 1 : The language of mathematics. Definition. A proposition is a sentence which is either true or false. Truth table for the connective or :

More information

Part I, Number Systems. CS131 Mathematics for Computer Scientists II Note 1 INTEGERS

Part I, Number Systems. CS131 Mathematics for Computer Scientists II Note 1 INTEGERS CS131 Part I, Number Systems CS131 Mathematics for Computer Scientists II Note 1 INTEGERS The set of all integers will be denoted by Z. So Z = {..., 2, 1, 0, 1, 2,...}. The decimal number system uses the

More information

ALGEBRA. 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers

ALGEBRA. 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers ALGEBRA CHRISTIAN REMLING 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers by Z = {..., 2, 1, 0, 1,...}. Given a, b Z, we write a b if b = ac for some

More information

Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Homework 5. This homework is due October 6, 2014, at 12:00 noon.

Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Homework 5. This homework is due October 6, 2014, at 12:00 noon. EECS 70 Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Homework 5 This homework is due October 6, 2014, at 12:00 noon. 1. Modular Arithmetic Lab (continue) Oystein Ore described a puzzle

More information

With Question/Answer Animations. Chapter 4

With Question/Answer Animations. Chapter 4 With Question/Answer Animations Chapter 4 Chapter Motivation Number theory is the part of mathematics devoted to the study of the integers and their properties. Key ideas in number theory include divisibility

More information

Notes on Systems of Linear Congruences

Notes on Systems of Linear Congruences MATH 324 Summer 2012 Elementary Number Theory Notes on Systems of Linear Congruences In this note we will discuss systems of linear congruences where the moduli are all different. Definition. Given the

More information

1. Consider the conditional E = p q r. Use de Morgan s laws to write simplified versions of the following : The negation of E : 5 points

1. Consider the conditional E = p q r. Use de Morgan s laws to write simplified versions of the following : The negation of E : 5 points Introduction to Discrete Mathematics 3450:208 Test 1 1. Consider the conditional E = p q r. Use de Morgan s laws to write simplified versions of the following : The negation of E : The inverse of E : The

More information

Mathematics for Computer Science Exercises for Week 10

Mathematics for Computer Science Exercises for Week 10 Mathematics for Computer Science Exercises for Week 10 Silvio Capobianco Last update: 7 November 2018 Problems from Section 9.1 Problem 9.1. Prove that a linear combination of linear combinations of integers

More information

CMPUT 403: Number Theory

CMPUT 403: Number Theory CMPUT 403: Number Theory Zachary Friggstad February 26, 2016 Outline Factoring Sieve Multiplicative Functions Greatest Common Divisors Applications Chinese Remainder Theorem Factoring Theorem (Fundamental

More information

not to be republished NCERT REAL NUMBERS CHAPTER 1 (A) Main Concepts and Results

not to be republished NCERT REAL NUMBERS CHAPTER 1 (A) Main Concepts and Results REAL NUMBERS CHAPTER 1 (A) Main Concepts and Results Euclid s Division Lemma : Given two positive integers a and b, there exist unique integers q and r satisfying a = bq + r, 0 r < b. Euclid s Division

More information

Definition 6.1 (p.277) A positive integer n is prime when n > 1 and the only positive divisors are 1 and n. Alternatively

Definition 6.1 (p.277) A positive integer n is prime when n > 1 and the only positive divisors are 1 and n. Alternatively 6 Prime Numbers Part VI of PJE 6.1 Fundamental Results Definition 6.1 (p.277) A positive integer n is prime when n > 1 and the only positive divisors are 1 and n. Alternatively D (p) = { p 1 1 p}. Otherwise

More information

MATH FINAL EXAM REVIEW HINTS

MATH FINAL EXAM REVIEW HINTS MATH 109 - FINAL EXAM REVIEW HINTS Answer: Answer: 1. Cardinality (1) Let a < b be two real numbers and define f : (0, 1) (a, b) by f(t) = (1 t)a + tb. (a) Prove that f is a bijection. (b) Prove that any

More information

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1 MATH 4400 SOLUTIONS TO SOME EXERCISES 1.1.3. If a b and b c show that a c. 1. Chapter 1 Solution: a b means that b = na and b c that c = mb. Substituting b = na gives c = (mn)a, that is, a c. 1.2.1. Find

More information

a the relation arb is defined if and only if = 2 k, k

a the relation arb is defined if and only if = 2 k, k DISCRETE MATHEMATICS Past Paper Questions in Number Theory 1. Prove that 3k + 2 and 5k + 3, k are relatively prime. (Total 6 marks) 2. (a) Given that the integers m and n are such that 3 (m 2 + n 2 ),

More information

cse547, math547 DISCRETE MATHEMATICS Professor Anita Wasilewska

cse547, math547 DISCRETE MATHEMATICS Professor Anita Wasilewska cse547, math547 DISCRETE MATHEMATICS Professor Anita Wasilewska LECTURE 12 CHAPTER 4 NUMBER THEORY PART1: Divisibility PART 2: Primes PART 1: DIVISIBILITY Basic Definitions Definition Given m,n Z, we say

More information

The set of integers will be denoted by Z = {, -3, -2, -1, 0, 1, 2, 3, 4, }

The set of integers will be denoted by Z = {, -3, -2, -1, 0, 1, 2, 3, 4, } Integers and Division 1 The Integers and Division This area of discrete mathematics belongs to the area of Number Theory. Some applications of the concepts in this section include generating pseudorandom

More information

NUMBER SYSTEMS. Number theory is the study of the integers. We denote the set of integers by Z:

NUMBER SYSTEMS. Number theory is the study of the integers. We denote the set of integers by Z: NUMBER SYSTEMS Number theory is the study of the integers. We denote the set of integers by Z: Z = {..., 3, 2, 1, 0, 1, 2, 3,... }. The integers have two operations defined on them, addition and multiplication,

More information

Introduction to Abstract Mathematics

Introduction to Abstract Mathematics Introduction to Abstract Mathematics Notation: Z + or Z >0 denotes the set {1, 2, 3,...} of positive integers, Z 0 is the set {0, 1, 2,...} of nonnegative integers, Z is the set {..., 1, 0, 1, 2,...} of

More information

MATH 115, SUMMER 2012 LECTURE 4 THURSDAY, JUNE 21ST

MATH 115, SUMMER 2012 LECTURE 4 THURSDAY, JUNE 21ST MATH 115, SUMMER 2012 LECTURE 4 THURSDAY, JUNE 21ST JAMES MCIVOR Today we enter Chapter 2, which is the heart of this subject. Before starting, recall that last time we saw the integers have unique factorization

More information

Summary Slides for MATH 342 June 25, 2018

Summary Slides for MATH 342 June 25, 2018 Summary Slides for MATH 342 June 25, 2018 Summary slides based on Elementary Number Theory and its applications by Kenneth Rosen and The Theory of Numbers by Ivan Niven, Herbert Zuckerman, and Hugh Montgomery.

More information

Clock Arithmetic and Euclid s Algorithm

Clock Arithmetic and Euclid s Algorithm Clock Arithmetic and Euclid s Algorithm Lecture notes for Access 2008 by Erin Chamberlain. Earlier we discussed Caesar Shifts and other substitution ciphers, and we saw how easy it was to break these ciphers

More information

Objective Type Questions

Objective Type Questions DISTANCE EDUCATION, UNIVERSITY OF CALICUT NUMBER THEORY AND LINEARALGEBRA Objective Type Questions Shyama M.P. Assistant Professor Department of Mathematics Malabar Christian College, Calicut 7/3/2014

More information

Numbers, Groups and Cryptography. Gordan Savin

Numbers, Groups and Cryptography. Gordan Savin Numbers, Groups and Cryptography Gordan Savin Contents Chapter 1. Euclidean Algorithm 5 1. Euclidean Algorithm 5 2. Fundamental Theorem of Arithmetic 9 3. Uniqueness of Factorization 14 4. Efficiency

More information

COMP9020 Lecture 3 Session 2, 2014 Sets, Functions, and Sequences. Revision: 1.3

COMP9020 Lecture 3 Session 2, 2014 Sets, Functions, and Sequences. Revision: 1.3 1 COMP9020 Lecture 3 Session 2, 2014 Sets, Functions, and Sequences Revision: 1.3 2 Notation for Numbers Definition Integers Z = {... 2, 1, 0, 1, 2,...} Reals R. : R Z floor of x, the greatest integer

More information

The Chinese Remainder Theorem

The Chinese Remainder Theorem Sacred Heart University DigitalCommons@SHU Academic Festival Apr 20th, 9:30 AM - 10:45 AM The Chinese Remainder Theorem Nancirose Piazza Follow this and additional works at: http://digitalcommons.sacredheart.edu/acadfest

More information

Number theory lectures

Number theory lectures Number theory lectures By Dr. Mohammed M. AL-Ashker Associated professor Mathematics Department E.mail:mashker @ mail.iugaza.edu Islamic University of Gaza P.O.Box 108, Gaza, Palestine 1 Contents 1 Divisibility

More information

The Integers and Beyond

The Integers and Beyond Chapter 3 The Integers and Beyond God made the integers; all the rest is the work of man. - Leopold Kronecker 3.1 Properties of the Integers We begin with a technical property that is useful in proofs.

More information

PUTNAM TRAINING NUMBER THEORY. Exercises 1. Show that the sum of two consecutive primes is never twice a prime.

PUTNAM TRAINING NUMBER THEORY. Exercises 1. Show that the sum of two consecutive primes is never twice a prime. PUTNAM TRAINING NUMBER THEORY (Last updated: December 11, 2017) Remark. This is a list of exercises on Number Theory. Miguel A. Lerma Exercises 1. Show that the sum of two consecutive primes is never twice

More information