NUMBER THEORY. Prepared by Engr. JP Timola Reference: Discrete Math by Kenneth H. Rosen

Similar documents
Applications of Fermat s Little Theorem and Congruences

CHAPTER 5. Number Theory. 1. Integers and Division. Discussion

4.5 Finite Mathematical Systems

Discrete Mathematics, Chapter 4: Number Theory and Cryptography

Math 319 Problem Set #3 Solution 21 February 2002

8 Primes and Modular Arithmetic

Stupid Divisibility Tricks

JUST THE MATHS UNIT NUMBER 1.8. ALGEBRA 8 (Polynomials) A.J.Hobson

Number Theory. Proof. Suppose otherwise. Then there would be a finite number n of primes, which we may

Clock Arithmetic and Modular Systems Clock Arithmetic The introduction to Chapter 4 described a mathematical system

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

Copy in your notebook: Add an example of each term with the symbols used in algebra 2 if there are any.

U.C. Berkeley CS276: Cryptography Handout 0.1 Luca Trevisan January, Notes on Algebra

Section 4.2: The Division Algorithm and Greatest Common Divisors

V Quantitative Reasoning: Computers, Number Theory and Cryptography

SUM OF TWO SQUARES JAHNAVI BHASKAR

Lecture 6: Finite Fields (PART 3) PART 3: Polynomial Arithmetic. Theoretical Underpinnings of Modern Cryptography

26 Ideals and Quotient Rings

mod 10 = mod 10 = 49 mod 10 = 9.

Quotient Rings and Field Extensions

RSA and Primality Testing

Lectures on Number Theory. Lars-Åke Lindahl

= = 3 4, Now assume that P (k) is true for some fixed k 2. This means that

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

THE NUMBER OF REPRESENTATIONS OF n OF THE FORM n = x 2 2 y, x > 0, y 0

Maths delivers! A guide for teachers Years 11 and 12. RSA Encryption

Continued Fractions and the Euclidean Algorithm

Some facts about polynomials modulo m (Full proof of the Fingerprinting Theorem)

An Introductory Course in Elementary Number Theory. Wissam Raji

Computing exponents modulo a number: Repeated squaring

26 Integers: Multiplication, Division, and Order

Elementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University

Math 453: Elementary Number Theory Definitions and Theorems

Principles of Public Key Cryptography. Applications of Public Key Cryptography. Security in Public Key Algorithms

Groups in Cryptography

GREATEST COMMON DIVISOR

Number Theory Hungarian Style. Cameron Byerley s interpretation of Csaba Szabó s lectures

ABSTRACT ALGEBRA: A STUDY GUIDE FOR BEGINNERS

Properties of Real Numbers

Integer roots of quadratic and cubic polynomials with integer coefficients

Zero: If P is a polynomial and if c is a number such that P (c) = 0 then c is a zero of P.

Lecture 13 - Basic Number Theory.

A Second Course in Mathematics Concepts for Elementary Teachers: Theory, Problems, and Solutions

Chapter 4 -- Decimals

k, then n = p2α 1 1 pα k

z 0 and y even had the form

Course Syllabus. MATH 1350-Mathematics for Teachers I. Revision Date: 8/15/2016

Cryptography and Network Security Number Theory

Notes on Algebraic Structures. Peter J. Cameron

Kevin James. MTHSC 412 Section 2.4 Prime Factors and Greatest Comm

Lecture 8: Binary Multiplication & Division

The finite field with 2 elements The simplest finite field is

The Factor Theorem and a corollary of the Fundamental Theorem of Algebra

Overview of Number Theory Basics. Divisibility

Math Review. for the Quantitative Reasoning Measure of the GRE revised General Test


Breaking The Code. Ryan Lowe. Ryan Lowe is currently a Ball State senior with a double major in Computer Science and Mathematics and

CONTENTS 1. Peter Kahn. Spring 2007

Elementary Number Theory

Homework until Test #2

15 Prime and Composite Numbers

Unique Factorization

Useful Number Systems

