Elementary Properties of the Integers

Similar documents
11 Division Mod n, Linear Integer Equations, Random Numbers, The Fundamental Theorem of Arithmetic

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

Math 131 notes. Jason Riedy. 6 October, Linear Diophantine equations : Likely delayed 6

Chapter 2. Divisibility. 2.1 Common Divisors

The Euclidean Algorithm and Multiplicative Inverses

Chapter 5: The Integers

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

NOTES ON SIMPLE NUMBER THEORY

Cool Results on Primes

Modular Arithmetic Instructor: Marizza Bailey Name:

Ch 4.2 Divisibility Properties

Homework #2 solutions Due: June 15, 2012

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

Math 109 HW 9 Solutions

2 Elementary number theory

Divisibility = 16, = 9, = 2, = 5. (Negative!)

18 Divisibility. and 0 r < d. Lemma Let n,d Z with d 0. If n = qd+r = q d+r with 0 r,r < d, then q = q and r = r.

8 Primes and Modular Arithmetic

NOTES ON INTEGERS. 1. Integers

4 Powers of an Element; Cyclic Groups

1. multiplication is commutative and associative;

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?

MATH10040 Chapter 1: Integers and divisibility

Mathematical Reasoning & Proofs

5: The Integers (An introduction to Number Theory)

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

Number Theory Math 420 Silverman Exam #1 February 27, 2018

Writing Assignment 2 Student Sample Questions

Intermediate Math Circles February 29, 2012 Linear Diophantine Equations I

Solution Sheet (i) q = 5, r = 15 (ii) q = 58, r = 15 (iii) q = 3, r = 7 (iv) q = 6, r = (i) gcd (97, 157) = 1 = ,

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?

Q 2.0.2: If it s 5:30pm now, what time will it be in 4753 hours? Q 2.0.3: Today is Wednesday. What day of the week will it be in one year from today?

Contribution of Problems

Commutative Rings and Fields

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

The following is an informal description of Euclid s algorithm for finding the greatest common divisor of a pair of numbers:

3 The fundamentals: Algorithms, the integers, and matrices

Number Theory Proof Portfolio

Chapter 3 Basic Number Theory

Number Theory Notes Spring 2011

Wednesday, February 21. Today we will begin Course Notes Chapter 5 (Number Theory).

1 Overview and revision

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

Lecture Notes. Advanced Discrete Structures COT S

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

Basic elements of number theory

Basic elements of number theory

CHAPTER 3. Congruences. Congruence: definitions and properties

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

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

4 Number Theory and Cryptography

Rings and modular arithmetic

Summary: Divisibility and Factorization

CS 5319 Advanced Discrete Structure. Lecture 9: Introduction to Number Theory II

Chapter 5. Number Theory. 5.1 Base b representations

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

#26: Number Theory, Part I: Divisibility

Contribution of Problems

Integers and Division

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

A number that can be written as, where p and q are integers and q Number.

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

This is a recursive algorithm. The procedure is guaranteed to terminate, since the second argument decreases each time.

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

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

With Question/Answer Animations. Chapter 4

Beautiful Mathematics

Chapter 14: Divisibility and factorization

Clock Arithmetic and Euclid s Algorithm

32 Divisibility Theory in Integral Domains

Intermediate Math Circles February 26, 2014 Diophantine Equations I

Math 412, Introduction to abstract algebra. Overview of algebra.

Math Review. for the Quantitative Reasoning measure of the GRE General Test

Numbers, Groups and Cryptography. Gordan Savin

Discrete Mathematics and Probability Theory Fall 2018 Alistair Sinclair and Yun Song Note 6

Math 511, Algebraic Systems, Fall 2017 July 20, 2017 Edition. Todd Cochrane

Solutions, Project on p-adic Numbers, Real Analysis I, Fall, 2010.

CHAPTER 4: EXPLORING Z

Proof 1: Using only ch. 6 results. Since gcd(a, b) = 1, we have

5 + 9(10) + 3(100) + 0(1000) + 2(10000) =

MATH 3240Q Introduction to Number Theory Homework 4

ACCUPLACER MATH 0310

Chapter 1 A Survey of Divisibility 14

Discrete Mathematics and Probability Theory Summer 2014 James Cook Note 5

Algebra for error control codes

Lecture 4: Number theory

Chapter 1. Greatest common divisor. 1.1 The division theorem. In the beginning, there are the natural numbers 0, 1, 2, 3, 4,...,

GENERATING SETS KEITH CONRAD

Some Facts from Number Theory

Lecture 2. The Euclidean Algorithm and Numbers in Other Bases

Senior Math Circles Cryptography and Number Theory Week 2

= 1 2x. x 2 a ) 0 (mod p n ), (x 2 + 2a + a2. x a ) 2

