NUMBER THEORY.

Slides:



Advertisements
Similar presentations
Maths for Programming Contests
Advertisements

Section 4.1: Primes, Factorization, and the Euclidean Algorithm Practice HW (not to hand in) From Barr Text p. 160 # 6, 7, 8, 11, 12, 13.
Thinking Mathematically
PRIME FACTORIZATION USING FACTOR TREES!.
5.1 Number Theory. The study of numbers and their properties. The numbers we use to count are called the Natural Numbers or Counting Numbers.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides.
Thinking Mathematically
1 Section 2.4 The Integers and Division. 2 Number Theory Branch of mathematics that includes (among other things): –divisibility –greatest common divisor.
22C:19 Discrete Structures Integers and Modular Arithmetic
Chapter Primes and Greatest Common Divisors ‒Primes ‒Greatest common divisors and least common multiples 1.
February 19, 2015Applied Discrete Mathematics Week 4: Number Theory 1 The Growth of Functions Question: If f(x) is O(x 2 ), is it also O(x 3 )? Yes. x.
NUMBER THEORY Chapter 1: The Integers. The Well-Ordering Property.
22C:19 Discrete Math Integers and Modular Arithmetic Fall 2010 Sukumar Ghosh.
Solving Equations = 4x – 5(6x – 10) -132 = 4x – 30x = -26x = -26x 7 = x.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Fall, 2002 Tuesday, 26 November Number-Theoretic Algorithms Chapter 31.
Mathematics of Cryptography Part I: Modular Arithmetic, Congruence,
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Fall, 2001 Lecture 7 Tuesday, 11/6/01 Number-Theoretic Algorithms Chapter.
Fall 2002CMSC Discrete Structures1 Let us get into… Number Theory.
BY MISS FARAH ADIBAH ADNAN IMK
A number that divides evenly into a larger number without a remainder Factor- Lesson 7 - Attachment A.
Mathematics of Cryptography Part I: Modular Arithmetic, Congruence,
Section 2.2: Affine Ciphers; More Modular Arithmetic Practice HW (not to hand in) From Barr Textbook p. 80 # 2a, 3e, 3f, 4, 5a, 7, 8 9, 10 (Use affinecipherbreaker.
Mathematics of Cryptography Modular Arithmetic, Congruence,
Copyright © 2012, 2009, 2005, 2002 Pearson Education, Inc. Chapter 2 Fractions.
Numbers MST101. Number Types 1.Counting Numbers (natural numbers) 2.Whole Numbers 3.Fractions – represented by a pair of whole numbers a/b where b ≠ 0.
Prep Math Competition, Lec. 1Peter Burkhardt1 Number Theory Lecture 1 Divisibility and Modular Arithmetic (Congruences)
5 Minute Check Find the prime factorization for each number
SECTION 5-1 Prime and Composite Numbers Slide
Copyright © Zeph Grunschlag, Basic Number Theory Zeph Grunschlag.
Least Common Multiple (LCM). Let’s Break It Down! Least  Smallest! Common  All numbers have it! Multiple  The product of a quantity! Definition:
Section 2.2: Affine Ciphers; More Modular Arithmetic Shift ciphers use an additive key. To increase security, we can add a multiplicative parameter. –For.
CSE 311: Foundations of Computing Fall 2014 Lecture 12: Primes, GCD.
22C:19 Discrete Structures Integers and Modular Arithmetic Fall 2014 Sukumar Ghosh.
Module #9 – Number Theory 1/5/ Algorithms, The Integers and Matrices.
Slide Copyright © 2009 Pearson Education, Inc. Unit 1 Number Theory MM-150 SURVEY OF MATHEMATICS – Jody Harris.
Factor A factor of an integer is any integer that divides the given integer with no remainder.
Fermat’s Little Theorem The RSA Cryptosystem will require exponentiation to decrypt messages. Exponentiation Notation Example 1: Compute Exponentials Example.
Introduction to Number Theory
CSE 311: Foundations of Computing Fall 2013 Lecture 12: Primes, GCD, modular inverse.
Discrete Mathematics
Lecture 2-3 Basic Number Theory and Algebra. In modern cryptographic systems, the messages are represented by numerical values prior to being encrypted.
Part II – Theory and Computations. Major Ideas....
Slide Copyright © 2009 Pearson Education, Inc. 5.1 Number Theory.
The Fundamentals: Algorithms, Integers, and Matrices CSC-2259 Discrete Structures Konstantin Busch - LSU1.
Ch04-Number Theory and Cryptography 1. Introduction to Number Theory Number theory is about integers and their properties. We will start with the basic.
CS480 Cryptography and Information Security
Number Theory: Prime and Composite Numbers
Number Theory Lecture 1 Text book: Discrete Mathematics and its Applications, 7 th Edition.
FACTOR Definition: A number that divides evenly into another number Clue: Factors of 6 are 1, 2, 3, 6.
Number Theory. Introduction to Number Theory Number theory is about integers and their properties. We will start with the basic principles of divisibility,
Chapter 5: Number Theory
Thinking Critically 4.1 Divisibility Of Natural Numbers
6*. An Introduction to Number Theory
MATH301- DISCRETE MATHEMATICS Copyright © Nahid Sultana Dr. Nahid Sultana Chapter 4: Number Theory and Cryptography.
Analytic Number Theory MTH 435
Applied Discrete Mathematics Week 3: Algorithms
Applied Discrete Mathematics Week 4: Number Theory
A number that divides evenly into a larger number without a remainder
Review Basic Math Divisibility tests Prime and Composite Numbers
Modular Arithmetic and Change of Base
Number Theory.
Number Theory.
Solving Equations with Variables on Both Sides
Copyright © Zeph Grunschlag,
Solving Equations with Variables on Both Sides
Bell Work Week 21 Pick a math word and write the definition. Chapter 6
Applied Discrete Mathematics Week 10: Introduction to Counting
Number Theory.
Lecture 2-3 Basic Number Theory and Algebra
Sets, Combinatorics, Probability, and Number Theory
Presentation transcript:

NUMBER THEORY

Prime Numbers Prime number: only divisible by 1 and itself. Fundamental Theorem of Arithmetic How many primes are there?

How to find primes from math import sqrt topnum = int(raw_input("Enter the highest number to check: ")) startnum = 3 print 2 print 3 while startnum < topnum: for a in range(3,int(sqrt(startnum+1)),2): if startnum % a ==0: break; else: print startnum startnum = startnum + 2

Divisibility p | q definition. Factoring a number… gcd lcm modular arithmetic Applications: Change Last digit Encryption Calendar computations

Congruences Modular equations. Solving congruences… Diophantine equations