# TEXAS A&M UNIVERSITY. Prime Factorization. A History and Discussion. Jason R. Prince. April 4, 2011

Save this PDF as:

Size: px
Start display at page:

Download "TEXAS A&M UNIVERSITY. Prime Factorization. A History and Discussion. Jason R. Prince. April 4, 2011"

## Transcription

1 TEXAS A&M UNIVERSITY Prime Factorization A History and Discussion Jason R. Prince April 4, 2011

2 Introduction In this paper we will discuss prime factorization, in particular we will look at some of the basic concepts involving prime factorization as well as proving one of the most important theorems in mathematics, The Fundamental Theorem of Arithmetic. Then we will look at some methods for factoring numbers into their prime factorizations. These topics are going to help show the fact that in general finding the prime factorization of a number is not necessarily an easy task. We can use Fermat s method if the number can be written as the difference of two perfect squares, and we can use Euler s method if the number can be written as the sum of two perfect squares in multiple different ways. Unfortunately though these methods will only work for these specific types of numbers. If we have any other type of number we may have a very difficult time factoring it. Background Before I can write a paper about prime factorization, I should probably define a few terms. First let us define divides, divisor, and multiple by saying that a divides b, written a b, if is an integer. Here a is a divisor of b, and b is a multiple of a. We use these terms to help us in defining the terms prime and composite by saying that an integer, p is prime if its only divisors are ±1 and ± p, and p 1. Similarly, we say any integer with more than these four divisors is called composite. Also the notion of two integers, m and n being relatively prime means that the only divisors that m and n both share are ±1. This can also be stated by using the greatest common divisor, which is the largest number that divides both m and n, by saying that the greatest common divisor is 1, written as (m, n) = 1. Page 1

3 We can take a look at a table of some of the prime numbers thanks to an algorithm created in the second century BC by a man named Eratosthenes. This algorithm is called the sieve of Eratosthenes, and is constructed by writing down all the integers from 1 to n, where n is the largest integer you want included in the table of primes. Then you start with 2, since by definition 1 is neither prime nor composite, and you cross out every integer that is a multiple of 2. Once you reach the end of the table, you return to the beginning and start with the first integer greater than 2 that is not crossed out. This integer happens to be 3, now go through the table and cross out every integer that is a multiple of 3, then return to the beginning and start at the first integer greater than 3 that is not crossed out; namely 5, and cross out any integers that are not crossed out, and are multiples of 5. Then just continue this process on until you reach the greatest integer less than or equal to n, because if a number n is composite, then it will have a divisor less than or equal to n. I will prove this a little bit later in this paper. Below is the sieve of Eratosthenes for n = 100. All primes less than 100 will be boxed in, and all composites will be crossed out with a slash. Sieve of Eratosthenes for n = Page 2

4 So now we have looked at a list of primes between 1 and 100, next it will be beneficial to examine some of the simpler special properties involved with prime numbers. We begin with a set of Lemmas that we will use to prove The Fundamental Theorem of Arithmetic. Lemma 1: A prime p is either relatively prime to an integer n or p n. Proof: Since p is prime then by definition, the only factors of p are ±1 or ± p. Thus, (p, n) = 1, or (p, n) = p. If (p, n) = 1 then they are relatively prime, and if (p, n) = p then p p and p n. So if p is prime then p is either relatively prime n or p n. QED Lemma 2: A prime p divides a product ab only when p a or p b. Proof: Let p ab then if p a then (p, a) = 1 which implies that there is some linear combination of p and a that equals 1 px + ay = 1 for some integers x and y. If we multiply both sides by b we get pbx + aby = b, but we know since p ab then there exist some c such that ab = pc. Substituting this in we get pbx + pcy = p(bx + cy) = b which implies that b is a multiple of p and thus p b. So if p ab, then either p a or p b. QED Note that this argument can be extended to encompass a product of more than just two factors. So if p is prime and p a a a then p a for some i. Lemma 3: If n is the product of prime factors, and if p prime and we have p n, then p is one of the prime factors of n. Proof: Let n = q q q be a product of prime numbers and p n then by Lemma 2 we know that p q for one of the q s. So if p q and both are prime then p = q. QED Page 3

5 Lemma 4: Every number n > 1 can be written as a product of prime divisors. Proof (By Strong Induction): Basis Step: If n = 2 then it can be written as a product of a single prime, itself. Inductive Step: Suppose that every integer n = 2,3,, k can be written as a product of primes. Then consider the integer k + 1, if it is prime, then we are done, if it is composite then we have k + 1 = ab where 1 < a k and 1 < b k so a and b can be written as the product of primes, so a = p p p and b = q q q which means that k + 1 = ab = (p p p )(q q q ) so k + 1 can be written as a product of primes Thus by Strong Induction we have shown that for any n > 1, n can be written as a product of primes. QED (Eynden, 2006) Now after looking at some of the simpler properties of prime numbers, we are ready to look at the most important theorem about prime factorization, The Fundamental Theorem of Arithmetic. Fundamental Theorem of Arithmetic: Every integer n > 1 can be factored into primes, and moreover this factorization is unique up to the order of the factors. Proof: Lemma 4 shows us that every n > 1 can be factored into primes, all that is left it to show the uniqueness of this factorization. Let us suppose that there exist two factorizations for n = p p p = q q q. Since each p divides n = q q q, then by Lemma 3 we know that each p = q for some j. Conversely we see that each q is equal to some p as well. This shows that each factorization of n contains the same prime numbers, the only difference may be if one prime occurs more times in one factorization than in the other. If this is the case however, Page 4