AN ALGEBRAIC PROOF OF RSA ENCRYPTION AND DECRYPTION

Divisibility. Def: a divides b (denoted a b) if there exists an integer x such that b = ax. If a divides b we say that a is a divisor of b.

AN ALGEBRA PRIMER WITH A VIEW TOWARD CURVES OVER FINITE FIELDS

The Chinese Remainder Theorem

SUBGROUPS OF CYCLIC GROUPS. 1. Introduction In a group G, we denote the (cyclic) group of powers of some g G by

1. Algebra 1.5. Polynomial Rings

Properties of the Integers

a + b = b + a and a b = b a. (a + b) + c = a + (b + c) and (a b) c = a (b c). a (b + c) = a b + a c and (a + b) c = a c + b c.

Transcription:

Elementary Properties of the Integers 1 1. Basis Representation Theorem (Thm 1-3) 2. Euclid s Division Lemma (Thm 2-1) 3. Greatest Common Divisor 4. Properties of Prime Numbers 5. Fundamental Theorem of Arithmetic (Thm 2-5)

The Integers: Z 2 For most of this course, we restrict ourselves to the set of integers. Some helpful hints to keep in mind: Addition, subtraction, and multiplication work normally. The sum/difference/product of two integers is always another integer. Commutative, associative, and distributive laws hold. The reciprocal of an integer is almost never an integer. What are the exceptions? Division/fractions must be handled with care. If you use a fraction within an equation, be ABSOLUTELY CERTAIN that the fraction represents an integer. If you are unsure, don t use the fraction.

It is valid to use constant fractions within inequalities (example: x > 1 2 ), but it may be confusing to do so. Consider the sets: A = { x Z : x > 1 }, B = {x Z : x 1}. 2 3 The Cancellation Laws still work. If ax = ay, we can cancel the a from both sides to get x = y, as long as a 0. The same is true for xa = ya. Nonnegative integer exponents work normally. Negative or fractional exponents should generally be avoided. In particular, reciprocals and roots are not always defined, and might behave differently even when they exist.

The Natural Numbers: N We will occasionally restrict ourselves to non-negative integers. These are called Natural Numbers (or Whole Numbers, in older texts). Addition and multiplication work normally. Negation does not make sense. Subtraction is not always defined. Reciprocals, division/fractions, exponents/roots have the same issues as in Z. 4 A nonempty subset of N always contains a minimal element. known as Well-Ordering or the Least Integer Principle. This is Mathematical induction can (and often will be) used to prove that a result holds for all natural numbers.

Integer Division with Remainder Theorem (Euclid s Division Lemma (Thm 2-1)). For each integer j and each positive integer k, there is a unique pair of integers q and r such that 0 r < k and j = kq + r. For j > 0, this is the familiar division problem j k = q REM r. One way to find the values of q and r: If j < k, we can choose q = 0 and r = j. If j k, then j k 0 is still positive. If j k k, subtract another copy of k (to get j 2k 0). Repeating this, we ll eventually get a j qk that is nonnegative and smaller than k. We let r = j qk. 5

Note: This is certainly NOT the most efficient way to compute a quotient/reminder, but it makes for an easy proof (using Well-Ordering). Proof. (Existence): Given j and k, consider the subset of natural numbers S = {j xk : x Z}. Why is this set nonempty? By the Well-Ordering Principle, S has a smallest element. Let r = j qk be this smallest element. We need to show r < k. Assume this is not true, then r k and thus r k 0. However, r k = (j qk) k = j (q + 1)k. 6 Thus r k S, but this is impossible, since r k < r and r was the smallest element of S.

(Uniqueness): Suppose that (q, r) and (q, r ) both satisfy the conclusion of the Theorem. Then kq + r = kq + r 7 since both sides are equal to j. Rearranging gives: (q q ) = r r k. The right-hand side must be an integer (why?) We know that 0 r < k and k < r 0. Adding these together gives k < r r < k. Thus 1 < r r k < 1. What does this tell us?

8 (Uniqueness, continued): The only integer between 1 and 1 is zero. We thus have r r k = 0, which immediately gives r = r. This trick is available precisely because we ve restricted ourselves to integer values. It also follow that q q = 0. In other words, q = q. This proof contains a common method for showing that a certain object is unique (in this case, the pair (q, r)): assume you have two things satisfying a given condition, and show that those two things must be equal.

Divisibility (Section 2-2) Definition. Given an integer n and a nonzero integer d, we say that d divides n if there is an integer c such that n = cd. We write d n if d divides n, and d n if d does not divide n. 9 Note that d n is equivalent to n d is an integer. However, you are advised to avoid using fractions in problems about divisibility. In terms of the Division Lemma, d n is equivalent to n leaves a remainder of zero when divided by d. Keep this in mind: many divisibility proofs use this idea. Divisibility is one of the key concepts of this course. It leads to the idea of congruence (modulo n), which will be another central theme.

