Prime numbers are extremely important because they are the basis for many daily applications. In fact, thanks to the primes, we can today count on cryptosystems,

Slides:



Advertisements
Similar presentations
Copyright © Cengage Learning. All rights reserved.
Advertisements

RSA.
Copyright © Cengage Learning. All rights reserved.
Prime Numbers By Brian Stonelake.
CONTENTS Life of Pierre de Fermat Beginning of Life School Life Work Life Death.
Ch. 10: What is a number?. MAIN DEFINITION OF THE COURSE: A symmetry of an object (in the plane or space) means a rigid motion (of the plane or space)
Chapter 5 Number Theory © 2008 Pearson Addison-Wesley. All rights reserved.
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.
Factoring Polynomials
22C:19 Discrete Structures Integers and Modular Arithmetic
22C:19 Discrete Math Integers and Modular Arithmetic Fall 2010 Sukumar Ghosh.
Basic properties of the integers
More Number Theory Proofs Rosen 1.5, 3.1. Prove or Disprove If m and n are even integers, then mn is divisible by 4. The sum of two odd integers is odd.
CSE115/ENGR160 Discrete Mathematics 02/07/12
The Algebra of Encryption CS 6910 Semester Research and Project University of Colorado at Colorado Springs By Cliff McCullough 20 July 2011.
Cryptography Lecture 11: Oct 12. Cryptography AliceBob Cryptography is the study of methods for sending and receiving secret messages. adversary Goal:
Public Key Algorithms 4/17/2017 M. Chatterjee.
Math 409/409G History of Mathematics Pythagorean Triples.
Fermat’s Last Theorem By: Andy Smith. Fermat’s Professional life Lived Law school Councilor at the parliament of the French city of Toulouse.
Fermat’s Last Theorem Samina Saleem Math5400. Introduction The Problem The seventeenth century mathematician Pierre de Fermat created the Last Theorem.
ELEMENTARY NUMBER THEORY AND METHODS OF PROOF
prime numbers: facts and discoveries
Copyright © Cengage Learning. All rights reserved. CHAPTER 11 ANALYSIS OF ALGORITHM EFFICIENCY ANALYSIS OF ALGORITHM EFFICIENCY.
Number Theory Number Theory: A reflection of the basic mathematical endeavor. Exploration Of Patterns: Number theory abounds with patterns and requires.
Chapter 3 Greek Number Theory The Role of Number Theory Polygonal, Prime and Perfect Numbers The Euclidean Algorithm Pell’s Equation The Chord and Tangent.
Section 5.1 Number Theory.

The Fundamentals: Algorithms, Integers, and Matrices CSC-2259 Discrete Structures Konstantin Busch - LSU1.
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.
MATH 224 – Discrete Mathematics
Systems of Linear Equation and Matrices
Section 4.3: Fermat’s Little Theorem Practice HW (not to hand in) From Barr Text p. 284 # 1, 2.
RSA and its Mathematics Behind
The importance of sequences and infinite series in calculus stems from Newton’s idea of representing functions as sums of infinite series.  For instance,
Shaping Modern Mathematics: The Queen of Mathematics Raymond Flood Gresham Professor of Geometry.
Cryptography Dec 29. This Lecture In this last lecture for number theory, we will see probably the most important application of number theory in computer.
Section 1.8. Section Summary Proof by Cases Existence Proofs Constructive Nonconstructive Disproof by Counterexample Nonexistence Proofs Uniqueness Proofs.
Section 2.1: Shift Ciphers and Modular Arithmetic Practice HW from Barr Textbook (not to hand in) p.66 # 1, 2, 3-6, 9-12, 13, 15.
Chapter 11 The Number Theory Revival
Chapter 7 Advance Counting Techniques. Content Recurrence relations Generating function The principle of inclusion-exclusion.
Section 4.4: The RSA Cryptosystem Practice HW Handwritten and Maple Exercises p at end of class notes.
RSA and its Mathematics Behind July Topics  Modular Arithmetic  Greatest Common Divisor  Euler’s Identity  RSA algorithm  Security in RSA.
22C:19 Discrete Structures Integers and Modular Arithmetic Fall 2014 Sukumar Ghosh.
Scott CH Huang COM 5336 Cryptography Lecture 6 Public Key Cryptography & RSA Scott CH Huang COM 5336 Cryptography Lecture 6.
P RIME N UMBERS. W HAT IS A P RIME N UMBER ? In mathematics, a prime number (or a prime) is a natural number which has exactly two distinct natural number.
What use are prime numbers? ?. o All the primes, apart from 2, are odd numbers. o 1 is not a prime number. Why? o There are infinitely many prime numbers!
12 INFINITE SEQUENCES AND SERIES. In general, it is difficult to find the exact sum of a series.  We were able to accomplish this for geometric series.
Week 4 - Wednesday.  What did we talk about last time?  Finished DES  AES.
MATHEMATICAL INNOVATIONS Balakumar R “While pursuing a single problem through the centuries “
9.1 Primes and Related Congruence Equations 23 Sep 2013.
Mathematical Proof A domino and chessboard problem.
Section 1.8. Proof by Cases Example: Let b = max{a, b} = a if a ≥ b, otherwise b = max{a, b} = b. Show that for all real numbers a, b, c
The Fundamentals: Algorithms, Integers, and Matrices CSC-2259 Discrete Structures Konstantin Busch - LSU1.
Chapter 4 With Question/Answer Animations 1. Chapter Summary Divisibility and Modular Arithmetic - Sec 4.1 – Lecture 16 Integer Representations and Algorithms.
Dr. Saatchi, Seyed Mohsen 1 Arab Open University - AOU T209 Information and Communication Technologies: People and Interactions Sixth Session.
Pretty Numbers Moloy De !. 6 6 is the smallest perfect number 1, 2 and 3 are the only proper positive divisors of 6 and = 6 6, 28, 496, and.
Chapter 3 The Fundamentals: Algorithms, the integers, and matrices Section 3.4: The integers and division Number theory: the part of mathematics involving.
A Prime Example CS Lecture 20 A positive integer p  2 is prime if the only positive integers that divide p are 1 and p itself. Positive integers.
INFINITE SEQUENCES AND SERIES In general, it is difficult to find the exact sum of a series.  We were able to accomplish this for geometric series and.
SECTION 8.3 THE INTEGRAL AND COMPARISON TESTS. P2P28.3 INFINITE SEQUENCES AND SERIES  In general, it is difficult to find the exact sum of a series.
Section 5.1 Number Theory.
Public Key Encryption Major topics The RSA scheme was devised in 1978
Chapter 4 (Part 1): Induction & Recursion
The Number Theory Revival
Number Theory (Chapter 7)
Section 5.1 Number Theory.
Trigonometric Identities
Section 5.1 Number Theory.
CS 220: Discrete Structures and their Applications
Presentation transcript:

Prime numbers are extremely important because they are the basis for many daily applications. In fact, thanks to the primes, we can today count on cryptosystems, that allow us to have home banking service, or online shopping (among other things). Prime numbers have been studied for thousands of years and still remain one of the “mysteries” of mathematics …

Although Euclid contributed to study of prime numbers – he came to the conclusion that they are infinite in number – and Fermat and Mersenne discovered that numbers that can be written under a certain form are primes​​, there are still a multitude of these numbers that are not known and on which research is still being done.

Pierre De Fermat was a lawyer by profession and an amateur mathematician. He rarely published his mathematical discoveries. He was one the inventors of analytic geometry and came up with some of the fundamental ideas of calculus.

He is probably most famous for a problem that went unsolved until 1994; that the equation x n + y n = z n has no non-trivial solution when n>2. One of Fermat’s books contained a handwritten note in the margin declaring that he had a proof for this equation, but it would not fit in the margin. He never published his proof, nor was it found after his death. In 1994 Andrew Wiles worked out a proof of this equation using advanced modern techniques.

In mathematics, a Fermat number, named after Pierre de Fermat who first studied them, is a positive integer of the form where n is a non-negative integer.

Examples…. When n = 0; therefore F = = = 3 When n = 1; therefore F 1 = = = 5 When n = 2; therefore F 2 = = = 17 When n = 3; therefore F 3 = = = 257 When n = 4; therefore F 4 = = = 65537

LESS COMMON The less common is a number of the form obtained by setting in a Fermat polynomial, the first few of which are 3, 5, 9, 17, 33,... These are given by the binomial number of the form The first few for, 1, 2,... are 3, 5, 17, 257, 65537, ,... SPECIAL CASE

Fermat first conjectured that all the numbers in the form, are primes. However, in 1732, Leonhard Euler refuted this claim by showing that F5 = 2^32+ 1 = 4,294,967,297 = 641 x 6,700,417 is a composite. Primes in this form are called Fermat primes. Up-to-date there are only five known Fermat primes.

A Fermat number Fn=2^2^n+ 1 (for n ≥ 1) can be thought of as a square whose side length is 2^2^(n-1 ) plus a unit square (see figure 1 ). Figure 1. F2 = = 17

Hence, determining whether a (Fermat) number is a composite or not is equivalent to determining whether we can rearrange the unit-square blocks to form a rectangle (see figure2). Moreover, determining whether an integer d divides a (Fermat) number is the same as deciding whether we can reorganize the blocks to form a rectangle with base d. Figure2. F2 = 17 is not a composite because no matter how you rearrange the blocks, you cannot get a rectangle. Figure3. F2 = 17 is not divisible by 3.