On Generalized Fermat Numbers 3 2n +1

On the generation of elliptic curves with 16 rational torsion points by Pythagorean triples

Hill Ciphers and Modular Linear Algebra

Arkansas Tech University MATH 4033: Elementary Modern Algebra Dr. Marcel B. Finan

3 Some Integer Functions

SOLUTIONS FOR PROBLEM SET 2

4. FIRST STEPS IN THE THEORY 4.1. A

Recall the process used for adding decimal numbers. 1. Place the numbers to be added in vertical format, aligning the decimal points.

Determinants can be used to solve a linear system of equations using Cramer s Rule.

On the largest prime factor of x 2 1

Previously, you learned the names of the parts of a multiplication problem. 1. a. 6 2 = 12 6 and 2 are the. b. 12 is the

Handout NUMBER THEORY

8 Divisibility and prime numbers

Elements of Abstract Group Theory

r + s = i + j (q + t)n; 2 rs = ij (qj + ti)n + qtn.

Chapter 4. Polynomial and Rational Functions. 4.1 Polynomial Functions and Their Graphs

How To Know If A Domain Is Unique In An Octempo (Euclidean) Or Not (Ecl)

Linear Equations and Inequalities

Math Workshop October 2010 Fractions and Repeating Decimals

Chapter 4, Arithmetic in F [x] Polynomial arithmetic and the division algorithm.

Basic Algorithms In Computer Algebra

How do you compare numbers? On a number line, larger numbers are to the right and smaller numbers are to the left.

Factoring Algorithms

Application. Outline. 3-1 Polynomial Functions 3-2 Finding Rational Zeros of. Polynomial. 3-3 Approximating Real Zeros of.

NEW DIGITAL SIGNATURE PROTOCOL BASED ON ELLIPTIC CURVES

I. GROUPS: BASIC DEFINITIONS AND EXAMPLES

A Course on Number Theory. Peter J. Cameron

Factorization Algorithms for Polynomials over Finite Fields

Paramedic Program Pre-Admission Mathematics Test Study Guide

Revised Version of Chapter 23. We learned long ago how to solve linear congruences. ax c (mod m)

Introduction to Finite Fields (cont.)

On the number-theoretic functions ν(n) and Ω(n)

Chapter 8 Integers 8.1 Addition and Subtraction

Cryptography and Network Security Chapter 8

11 Ideals Revisiting Z

GENERATING SETS KEITH CONRAD

FACTORING SPARSE POLYNOMIALS

Transcription:

NUMBER THEORY Prepared by Engr. JP Timola Reference: Discrete Math by Kenneth H. Rosen

NUMBER THEORY Study of the set of integers and their properties

DIVISIBILITY Division When one integer is divided by a second nonzero integer, the quotient may or may not be an integer. For example, 12/3 = 4 is an integer, whereas 11/4 = 2.75 is not.

DIVISIBILITY Definition 1 If a and b are integers with a = 0, we say that a divides b if there is an integer c such that b = ac, or equivalently, if b/a is an integer. When a divides b we say that a is a factor or divisor of b, and that b is a multiple of a. The notation a b denotes that a divides b. We write a b when a does not divide b.

EXAMPLE Determine whether 3 7 and whether 3 12.

Theorem 1 DIVISIBILITY

The Division Algorithm When an integer is divided by a positive integer, there is a quotient and a remainder

The Division Algorithm THEOREM 2 THE DIVISION ALGORITHM Let a be an integer and d a positive integer. Then there are unique integers q and r, with 0 r < d, such that a = dq + r.

The Division Algorithm Definition 2 In the equality given in the division algorithm, d is called the divisor, a is called the dividend, q is called the quotient, and r is called the remainder. This notation is used to express the quotient and remainder: q = a div d, r = a mod d.

EXAMPLE 1 What are the quotient and remainder when 101 is divided by 11?

EXAMPLE 2 What are the quotient and remainder when 11 is divided by 3?

MODULAR ARITHMETIC Modular arithmetic operates with the remainders of integers when they are divided by a fixed positive integer, called the modulus