6 and a occurs more times in the p factorization than in the q factorization, we can simply cancel a repeatedly until we have one or more a s on the p side, and none left on the q side. This would contradict Lemma 3, and thus each prime appears the same number of times in each factorization. Therefore we have shown that every integer n > 1 has a unique prime factorization. This idea of unique prime factorization, as well as the four lemmas that we used to prove this theorem can be found in Euclid s Elements in books VII and IX. (Ore, 1948) Determining Prime Factorization Trial and Error The actual determination of the prime factorization of a number is a problem that has many important applications in the field of Number Theory, unfortunately it is not an easy problem to solve, and for numbers that are very large, it can be so overwhelming that it seems impossible. The most common strategy for factoring involves checking all the prime numbers starting with the smallest, and working to the larger ones. The only reprieve is that we do not have to check every single prime number less than the number we are trying to factor. We only need to check up to the largest prime number less than or equal to the square root of our number. This is because if a number is composite, it will have a factor less than or equal to its square root. To prove this look at n = ab if both a > n and b > n then ab > n n = n so ab > n. Therefore either a < n or b < n, (Note it cannot be both since then ab < n). So if n is composite then it has a factor less than or equal to n. Page 5

7 To continue our strategy, once we find a prime number, p, that divides our number we are trying to factor, n, then we have n = p m, then we find the first prime factor of m in the same fashion that we found p, and continue on until m is itself a prime number, then we have the complete prime factorization of n = p p p m. Another useful observation is that when the smallest prime, p, is divided out of n, if p > n then the other factor is automatically prime. To prove this we look at n = pm, if m is not prime then m = ab and since p was the smallest prime that divides n we have n = pab with a > p > n and b > p > n. This implies that n = pab > n n n = n which is obviously a contradiction, so m must be prime. We can use trial and error to find the prime factorization of a number if the factors are relatively small, but if the prime factors are large numbers then trial and error can be very tedious and inefficient. So we have other methods we can use that will be discussed in the next few subsections. Factor Tables Until the recent advent of computers, factor tables were the most common way to determine the factorization of numbers that are not too large. There are many different styles of factor tables ranging from the very detailed which contains the complete factorization of every number on the table; to much less detailed ones that contain only the smallest factor of each number, and do not include any number divisible by a single digit prime. The first sizable factor table was published in 1659 by Rahn (or Rohnius) in an appendix to an algebra book. It contained the numbers up to 24,000 excluding those divisible by 2 and 5. A few years later in 1668, a Englishman named Bracker translated this Page 6

8 work where the tables were extended to 100,000 by John Pell. These tables were the only ones available for a very long time. However, during the eighteenth century there was considerable interest in the field of Number Theory, and as such there became a higher demand for tables with larger values. Only one such table was ever published however. In 1776 Felkel published his table that extended out to 408,000, which was only a small portion of a more ambitious project spanning several million, most of which was ready as a manuscript. The table was published by the Austrian government, but there were very few people who purchased copies. As a result the Austrian government confiscated all but a handful of copies and used them to pack cartridges in a war against the Turks. (Ore, 1948) The size of the factor tables was substantially increased during the 1800 s. All numbers up to 10,000,000 were covered by the combined efforts of Chernac, Burckhardt, Crelle, Glaisher, and Dase. They had them published in ten volumes that each contained a separate million. The most notable achievement however was tabulated by J. P. Kulik, a professor at the University of Prague which gives the factorization of every number up to 100,000,000. This manuscript was never published, however it was placed in the library at the Vienna Academy. (Ore, 1948) Although using factorization tables was considered to be the easiest way to factor relatively small numbers, the question arises of how do we try to factor large numbers that are beyond the realm of factor tables? A couple possible answers come to us from the great minds of Pierre de Fermat, and Leonhard Euler. Page 7

9 Fermat s Method of Factorization Pierre de Fermat was a French Mathematician and Lawyer. He lived from 1601 to 1665 in the city of Toulouse. He is routinely noted as the first person to think of number theory as a systematic science. Fermat enjoyed literary studies and also wrote poetry, however his true love was most certainly mathematics. His achievements and areas of significant advancement in mathematics alone are far too numerous to list here, however his real passion in mathematics was most certainly number theory. He gained great pleasure in proposing new and difficult problems, as well as giving solutions that require extremely elaborate and difficult computations. In this paper, we are particularly interested in his method of factorization. This method of factorization is based upon the fact that if a number can be written as the difference of two squares, then it factors quite nicely. In particular we have: n = x y = (x + y)(x y) So since we have a composite n, then we can say that n = ab with b a, so setting a = x y and b = x + y. By solving for x and y we get x = and y =. Now because of the fact that we are dealing with factoring, we can assume that before we tried to factor n, we first factored out the highest power of 2 possible, thus leaving n to be odd. Therefore we know that both a and b are also both odd, which means that x and y are both integers. To determine the possible values of x and y we see that x = n + y x n x n Page 8