The below table only shows the factoring status of Fermat numbers up to n = 100. Prime Composite with no known factors Composite with complete factorization Composite with incomplete factorization Unknown

Total number of Fn primes known 5 Largest Fn prime known F4 = Total number of Fn composites known 243 Largest ten Fn composites known F476624, F495728, F567233, F585042, F617813, F67205, F960897, F , F , F

The Fermat numbers form a sequence in the form F n = 2 2n + 1, n = 0, 1, 2,... Clearly all the Fermat numbers are odd. Moreover, as we'll see shortly, any two are mutually prime. In other words, each has a prime factor not shared by any other. Hence, the number of primes cannot be finite.

All Fermat’s number are odd due to the addition of one to an even number. No Fermat number can be expressed as the sum of two primes, with the exception of F 1 = No Fermat prime can be expressed as the difference of two pth powers, where p is an odd prime. With the exception of F 0 and F 1, the last digit of a Fermat number is 7. The sum of the reciprocals of all the Fermat numbers is irrational.

Generation of pseudo-random numbers. But what are pseudo random numbers???? Well, these are computer-generated random number. The prefix pseudo- is used to distinguish this type of number from a "truly" random number generated by a random physical process such as radioactive decay. These numbers appear to be random, but are not truly so. They represent a statistical randomness.

How do we use Fermat’s prime to generate Pseudorandom Number Generation Fermat primes are particularly useful in generating pseudo-random sequences of numbers in the range 1 … N, where N is a power of 2.

Euler Totient Function: (n) (n) = how many numbers there are between 1 and n-1 that are relatively prime to n. (4) = 2 (1, 3 are relatively prime to 4) (5) = 4 (1, 2, 3, 4 are relatively prime to 5) (6) = 2 (1, 5 are relatively prime to 6) (7) = 6 (1, 2, 3, 4, 5, 6 are relatively prime to 7)

As we can observe from (5) and (7), (n) will be n-1 whenever n is a prime number. This implies that (n) will be easy to calculate when n has exactly two different prime factors: (P * Q) = (P-1)*(Q-1), if P and Q are prime.

Let’s test the theorem: If a = 5 and p = 6 Then (6) = (2-1) * (3-1) = 2 So, 5 (6) = 25 and 25 = 24+1 = 6*4+1 => 25 = 1(mod 6) OR 25 % 6 = 1 It also follows that a (p)+1 a(mod p) so that p does not necessarily need to be relatively prime to a.

Euler’s theorem uses modulus arithmetic which helps to lay the foundation for RSA encryption. To construct a personal cipher key we need an appropriate value, we will call it variable R. So, we select two very large prime numbers U and V and multiply them. => (R) = (U-1)*(V-1). This makes R difficult to factor, since the fewer factors a number has, the longer it takes to find them.

We also define the variables P and Q. P is an arbitrary number that is relatively prime to (R). Q is the calculated inverse of P in (mod (R)). We use P and R to create a public key, and Q and R to create a private key. This yields P*Q 1(mod (R) ). The result is that too much information is lost in the encryption due to the modulus arithmetic to decipher a privately encrypted RSA message without the use of the public key. Unless the would- be decipherer had enough time and processing power to attempt a brute-force factorization. But, the larger the primes, the longer it takes to factor their product.

Marin Mersenne, Marin Mersennus or le Père Mersenne (8 September 1588 – 1 September 1648) was a French theologian, philosopher, mathematician and music theorist, often referred to as the "father of acoustics”. Mersenne was "the center of the world of science and mathematics during the first half of the 1600s.””

A Mersenne (also spelled Marsenne) prime is a specific type of prime number. It must be reducible to the form 2 n - 1, where n is a prime number. The first few known values of n that produce Mersenne primes are where n = 2, 3, 5, 7, 13, 17, 19, 31, 61, and 89.

In August 2008, Edson Smith, a system administrator, found the largest prime number known till date. The number (which is a Mersenne prime) is 12,978,189 digits long. It would take nearly two-and-a-half months to write out and, if printed, would stretch out for 30 miles.

In the last January, a new prime number was discovered, 257,885,161-1, bringing a new enthusiasm to mathematicians because of the potential importance of the discovery. The mystery surrounding prime numbers is that we do not know a single pattern to describe them all, a property that makes them so precious and useful!

The above picture is a matrix of 64 rows and 64 columns of altogether 4096 black or white squares. The squares are numbered (in row major order) from 0 to The n-th square is black if the number 2n + 1 is prime. For example, the black square in the right upper corner represents the prime 127, and the black square in the right lower corner represents the prime You can observe, besides many twin primes, the two kinds of triple primes (patterns xx_x resp. x_xx ) and some quadruple primes (pattern xx_xx ). Prime numbers < 8192

RITIKA KUMARI SHUBHANGI AGARWAL RAHUL CHAUBEY HIMANSHU YADAV GROUP 6