Modular Arithmetic DEFINITION 3 If a and b are integers and m is a positive integer, then a is congruent to b modulo m if m divides a b. We use the notation a b (mod m) to indicate that a is congruent to b modulo m.we say that a b (mod m) is a congruence and that m is its modulus (plural moduli). If a and b are not congruent modulo m, we write a b (mod m).

THEOREM 3 Let a and b be integers, and let m be a positive integer. Then a b (mod m) if and only if a mod m = b mod m.

EXAMPLE Determine whether 17 is congruent to 5 modulo 6 and whether 24 and 14 are congruent modulo 6

THEOREM 4 Let m be a positive integer. The integers a and b are congruent modulo m if and only if there is an integer k such that a = b + km. Example: 13 mod 5 43 mod 5 because 13 = 43 + (-6)(5)

THEOREM 4 EXAMPLES Is 13 and 67 congruent modulo 8? Is 37 and 64 congruent modulo 17? Is 123 and 51 congruent modulo 24?

THEOREM 5 Let m be a positive integer. If a b (mod m) and c d (mod m), then a + c b + d (mod m) and ac bd (mod m).

THEOREM 5 Example: 7 2 (mod 5) and 11 1(mod 5), it follows from Theorem 5 that 18 = 7 + 11 2 + 1 = 3 (mod 5)and that 77 = 7 11 2 1 = 2 (mod 5).

THEOREM 5 EXAMPLE 32 2 (mod 5) and 51 1(mod 5) 24 3 (mod 7) and 19 5(mod 7)

Arithmetic Modulo m We can define arithmetic operations on Zm, the set of nonnegative integers less than m, that is, the set {0, 1,..., m 1}. 1) Addition Modulo m 2) Multiplication Modulo m

Addition Modulo m In particular, we define addition of these integers, denoted by + m by a + m b = (a + b) mod m, where the addition on the right-hand side of this equation is the ordinary addition of integers,

Multiplication Modulo m and we define multiplication of these integers, denoted by m by a m b = (a b) mod m, where the multiplication on the righthand side of this equation is the ordinary multiplication of integers.

EXAMPLE Use the definition of addition and multiplication in Z m to find 7 + 11 9 and 7 11 9

HOMEWORK Give an example for each showing that arithmetic modulo m has the following properties: Closure Associativity Commutativity Identity elements Additive inverses Distributivity

SEATWORK 1. Does 17 divide each of these numbers? a) 68 b) 84 c) 357 d) 1001

SEATWORK 2. What are the quotient and remainder when a) 19 is divided by 7? b) 111 is divided by 11? c) 789 is divided by 23? e) 0 is divided by 19? f ) 3 is divided by 5? g) 1 is divided by 3?

SEATWORK 3. Suppose that a and b are integers, a 4 (mod 13), and b 9 (mod 13). Find the integer c with 0 c 12 such that a) c 9a (mod 13). b) c 11b (mod 13). c) c a + b (mod 13). d) c 2a + 3b (mod 13). e) c a 2 + b 2 (mod 13). f ) c a 3 b 3 (mod 13).

SEATWORK 4. Evaluate these quantities. a) 17 mod 2 b) 144 mod 7 c) 101 mod 13 d) 199 mod 19

SEATWORK 5. Find a div m and a mod m when a) a = 111, m = 99 b) a = 9999, m = 101 c) a = 10299, m = 999 d) a = 123456, m = 1001

SEATWORK 6. Find the integer a such that a) a 43 (mod 23) and 22 a 0. b) a 17 (mod 29) and 14 a 14. c) a 11 (mod 21) and 90 a 110.

SEATWORK 7. List five integers that are congruent to 4 modulo 12 8. Decide whether each of these integers is congruent to 3 modulo 7 a) 37 b) 66 c) 17 d) 67

SEATWORK 9. Find each of these values. a) (177 mod 31 + 270 mod 31) mod 31 b) (177 mod 31 270 mod 31) mod 31