10 So the procedure begins by looking at x values that are successively larger than n, and the difference between the square of x and n to see if it is a perfect square. In other words: x = x n and does this equal y? This calculation can seem like it could get pretty tedious, especially if x gets extremely large. However, thankfully there is a short cut to calculating x, and it stems from the equation: (x + 1) n = x + 2x + 1 n = x n + 2x + 1 So we get (x + 1) = x + 2x + 1 And by repeatedly applying this rule we get (x + 2) = (x + 1) + 2x + 3 (x + 3) = (x + 2) + 2x + 5 and so on This lets us compute each successive x by simple addition. So let us take a look at Fermat s method implemented on the number 2,027,651,281, which is a number to which Fermat himself applied his method of factorization. The first integer greater than n is 45,030, and the calculations are as follows: x = 45,030 x = 49,619 2x + 1 = 90, (x + 1) = 139,680 2x + 3 = 90, (x + 2) = 229,743 2x + 5 = 90, (x + 3) = 319,808 2x + 7 = 90, (x + 4) = 409,875 2x + 9 = 90, (x + 5) = 499,944 2x + 11 = 90,071 Page 9

11 45036 (x + 6) = 590,015 2x + 13 = 90, (x + 7) = 680,088 2x + 15 = 90, (x + 8) = 770,163 2x + 17 = 90, (x + 9) = 860,240 2x + 19 = 90, (x + 10) = 950,319 2x + 21 = 90, (x + 11) = 1,040,400 = 1,020 = y This shows that n = (45, ,020)(45,041 1,020) = 46,061 44,021 It is important to note that Fermat s method of factorization is particularly useful when the difference between the factors is relatively small. This way the desired y will quickly be found, as is apparent in his choice of example discussed above. Euler s Factorization Method: Leonhard Euler was an amazing scientist, whose contributions are evident on nearly every branch of mathematics. The sheer volume of work that he did in his lifetime is unreal; it has been said that his entire collected works would fill the pages of over 100 large books. Born in Switzerland in 1707, he held positions at the Academy of St. Petersburg as well as the Academy of Berlin. He first mentions factorization of a number using the representation of the sum of two squares in a letter on February 16, 1745 to Christian Goldbach, a German mathematician. This is what we are interested in here. Euler s factorization method only applies to numbers, which can be represented in at least two different ways as the sum of two perfect squares, so n = a + b. We begin just as we did in Fermat s method, we will assume that n is of odd parity, so one of the numbers Page 10

12 is odd and the other is even. So without loss of generality we can say that a is odd, and b is even. The next step in Euler s factorization is to look at the second way to represent n as the sum of two squares, so n = c + d. Where again we have c is odd, and d is even. For example if n = 221 then we have n = = To show that the two representations of n = a + b = c + d leads us to a factorization of n, we look at a + b = c + d a c = d b (a c)(a + c) = (d b)(d + b) Now let k = gcd(a c, d b) noting that k is even since a c and d b are both even. So we have a c = kl and d b = km with gcd(l, m) = 1. Substituting these in we get kl(a + c) = km(d + b) l(a + c) = m(d + b) so since l and m are relatively prime then m must divide a + c, which gives a + c = mr lmr = m(d + b) lr = (d + b). So we have a + c = mr and d + b = lr but (l, m) = 1 so this means that r = gcd(a + c, d + b), and thus is also even. So the factorization that we are looking for is: n = k 2 + r 2 (m + l ) To prove this factorization is valid we simply multiply out the right hand side of the equation to get: (k m + k l + r m + r l ) = [(km) + (kl) + (rm) + (rl) ] and now substituting all the values from above we arrive at Page 11

13 1 4 [(d b) + (a c) + (a + c) + (d + b) ] = 1 4 [d 2db + b + a 2ac + c + a + 2ac + c + d + 2db + b ] = 1 4 [2d + 2b + 2a + 2c ] = 1 4 [2(a + b ) + 2(c + d )] = 1 [2n + 2n] = n 4 So we see that this factorization is in fact a valid one. Now let us do an example by factoring the number n = It is apparent that 2501 = , and after some minor calculations we can see that 2501 = as well. So we can let a = 1, b = 50, c = 49 and d = 10. Then a c = 48, a + c = 50, d b = 40, and d + b = 60, so this leads to k = 8, l = 6, m = 5, and r = 10. Which in turn tells us that the factorization of 2501= + (5 + 6 ) = (4 + 5 )(5 + 6 ) = Conclusion In this paper we looked at some of the ancient methods of factoring, and showed that we can factor some numbers if they have a special form. However if I have a number that I need to factor that is not in one of those special forms, then the only method that we discussed was to use a factor table. So again we still have the question of how do we factor numbers that are larger than the factor tables we have access to. In the next paper on prime factorization I will attempt to discuss some of the more modern methods of prime factorization, and will also include some of the current applications of prime factorizations like RSA public key cryptography. I also intend on looking at some of the ways that prime numbers are generated today. Page 12

14 Bibliography Derbyshire, J. (2004). Prime Obsession: Bernhard Riemann and the Greates Unsolved Problem in Mathematics. New York: Penguin Group. Eynden, C. V. (2006). Elementary Number Theory. Long Grove: Waveland Press,Inc. Goldstein, C. (1992). On a Seventeenth Century Version of the Fundamental Theorem of Arithmetic". Historia Mathematica, Kaempffert, W. (1933, March 12). The Week in Science: A New Calculator. The New York Times, p. 4. Ore, O. (1948). Number Theory and Its History. New York: McGraw-Hill Book Company. Page, R. L. (2004). Number Theory, Elementary. In Encyclopedia of Physical Science and Technology (pp ). Elsevier Science Ltd. Stein, W. (2008). Elementary Number Theory: Primes, Congruences, and Secrets. Springer-Verlag. Weisstein, E. W. (n.d.). Sieve of Eratosthenes. Retrieved 3 23, 2011, from MathWorld--A Wolfram Web Resource: Page 13