Exercise: Properties of Divisibility 10 Prove these directly from the definition (do not use fractions!): If a is a nonzero integer, then a 0 and 1 a. If a b and b c, then a c. [IMPORTANT!] If d a and d b, then d (am + bn) for any m, n Z. If a b and b a, then a = ±b. Find positive integers a, b, c such that a bc, but a b and a c.

Greatest Common Divisor/Factor 11 You know from basic arithmetic that, given two integers, we can find their greatest common divisor (or greatest common factor). One way to find a g.c.d. is using prime factorization. For example: 1512 = 2 3 3 3 7 4410 = 2 3 2 5 7 2 gcd(1512, 4410) = 2 3 2 7 = 126 This is not always so simple. Try finding gcd(18, 42) (easy!) gcd(629, 1517) (more work!)

We use the following definition of gcd(a, b): Definition (2-1). Let a and b be two integers, not both zero. The greatest common divisor of a and b is a positive integer d which satisfies the following properties: 1. d a and d b. In other words, d is a common divisor of a and b. 2. For any positive integer c for which c a and c b, we have c d. Thus, any common divisor of a and b must also divide d. 12 This definition is easier to use in practice. It can be shown that if d satisfies this definition and c is any common divisor of a and b, then d c.

The Euclidean Algorithm 13 It turns out that we can compute a gcd without using prime factorization. For example, we find gcd(1517, 629) by repeated use of the Division Lemma: 1517 =(629)(2) + 259 629 =(259)(2) + 111 259 =(111)(2) + 37 111 =(37)(3) + 0 To show that 37 is a common divisor, start with the last equation and work up. To show any common divisor divides 37, start with the first equation and work down.

The Euclidean Algorthim 14 The same process can be used to find gcd(a, b) if a and b are positive: 1. Let DIVIDEND = larger of a and b, DIVISOR = smaller of a and b. 2. Find the REMAINDER of DIVIDEND DIVISOR. 3. If REMAINDER = 0, then DIVISOR is the gcd. [Stop] 4. Otherwise, let DIVIDEND = DIVISOR, then DIVISOR = REMAINDER. 5. Go back to step 2.

Exercises: Euclidean Algorithm 15 Use the Euclidean Algorithm to find the following gcd s. Keep all of your work; we will use it for a different purpose later. gcd(90, 25) gcd(2499, 182) gcd(629, 518) gcd(4721, 1361) gcd(89, 55)

Theorem (2-2). If a and b are integers, not both zero, then gcd(a, b) exists and is unique. Note that this result is trivial if either a or b is zero. Also note that changing the sign of a or b or swapping a for b does not change the gcd. Without loss of generality, we may thus assume that 0 < b a. For existence, we need to show that the Euclidean Algorithm eventually produces a remainder of zero, at which point the algorithm terminates. This follows from the Division Lemma, noting that the remainder at any stage is always smaller than the divisor at that stage. Since the remainder at one stage becomes the divisor in the next stage, the sequence of remainders decreases by at least 1 at each step. Thus, we have 0 r i b i. So we get a remainder of zero after at most a steps (and usually, much fewer). 16

The equation ax + by = c 17 Choose nonzero integers a, b, c. above equation? Are there integers x, y that satisfy the Suppose such integers x and y do exist. Let d = gcd(a, b). Since x and y are integers, the left-hand side is divisible by d. So a necessary condition is that gcd(a, b) c. If this is not true, then we cannot find integers x, y that satisfy the equation. It turns out that this condition is also sufficient. The difficult step is using the Euclidean Algorithm to solve ax + by = d; the rest is very easy.

Here is most of our work from gcd(1517, 629) = 37. I ve rearranged each equation on the right to help with the upcoming process: 1517 = (629)(2) + 259 259 = 1517 2[629] 629 = (259)(2) + 111 111 = 629 2[259] 259 = (111)(2) + 37 37 = 259 2(111) Start with the last equation, substitute the value of 111 and simplify: 37 = 259 2(111) = 259 2(629 2[259]) = 5(259) 2(629). We can now use the same process to eliminate 259: 37 = 5(259) 2(629) = 5(1517 2[629]) 2(629) = 5(1517) 12(629). 18

The general case: ax + by = c 19 To find a solution, assuming c = m gcd(a, b): Find x, y such that ax + by = gcd(a, b). You can use the method based on the Euclidean Algorithm, although you might find a solution by lucky guess. Multiply both sides of the equation by m; rearrange to get a(xm) + b(xm) = c. Note: In each case, these methods produce only one solution. We ll see that if there is at least one solution, then there are infinitely many.