### Homework until Test #2

MATH31: Number Theory Homework until Test # Philipp BRAUN Section 3.1 page 43, 1. It has been conjectured that there are infinitely many primes of the form n. Exhibit five such primes. Solution. Five such

### The Prime Numbers. Definition. A prime number is a positive integer with exactly two positive divisors.

The Prime Numbers Before starting our study of primes, we record the following important lemma. Recall that integers a, b are said to be relatively prime if gcd(a, b) = 1. Lemma (Euclid s Lemma). If gcd(a,

### Elementary Number Theory We begin with a bit of elementary number theory, which is concerned

CONSTRUCTION OF THE FINITE FIELDS Z p S. R. DOTY Elementary Number Theory We begin with a bit of elementary number theory, which is concerned solely with questions about the set of integers Z = {0, ±1,

### 15 Prime and Composite Numbers

15 Prime and Composite Numbers Divides, Divisors, Factors, Multiples In section 13, we considered the division algorithm: If a and b are whole numbers with b 0 then there exist unique numbers q and r such

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

CHAPTER 5 Number Theory 1. Integers and Division 1.1. Divisibility. Definition 1.1.1. Given two integers a and b we say a divides b if there is an integer c such that b = ac. If a divides b, we write a

### ALGEBRAIC APPROACH TO COMPOSITE INTEGER FACTORIZATION

ALGEBRAIC APPROACH TO COMPOSITE INTEGER FACTORIZATION Aldrin W. Wanambisi 1* School of Pure and Applied Science, Mount Kenya University, P.O box 553-50100, Kakamega, Kenya. Shem Aywa 2 Department of Mathematics,

### 3. Applications of Number Theory

3. APPLICATIONS OF NUMBER THEORY 163 3. Applications of Number Theory 3.1. Representation of Integers. Theorem 3.1.1. Given an integer b > 1, every positive integer n can be expresses uniquely as n = a

### CS 103X: Discrete Structures Homework Assignment 3 Solutions

CS 103X: Discrete Structures Homework Assignment 3 s Exercise 1 (20 points). On well-ordering and induction: (a) Prove the induction principle from the well-ordering principle. (b) Prove the well-ordering

### 12 Greatest Common Divisors. The Euclidean Algorithm

Arkansas Tech University MATH 4033: Elementary Modern Algebra Dr. Marcel B. Finan 12 Greatest Common Divisors. The Euclidean Algorithm As mentioned at the end of the previous section, we would like to

### Homework 5 Solutions

Homework 5 Solutions 4.2: 2: a. 321 = 256 + 64 + 1 = (01000001) 2 b. 1023 = 512 + 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = (1111111111) 2. Note that this is 1 less than the next power of 2, 1024, which

### Applications of Fermat s Little Theorem and Congruences

Applications of Fermat s Little Theorem and Congruences Definition: Let m be a positive integer. Then integers a and b are congruent modulo m, denoted by a b mod m, if m (a b). Example: 3 1 mod 2, 6 4

### Today s Topics. Primes & Greatest Common Divisors

Today s Topics Primes & Greatest Common Divisors Prime representations Important theorems about primality Greatest Common Divisors Least Common Multiples Euclid s algorithm Once and for all, what are prime

### SYSTEMS OF PYTHAGOREAN TRIPLES. Acknowledgements. I would like to thank Professor Laura Schueller for advising and guiding me

SYSTEMS OF PYTHAGOREAN TRIPLES CHRISTOPHER TOBIN-CAMPBELL Abstract. This paper explores systems of Pythagorean triples. It describes the generating formulas for primitive Pythagorean triples, determines

### GREATEST COMMON DIVISOR

DEFINITION: GREATEST COMMON DIVISOR The greatest common divisor (gcd) of a and b, denoted by (a, b), is the largest common divisor of integers a and b. THEOREM: If a and b are nonzero integers, then their

### Discrete Mathematics Lecture 3 Elementary Number Theory and Methods of Proof. Harper Langston New York University

Discrete Mathematics Lecture 3 Elementary Number Theory and Methods of Proof Harper Langston New York University Proof and Counterexample Discovery and proof Even and odd numbers number n from Z is called

### Integer roots of quadratic and cubic polynomials with integer coefficients

Integer roots of quadratic and cubic polynomials with integer coefficients Konstantine Zelator Mathematics, Computer Science and Statistics 212 Ben Franklin Hall Bloomsburg University 400 East Second Street

### Factoring Algorithms

Factoring Algorithms The p 1 Method and Quadratic Sieve November 17, 2008 () Factoring Algorithms November 17, 2008 1 / 12 Fermat s factoring method Fermat made the observation that if n has two factors

### Notes on Factoring. MA 206 Kurt Bryan

The General Approach Notes on Factoring MA 26 Kurt Bryan Suppose I hand you n, a 2 digit integer and tell you that n is composite, with smallest prime factor around 5 digits. Finding a nontrivial factor

### Chapter 11 Number Theory

Chapter 11 Number Theory Number theory is one of the oldest branches of mathematics. For many years people who studied number theory delighted in its pure nature because there were few practical applications

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

U.C. Berkeley CS276: Cryptography Handout 0.1 Luca Trevisan January, 2009 Notes on Algebra These notes contain as little theory as possible, and most results are stated without proof. Any introductory

PYTHAGOREAN TRIPLES KEITH CONRAD 1. Introduction A Pythagorean triple is a triple of positive integers (a, b, c) where a + b = c. Examples include (3, 4, 5), (5, 1, 13), and (8, 15, 17). Below is an ancient

### 5-4 Prime and Composite Numbers

5-4 Prime and Composite Numbers Prime and Composite Numbers Prime Factorization Number of Divisorss Determining if a Number is Prime More About Primes Prime and Composite Numbers Students should recognizee

### GCDs and Relatively Prime Numbers! CSCI 2824, Fall 2014!

GCDs and Relatively Prime Numbers! CSCI 2824, Fall 2014!!! Challenge Problem 2 (Mastermind) due Fri. 9/26 Find a fourth guess whose scoring will allow you to determine the secret code (repetitions are

### SOLVING POLYNOMIAL EQUATIONS

C SOLVING POLYNOMIAL EQUATIONS We will assume in this appendix that you know how to divide polynomials using long division and synthetic division. If you need to review those techniques, refer to an algebra

### 8 Primes and Modular Arithmetic

8 Primes and Modular Arithmetic 8.1 Primes and Factors Over two millennia ago already, people all over the world were considering the properties of numbers. One of the simplest concepts is prime numbers.

### Integer Factorization using the Quadratic Sieve

Integer Factorization using the Quadratic Sieve Chad Seibert* Division of Science and Mathematics University of Minnesota, Morris Morris, MN 56567 seib0060@morris.umn.edu March 16, 2011 Abstract We give

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

Number Theory Hungarian Style Cameron Byerley s interpretation of Csaba Szabó s lectures August 20, 2005 2 0.1 introduction Number theory is a beautiful subject and even cooler when you learn about it

### Doug Ravenel. October 15, 2008

Doug Ravenel University of Rochester October 15, 2008 s about Euclid s Some s about primes that every mathematician should know (Euclid, 300 BC) There are infinitely numbers. is very elementary, and we

### 4.2 Euclid s Classification of Pythagorean Triples

178 4. Number Theory: Fermat s Last Theorem Exercise 4.7: A primitive Pythagorean triple is one in which any two of the three numbers are relatively prime. Show that every multiple of a Pythagorean triple

### CONTINUED FRACTIONS AND FACTORING. Niels Lauritzen

CONTINUED FRACTIONS AND FACTORING Niels Lauritzen ii NIELS LAURITZEN DEPARTMENT OF MATHEMATICAL SCIENCES UNIVERSITY OF AARHUS, DENMARK EMAIL: niels@imf.au.dk URL: http://home.imf.au.dk/niels/ Contents

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

Number Theory Divisibility and Primes Definition. If a and b are integers and there is some integer c such that a = b c, then we say that b divides a or is a factor or divisor of a and write b a. Definition

### a = bq + r where 0 r < b.

Lecture 5: Euclid s algorithm Introduction The fundamental arithmetic operations are addition, subtraction, multiplication and division. But there is a fifth operation which I would argue is just as fundamental

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

MTHSC 412 Section 2.4 Prime Factors and Greatest Common Divisor Greatest Common Divisor Definition Suppose that a, b Z. Then we say that d Z is a greatest common divisor (gcd) of a and b if the following

### MATH10040 Chapter 2: Prime and relatively prime numbers

MATH10040 Chapter 2: Prime and relatively prime numbers Recall the basic definition: 1. Prime numbers Definition 1.1. Recall that a positive integer is said to be prime if it has precisely two positive

### Primality - Factorization

Primality - Factorization Christophe Ritzenthaler November 9, 2009 1 Prime and factorization Definition 1.1. An integer p > 1 is called a prime number (nombre premier) if it has only 1 and p as divisors.

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

Instructions. Answer each of the questions on your own paper, and be sure to show your work so that partial credit can be adequately assessed. Credit will not be given for answers (even correct ones) without

### An Innocent Investigation

An Innocent Investigation D. Joyce, Clark University January 2006 The beginning. Have you ever wondered why every number is either even or odd? I don t mean to ask if you ever wondered whether every number

### Theorem3.1.1 Thedivisionalgorithm;theorem2.2.1insection2.2 If m, n Z and n is a positive

Chapter 3 Number Theory 159 3.1 Prime Numbers Prime numbers serve as the basic building blocs in the multiplicative structure of the integers. As you may recall, an integer n greater than one is prime

### SUM OF TWO SQUARES JAHNAVI BHASKAR

SUM OF TWO SQUARES JAHNAVI BHASKAR Abstract. I will investigate which numbers can be written as the sum of two squares and in how many ways, providing enough basic number theory so even the unacquainted

### Discrete Mathematics, Chapter 4: Number Theory and Cryptography

Discrete Mathematics, Chapter 4: Number Theory and Cryptography Richard Mayr University of Edinburgh, UK Richard Mayr (University of Edinburgh, UK) Discrete Mathematics. Chapter 4 1 / 35 Outline 1 Divisibility

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

SUBGROUPS OF CYCLIC GROUPS KEITH CONRAD 1. Introduction In a group G, we denote the (cyclic) group of powers of some g G by g = {g k : k Z}. If G = g, then G itself is cyclic, with g as a generator. Examples

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

Powers of Integers An integer n is a perfect square if n = m for some integer m. Taking into account the prime factorization, if m = p α 1 1 pα k k, then n = pα 1 1 p α k k. That is, n is a perfect square

### Elementary Number Theory

Elementary Number Theory A revision by Jim Hefferon, St Michael s College, 2003-Dec of notes by W. Edwin Clark, University of South Florida, 2002-Dec L A TEX source compiled on January 5, 2004 by Jim Hefferon,

### Introduction. Appendix D Mathematical Induction D1

Appendix D Mathematical Induction D D Mathematical Induction Use mathematical induction to prove a formula. Find a sum of powers of integers. Find a formula for a finite sum. Use finite differences to

### An Introductory Course in Elementary Number Theory. Wissam Raji

An Introductory Course in Elementary Number Theory Wissam Raji 2 Preface These notes serve as course notes for an undergraduate course in number theory. Most if not all universities worldwide offer introductory

### Appendix F: Mathematical Induction

Appendix F: Mathematical Induction Introduction In this appendix, you will study a form of mathematical proof called mathematical induction. To see the logical need for mathematical induction, take another

### Elementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University http://www.cs.stonybrook.

Elementary Number Theory and Methods of Proof CSE 215, Foundations of Computer Science Stony Brook University http://www.cs.stonybrook.edu/~cse215 1 Number theory Properties: 2 Properties of integers (whole

### The last three chapters introduced three major proof techniques: direct,

CHAPTER 7 Proving Non-Conditional Statements The last three chapters introduced three major proof techniques: direct, contrapositive and contradiction. These three techniques are used to prove statements

### MATHEMATICAL INDUCTION. Mathematical Induction. This is a powerful method to prove properties of positive integers.

MATHEMATICAL INDUCTION MIGUEL A LERMA (Last updated: February 8, 003) Mathematical Induction This is a powerful method to prove properties of positive integers Principle of Mathematical Induction Let P

### Factoring & Primality

Factoring & Primality Lecturer: Dimitris Papadopoulos In this lecture we will discuss the problem of integer factorization and primality testing, two problems that have been the focus of a great amount

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

Breaking The Code Ryan Lowe Ryan Lowe is currently a Ball State senior with a double major in Computer Science and Mathematics and a minor in Applied Physics. As a sophomore, he took an independent study

### Primes in Sequences. Lee 1. By: Jae Young Lee. Project for MA 341 (Number Theory) Boston University Summer Term I 2009 Instructor: Kalin Kostadinov

Lee 1 Primes in Sequences By: Jae Young Lee Project for MA 341 (Number Theory) Boston University Summer Term I 2009 Instructor: Kalin Kostadinov Lee 2 Jae Young Lee MA341 Number Theory PRIMES IN SEQUENCES

### Every Positive Integer is the Sum of Four Squares! (and other exciting problems)

Every Positive Integer is the Sum of Four Squares! (and other exciting problems) Sophex University of Texas at Austin October 18th, 00 Matilde N. Lalín 1. Lagrange s Theorem Theorem 1 Every positive integer

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

Chapter 23 Squares Modulo p Revised Version of Chapter 23 We learned long ago how to solve linear congruences ax c (mod m) (see Chapter 8). It s now time to take the plunge and move on to quadratic equations.

### MATH 289 PROBLEM SET 4: NUMBER THEORY

MATH 289 PROBLEM SET 4: NUMBER THEORY 1. The greatest common divisor If d and n are integers, then we say that d divides n if and only if there exists an integer q such that n = qd. Notice that if d divides

### Settling a Question about Pythagorean Triples

Settling a Question about Pythagorean Triples TOM VERHOEFF Department of Mathematics and Computing Science Eindhoven University of Technology P.O. Box 513, 5600 MB Eindhoven, The Netherlands E-Mail address:

### Integers and division

CS 441 Discrete Mathematics for CS Lecture 12 Integers and division Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Symmetric matrix Definition: A square matrix A is called symmetric if A = A T.

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

On the generation of elliptic curves with 16 rational torsion points by Pythagorean triples Brian Hilley Boston College MT695 Honors Seminar March 3, 2006 1 Introduction 1.1 Mazur s Theorem Let C be a

### International Journal of Information Technology, Modeling and Computing (IJITMC) Vol.1, No.3,August 2013

FACTORING CRYPTOSYSTEM MODULI WHEN THE CO-FACTORS DIFFERENCE IS BOUNDED Omar Akchiche 1 and Omar Khadir 2 1,2 Laboratory of Mathematics, Cryptography and Mechanics, Fstm, University of Hassan II Mohammedia-Casablanca,

### COMMUTATIVE RINGS. Definition: A domain is a commutative ring R that satisfies the cancellation law for multiplication:

COMMUTATIVE RINGS Definition: A commutative ring R is a set with two operations, addition and multiplication, such that: (i) R is an abelian group under addition; (ii) ab = ba for all a, b R (commutative

### Continued Fractions. Darren C. Collins

Continued Fractions Darren C Collins Abstract In this paper, we discuss continued fractions First, we discuss the definition and notation Second, we discuss the development of the subject throughout history

### Just the Factors, Ma am

1 Introduction Just the Factors, Ma am The purpose of this note is to find and study a method for determining and counting all the positive integer divisors of a positive integer Let N be a given positive

### I. GROUPS: BASIC DEFINITIONS AND EXAMPLES

I GROUPS: BASIC DEFINITIONS AND EXAMPLES Definition 1: An operation on a set G is a function : G G G Definition 2: A group is a set G which is equipped with an operation and a special element e G, called

Pythagorean Quadruples 1. Pythagorean and Primitive Pythagorean Quadruples A few years ago, I became interested with those 3 vectors with integer coordinates and integer length or norm. The simplest example

### Lecture 13 - Basic Number Theory.

Lecture 13 - Basic Number Theory. Boaz Barak March 22, 2010 Divisibility and primes Unless mentioned otherwise throughout this lecture all numbers are non-negative integers. We say that A divides B, denoted

### Some practice problems for midterm 2

Some practice problems for midterm 2 Kiumars Kaveh November 15, 2011 Problem: What is the remainder of 6 2000 when divided by 11? Solution: This is a long-winded way of asking for the value of 6 2000 mod

### APPLICATIONS OF THE ORDER FUNCTION

APPLICATIONS OF THE ORDER FUNCTION LECTURE NOTES: MATH 432, CSUSM, SPRING 2009. PROF. WAYNE AITKEN In this lecture we will explore several applications of order functions including formulas for GCDs and

### DigitalCommons@University of Nebraska - Lincoln

University of Nebraska - Lincoln DigitalCommons@University of Nebraska - Lincoln MAT Exam Expository Papers Math in the Middle Institute Partnership 7-1-007 Pythagorean Triples Diane Swartzlander University

### Some Polynomial Theorems. John Kennedy Mathematics Department Santa Monica College 1900 Pico Blvd. Santa Monica, CA 90405 rkennedy@ix.netcom.

Some Polynomial Theorems by John Kennedy Mathematics Department Santa Monica College 1900 Pico Blvd. Santa Monica, CA 90405 rkennedy@ix.netcom.com This paper contains a collection of 31 theorems, lemmas,

### RSA and Primality Testing

and Primality Testing Joan Boyar, IMADA, University of Southern Denmark Studieretningsprojekter 2010 1 / 81 Correctness of cryptography cryptography Introduction to number theory Correctness of with 2

### z 0 and y even had the form

Gaussian Integers The concepts of divisibility, primality and factoring are actually more general than the discussion so far. For the moment, we have been working in the integers, which we denote by Z

### Math 319 Problem Set #3 Solution 21 February 2002

Math 319 Problem Set #3 Solution 21 February 2002 1. ( 2.1, problem 15) Find integers a 1, a 2, a 3, a 4, a 5 such that every integer x satisfies at least one of the congruences x a 1 (mod 2), x a 2 (mod

### 5544 = 2 2772 = 2 2 1386 = 2 2 2 693. Now we have to find a divisor of 693. We can try 3, and 693 = 3 231,and we keep dividing by 3 to get: 1

MATH 13150: Freshman Seminar Unit 8 1. Prime numbers 1.1. Primes. A number bigger than 1 is called prime if its only divisors are 1 and itself. For example, 3 is prime because the only numbers dividing

### Number Theory: A Mathemythical Approach. Student Resources. Printed Version

Number Theory: A Mathemythical Approach Student Resources Printed Version ii Contents 1 Appendix 1 2 Hints to Problems 3 Chapter 1 Hints......................................... 3 Chapter 2 Hints.........................................

### a 1 x + a 0 =0. (3) ax 2 + bx + c =0. (4)

ROOTS OF POLYNOMIAL EQUATIONS In this unit we discuss polynomial equations. A polynomial in x of degree n, where n 0 is an integer, is an expression of the form P n (x) =a n x n + a n 1 x n 1 + + a 1 x

### Section 4.2: The Division Algorithm and Greatest Common Divisors

Section 4.2: The Division Algorithm and Greatest Common Divisors The Division Algorithm The Division Algorithm is merely long division restated as an equation. For example, the division 29 r. 20 32 948

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

Math Review for the Quantitative Reasoning Measure of the GRE revised General Test www.ets.org Overview This Math Review will familiarize you with the mathematical skills and concepts that are important

### MODULAR ARITHMETIC. a smallest member. It is equivalent to the Principle of Mathematical Induction.

MODULAR ARITHMETIC 1 Working With Integers The usual arithmetic operations of addition, subtraction and multiplication can be performed on integers, and the result is always another integer Division, on

### Handout #1: Mathematical Reasoning

Math 101 Rumbos Spring 2010 1 Handout #1: Mathematical Reasoning 1 Propositional Logic A proposition is a mathematical statement that it is either true or false; that is, a statement whose certainty or

### MATH 537 (Number Theory) FALL 2016 TENTATIVE SYLLABUS

MATH 537 (Number Theory) FALL 2016 TENTATIVE SYLLABUS Class Meetings: MW 2:00-3:15 pm in Physics 144, September 7 to December 14 [Thanksgiving break November 23 27; final exam December 21] Instructor:

### MA257: INTRODUCTION TO NUMBER THEORY LECTURE NOTES

MA257: INTRODUCTION TO NUMBER THEORY LECTURE NOTES 2016 47 4. Diophantine Equations A Diophantine Equation is simply an equation in one or more variables for which integer (or sometimes rational) solutions

### Introduction to Diophantine Equations

Introduction to Diophantine Equations Tom Davis tomrdavis@earthlink.net http://www.geometer.org/mathcircles September, 2006 Abstract In this article we will only touch on a few tiny parts of the field

### THE CONGRUENT NUMBER PROBLEM

THE CONGRUENT NUMBER PROBLEM KEITH CONRAD 1. Introduction A right triangle is called rational when its legs and hypotenuse are all rational numbers. Examples of rational right triangles include Pythagorean

### Grade 6 Math Circles March 10/11, 2015 Prime Time Solutions

Faculty of Mathematics Waterloo, Ontario N2L 3G1 Centre for Education in Mathematics and Computing Lights, Camera, Primes! Grade 6 Math Circles March 10/11, 2015 Prime Time Solutions Today, we re going

### 10/14/08 ON NUMBERS EQUAL TO THE SUM OF TWO SQUARES IN MORE THAN ONE WAY

1 10/14/08 ON NUMBERS EQUAL TO THE SUM OF TWO SQUARES IN MORE THAN ONE WAY Ming-Sun Li, Kathryn Robertson, Thomas J. Osler, Abdul Hassen, Christopher S. Simons and Marcus Wright Department of Mathematics

### PYTHAGOREAN TRIPLES PETE L. CLARK

PYTHAGOREAN TRIPLES PETE L. CLARK 1. Parameterization of Pythagorean Triples 1.1. Introduction to Pythagorean triples. By a Pythagorean triple we mean an ordered triple (x, y, z) Z 3 such that x + y =

### Fractions and Decimals

Fractions and Decimals Tom Davis tomrdavis@earthlink.net http://www.geometer.org/mathcircles December 1, 2005 1 Introduction If you divide 1 by 81, you will find that 1/81 =.012345679012345679... The first

### Factoring. Factoring 1

Factoring Factoring 1 Factoring Security of RSA algorithm depends on (presumed) difficulty of factoring o Given N = pq, find p or q and RSA is broken o Rabin cipher also based on factoring Factoring like

### Not for resale. 4.1 Divisibility of Natural Numbers 4.2 Tests for Divisibility 4.3 Greatest Common Divisors and Least Common Multiples

CHAPTER 4 Number Theory 4.1 Divisibility of Natural Numbers 4.2 Tests for Divisibility 4.3 Greatest Common Divisors and Least Common Multiples 4.4 Codes and Credit Card Numbers: Connections to Number Theory

### 2. Methods of Proof Types of Proofs. Suppose we wish to prove an implication p q. Here are some strategies we have available to try.

2. METHODS OF PROOF 69 2. Methods of Proof 2.1. Types of Proofs. Suppose we wish to prove an implication p q. Here are some strategies we have available to try. Trivial Proof: If we know q is true then

### CONTINUED FRACTIONS AND PELL S EQUATION. Contents 1. Continued Fractions 1 2. Solution to Pell s Equation 9 References 12

CONTINUED FRACTIONS AND PELL S EQUATION SEUNG HYUN YANG Abstract. In this REU paper, I will use some important characteristics of continued fractions to give the complete set of solutions to Pell s equation.

### Welcome to Math 19500 Video Lessons. Stanley Ocken. Department of Mathematics The City College of New York Fall 2013

Welcome to Math 19500 Video Lessons Prof. Department of Mathematics The City College of New York Fall 2013 An important feature of the following Beamer slide presentations is that you, the reader, move

### MOP 2007 Black Group Integer Polynomials Yufei Zhao. Integer Polynomials. June 29, 2007 Yufei Zhao yufeiz@mit.edu

Integer Polynomials June 9, 007 Yufei Zhao yufeiz@mit.edu We will use Z[x] to denote the ring of polynomials with integer coefficients. We begin by summarizing some of the common approaches used in dealing

### WOLLONGONG COLLEGE AUSTRALIA. Diploma in Information Technology

First Name: Family Name: Student Number: Class/Tutorial: WOLLONGONG COLLEGE AUSTRALIA A College of the University of Wollongong Diploma in Information Technology Mid-Session Test Summer Session 008-00

### An Overview of Integer Factoring Algorithms. The Problem

An Overview of Integer Factoring Algorithms Manindra Agrawal IITK / NUS The Problem Given an integer n, find all its prime divisors as efficiently as possible. 1 A Difficult Problem No efficient algorithm

### Session 6 Number Theory

Key Terms in This Session Session 6 Number Theory Previously Introduced counting numbers factor factor tree prime number New in This Session composite number greatest common factor least common multiple

### If n is odd, then 3n + 7 is even.

Proof: Proof: We suppose... that 3n + 7 is even. that 3n + 7 is even. Since n is odd, there exists an integer k so that n = 2k + 1. that 3n + 7 is even. Since n is odd, there exists an integer k so that

### 9 Modular Exponentiation and Cryptography

9 Modular Exponentiation and Cryptography 9.1 Modular Exponentiation Modular arithmetic is used in cryptography. In particular, modular exponentiation is the cornerstone of what is called the RSA system.