# PYTHAGOREAN TRIPLES PETE L. CLARK

Save this PDF as:

Size: px
Start display at page:

## Transcription

1 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 = z. The name comes from elementary geometry: if a right triangle has leg lengths x and y and hypotenuse length z, then x + y = z. Of course here x, y, z are positive real numbers. For most integer values of x and y, the integer x + y will not be a perfect square, so the positive real number x + y will be irrational: e.g. x = y = 1 = z =. However, a few integer solutions to x + y = z are familiar from high school algebra (and the SATs): e.g. (3, 4, 5), (5, 1, 13). Remark: As soon as we have one solution, like (3, 4, 5), we can find infinitely many more, however in a somewhat unsatisfying way. Namely, if (x, y, z) is a Pythagorean triple and a is any integer, then also (ax, ay, az) is a Pythagorean triple: (ax) + (ay) = a (x + y ) = a z = (az). This property of invariance under scaling is a characteristic feature of solutions (x 1,..., x n ) to homogeneous polynomials P (t 1,..., t n ) in n-variables. We recall what this means: a monomial is an expression of the form ct a 1 1 ta n n (for a nonzero constant c), and the degree of the monomial is defined to be a a n, i.e., the sum of the exponents. A polynomial is said to be homogeneous of degree d if each of its monomial terms has degree d, and simply homogeneous if it is homogeneous of some degree d. For instance, the polynomial P (x, y, z) = x +y z is homogeneous of degree, and indeed for any N the Fermat polynomial P N (x, y, z) = x N + y N z N is homogeneous of degree N. Moreover, every (nonconstant) homogeneous polynomial P (t 1,..., t n ) has zero constant term, hence P (0,..., 0) = 0. So (0,..., 0) is a solution to any homogeneous polynomial, called the trivial solution. Coming back to Pythagorean triples, these considerations show that for all a Z, (3a, 4a, 5a) is a Pythagorean triple (again, familiar to anyone who has studied for the SATs). For many purposes it is convenient to regard these rescaled solutions as being equivalent to each other. To this end we define a Pythagorean triple (a, b, c) to be primitive if gcd(a, b, c) = 1. Then every nontrivial triple (a, b, c) is a positive integer multiple of a unique primitive triple, namely ( a d, b d, c d ) where d = gcd(a, b, c). Thanks to Katelyn Andrews, Laura Nunley and Kelly Payne for pointing out typos. 1

2 PETE L. CLARK Our goal is to find all primitive Pythagorean triples. There are many ways to do so. We prefer the following method, both for its simplicity and because it motivates the study of not just integral but rational solutions of polynomial equations. Namely, consider the algebraic curve x + y = 1 in R : i.e., the unit circle. Why? Well, suppose (a, b, c) is a nontrivial Pythagorean triple, so a + b = c with c 0 (if c = 0, then a + b = 0 = a = b = 0). So we may divide through by c, getting ( a ) ( ) b + = 1. c c Thus ( a c, b c ) is a rational point on the unit circle. Moreover, the process can be essentially reversed: suppose that (r, s) Q is such that r + s = 1. Then, writing r = a c and s = b d (so cd 0), we have ( a ) ( ) b + = 1. c d Multiplying through by (cd), we get (da) + (bc) = (cd), so that (da, bc, cd) is a nontrivial Pythagorean triple. If we start with a primitive Pythagorean triple (a, b, c), pass to the rational solution ( a c, b c ) and then clear denominators using the above formula, we get (ca, cb, c ). This is not the primitive triple that we started with, but it is simply a rescaling: no big deal. At the end we will find the correct scaling that gives primitive triples on the nose. 1.. Rational parameterization of the unit circle. Fix any one rational point P = (x, y ) on the unit circle. The argument that we are about to make works for any choice of P e.g. ( 3 5, 4 5 ) but let me pass along the wisdom of hindsight: the computations will be especially simple and clean if we take P = ( 1, 0). So let us do so. Now suppose P = (x P, y P ) is any other rational point on the unit circle. Then there is a unique line l joining P to P, which of course has rational coefficients: l : y y P = y P y x P x (x x P ). In particular, the slope of this line m P = y P y x P x, is a rational number. This already places a limitation on the rational solutions, since most lines passing through the fixed point P have irrational slope. More interesting is the converse: for any m Q, let l m : y = (y y ) = m(x x ) = m(x + 1), be the line passing through P = ( 1, 0) with slope m. We claim that this line intersects the unit circle in precisely one additional point P m, and that this point P m also has rational coordinates. That is, we claim that the rational points on the unit circle are precisely the point P = ( 1, 0) together with the set of points P m

3 PYTHAGOREAN TRIPLES 3 as m ranges through the rational numbers. Why is this so? With a bit of thought, we can argue for this in advance. Briefly, we plug the linear equation l m into the quadratic x + y = 1 thereby getting a quadratic equation in x with rational coefficients. Because we know that this equation has at least one rational solution namely 1, the coordinate of P the other solution must be rational as well, as follows from contemplation of the quadratic formula. On the other hand, such forethought is not really necessary in this case, because we want to find the solutions explicitly anyway. In other words, let s do it! We have the system of equations (1) x + y = 1 () y = m(x + 1). Substituting () into (1) gives or Applying the quadratic formula, we get x + m (x + 1) = 1, (1 + m )x + m x + m 1 = 0. x = m ± 4m 4 4(1 + m )(m 1) (1 + m. ) Under the radical sign we have 4m 4 4(m + 1)(m 1) = 4(m 4 (m 4 1)) = 4, so that luckily 1 4m 4(1 + m )(m 1) =, and x = m ± (1 + m ) = m ± m. Notice that by taking the minus sign, we get the solution x = m 1 1+m = 1. That s great, because 1 is the x-coordinate of P, so that it had better be a solution. The other solution is the one we really want: and then we get so that finally x m = 1 m 1 + m, y m = m(1 + x m ) = m (1 + 1 ) m 1 + m P m = ( ) 1 m 1 + m, m 1 + m. = m m + 1, 1 Not really, of course: see the last paragraph above.

4 4 PETE L. CLARK This is exactly what we wanted. Before returning to the problem of Pythagorean triples, however, let us make one further observation: ( lim P 1 m ) m = lim m ± m ± 1 + m, lim m m ± 1 + m = ( 1, 0) = P. The geometric interpretation of this is simple: the tangent line to the unit circle at ( 1, 0) is vertical, so as the slope of the line l m approaches either + or, the second intersection point P m approaches P and the secant lines approach the tangent line. So in fact it is true that the rational points on the unit circle correspond precisely to the set of all rational lines through P : here we get P itself as the double intersection point of the tangent line. Thus, instead of P, a more appropriate name would be P, although we do not insist on this in the sequel Scaling to get primitive solutions. We wish to explicitly write down all primitive Pythagorean triples (a, b, c). As above, this is accomplished up to scaling by clearing denominators in the general rational solution P m = (x m, y m ). Namely, put m = u v with gcd(u, v) = 1, so ( 1 u /v ) ( P m = 1 + u /v, u/v v u ) 1 + u /v = v + u, uv v + u. Thus, multiplying through by v + u, we get a family of integral solutions (v u, uv, v + u ). Are these solutions primitive? In other words, is gcd(v u, uv, v + u ) = 1? Suppose that an odd prime p divides v u and v + u. Then p also divides (v u ) + (v + u ) = v and (v + u ) (v u ) = u. Since p is odd, we get p u and p v which implies p u and p v, contradiction. Similarly, if 4 v u and 4 v + u, then 4 v and 4 u, so v and u, so divides both u and v. Thus gcd(v u, uv, v + u ) is either 1 or. Case 1: v and u have opposite parity. Then v u is odd, so the gcd is 1. Notice that in this case, the first coordinate v u is odd and the second coordinate uv is even, so this can t be the complete list of all primitive Pythagorean triples: that set is symmetric under interchanging x and y! Case : u and v are both odd. Then v u, uv, v + u are all even, so the gcd is. In this case ( v u, uv, v +u ) is the primitive integral solution we seek. This is the answer, but let s touch it up a bit. If x = k + 1 is odd, then x = 4k + 4k (mod 4). Thus, if u and v are both odd, not only is v u even, it is congruent to v u 1 1 = 0 (mod 4), so v u is even and uv is odd. Thus all the primitive triples arising in Case are obtained by switching the first and second coordinates of a primitive triple in Case 1. To sum up: Theorem 1. (Classification of Pythagorean Triples) ( ) a) The rational solutions to x + y 1 m = 1 are {( 1, 0) m 1+m, 1+m m Q}. b) (0, 0, 0) is a Pythagorean triple, called trivial. Every nontrivial Pythagorean Note that there is no Case 3: we assumed gcd(u, v) = 1, so they can t both be even.

5 PYTHAGOREAN TRIPLES 5 triple is of the form (da, db, dc) for some d Z +, where (a, b, c) is a Pythagorean triple with gcd(a, b, c) = 1, called primitive. c) In every primitive Pythagorean triple (a, b, c), exactly one of a and b are even integers. Every primitive triple with a odd is of the form (v u, uv, v + u ) where u, v Z are relatively prime integers of opposite parity. Conversely, all such pairs u, v yield a primitive Pythagorean triple with first coordinate odd.. An Application: Fermat s Last Theorem for N = 4 In this section we will prove Fermat s Last Theorem for N = 4. Theorem. X 4 + Y 4 = Z 4 has no solutions with X, Y, Z Z \ {0}. This theorem was, in fact, first proved by Pierre de Fermat, circa Our proof follows Fermat s own. In fact, what Fermat proved was a stronger result: Theorem 3. X 4 + Y 4 = Z has no solutions with X, Y, Z Z \ {0}. Theorem follows readily from Theorem 3, as we now explain: suppose that there exist x, y, z Z \ {0} such that x 4 + y 4 = z 4. By replacing x x and so forth, we may assume that x, y, z are all positive. Then, since Z 4 = (Z ), the triple (x, y, z ) is a positive integer solution to X 4 + Y 4 = Z, contradicting Theorem 3. Proof of Theorem 3: Step 1: Let (x, y, z) be any positive integral solution to X 4 + Y 4 = Z. We claim that there is a positive integral solution (x, y, z ) with gcd(x, y ) = 1 and z z. Indeed, if x and y are not relatively prime, they are both divisible by some prime number p. Then p 4 X 4 + Y 4 = Z, so p Z. Therefore x p, y p, z p Z + and ) 4 ) +, ( x p ( y p ) 4 = 1 p 4 (x4 + y 4 ) = 1 p 4 (z ) = ( z p so ( x p, y p, z p ) is another positive integral solution, with z-coordinate smaller than the one we started with. Therefore the process can be repeated, and since the z-coordinate gets strictly smaller each time, it must eventually terminate with a solution (x, y, z ) as in the statement. Step : Given a positive integral solution (x, y, z) to X 4 +Y 4 = Z with gcd(x, y) = 1, we will produce another positive integral solution (u, v, w) with w < z. First, we may assume without loss of generality that x is odd and y is even. Since gcd(x, y) = 1, they cannot both be even; if instead x is even and y is odd, then we can switch x and y; so we must check is that x and y cannot both be odd. Considering x 4 + y 4 = z modulo 4, we find z (mod 4), which is easily seen to be impossible: 0 0 (mod 4), (mod 4). Now we use our knowledge of Pythagorean triples: since (x ) + (y ) = z and gcd(x, y) = 1, (x, y, z) is a primitive Pythagorean triple with first coordinate odd. So by Theorem 1 there exist coprime integers m and n of opposite parity such that (3) x = m n y = mn z = m + n.

6 6 PETE L. CLARK Now rewrite (3) as n + x = m. Since gcd(m, n) = 1, this is again a primitive Pythagorean triple. Moreover, since x is odd, n must be even. So we can use our paramterization again (!!) to write x = r s, n = rs, m = r + s, for coprime integers r, s of opposite parity. Now observe ( n ) m = mn ( = y y ) 4 4 =. Since m and n are coprime integers whose product is a perfect square, they must both be perfect squares. Similarly, rs = rs = n =, so r and s must both be squares. Let us put r = u, s = v, m = w, and substitute these quantities into m = r + s to get u 4 + v 4 = w. Here w 1, so w w 4 < w 4 + n = m + n = z, so that as promised, we found a new positive integral solution (u, v, w) with w < z. Step 3: Steps 1 and together lead to a contradiction, as follows: if we have any positive integral solution (x, y, z) to X 4 + Y 4 = Z, then by Step 1 we have one (x, y, z ) with z z with gcd(x, y ) = 1. Then by Step we have another positive integral solution (u, v, w) with w < z z. Then by Step 1 we have another positive integral solution (u, v, w ) with w w < z z with gcd(u, v ) = 1, and then by Step we get another solution whose final coordinate is strictly smaller than w. And so on. In other words, the assumption that there are any positive integer solutions at all leads to the construction of an infinite sequence of positive integer solutions (x n, y n, z n ) with z n+1 < z n for all n. But that s impossible: there are no infinite strictly decreasing sequences of positive integers. Contradiction! This technique is known as infinite descent. It has been developed over the years, and the modern theory of descent is still a mainstay of Diophantine geometry. 3. Rational points on conics The method of drawing lines that we used to find all rational points on the unit circle has further applicability. Namely, we consider an arbitrary conic curve (4) ax + by = cz, for a, b, c Q \ {0}. Remark: More generally, one calls a plane conic any curve given by an equation ax + bxy + cxz + dy + ey Z + fz = 0. for a, b, c, d, e, f Q, not all zero. But as one learns in linear algebra, by making a linear change of variables, new coordinates can be found in which the equation is

7 PYTHAGOREAN TRIPLES 7 diagonal, i.e., in the form (4), and one can easily relate integral/rational points on one curve to those on the other. So by considering only diagonalized conics, we are not losing out on any generality. Now, as in the case a = b = c = 1, we have a bijective correspondence between primitive integral solutions to ax + by = cz and rational points on (5) ax + by = c. If we can find any one rational point P = (x, y ) on (5) then our previous geometric method works: by taking the set of all lines through P with rational slope, together with the line x = x with slope and intersecting with the conic (5), we get all rational solutions. In the exercises the reader is invited to try this in certain cases where there are obvious rational solutions. For instance, if a = c then an obvious rational solution is (1, 0). The reader is asked to carry this out in a particular case and also to investigate the structure of the primitive integral solutions in the exercises. But there need not be any rational solutions at all! An easy example of this is x + y = 1, where indeed there are clearly no R-solutions. But this is not the only obstruction. Consider for instance 3x + 3y = 1, 1 whose real solutions form a circle of radius 3. We claim that there are however no rational points on this circle. Equivalently, there are no integral solutions to 3X + 3Y = Z with gcd(x, y, z) = 1. For suppose there is such a primitive integral solution (x, y, z). Then, since 3 3x +3y = z, we have 3 z. So we may put z = 3z, getting 3x +3y = 9(z ), or x + y = 3z. Now reducing mod 3, we get x + y 0 (mod 3). Since the squares mod 3 are 0 and 1, the only solution mod 3 is x y 0 (mod 3), but this means 3 x, 3 y, so that the solution (x, y, z) is not primitive after all: 3 is a common divisor. Thus we also have techniques for showing that the conic ax + by = cz does not have nontrivial integral solutions: namely, sign considerations and congruence considerations, the latter being a fancy name for working modulo n to get a contradiction, as we did above. On the other hand we have a technique for showing that the conic does have nontrivial integral solutions: simple brute force searching. For any fixed a, b, c, there either are or are not nontrivial Z-solutions, so clearly at most one of these techniques can succeed. The big question is: is it possible for them both to fail?? I.e., are there a, b, c Z\{0} such that ax +by = cz has no nontrivial integral solutions but it is not posible to show this by sign considerations and congruence obstructions?

8 8 PETE L. CLARK The answer is provided by the following elegant theorem of Legendre. Theorem 4. Let a, b, c be nonzero integers, squarefree, relatively prime in pairs, and neither all positive nor all negative. Then (6) ax + by + cz = 0 has a solution in nonzero integers (x, y, z) iff all of the following hold: (i) There exists u Z such that ab u (mod c). (ii) There exists v Z such that bc v (mod a). (iii) there exists w Z such that ca w (mod b). Since we can compute all of the squares modulo any integer n by a direct, finite calculation, one can use Legendre s Theorem to write a computer program that, upon being inputted (a, b, c), determines whether or not (6) has nontrivial solutions. But there is more to Theorem 6 than this: it also gives a negative answer to our big question: in every case in which there is no nontrivial integer solution, we can detect this by considerations of sign and/or congruence. To see this, let us now prove one implication of Theorem 4, namely that if there exists a nonzero integral solution (x, y, z), then conditions (i) through (iii) do hold. The point is that, exactly as in the above example, the conditions arise naturally upon reduction modulo a suitable integer n. Indeed: Suppose x, y, z Z with gcd(x, y, z) = 1 and ax + by + cz = 0. Observe that if any prime p divides both c and x, then also p by, and since gcd(b, c) = 1, p y. Thus gcd(c, x) = 1 gcd(c, y) = 1. So if gcd(c, x) > 1, there exists a prime p dividing x, y and c, so p ax + by = cz. Since c is squarefree, p z, hence p z, contradicting gcd(x, y, z) = 1. So we may assume gcd(c, x) = gcd(c, y) = 1, which means that a, b, x, y are all units in Z/cZ. So reducing (6) modulo c gives: ax + by 0 (mod c), or ( ) x b y a. Multiplying through by a we get ( ) ax ab (mod c), y so that ab is a square modulo c: this is precisely condition (i). Similarly (indeed, symmetrically), we get (ii) by reducing modulo a and (iii) by reducing modulo b. Of course the meat of Legendre s theorem is the converse implication, i.e., that conditions (i) through (iii) are sufficient to ensure the existence of a nontrivial integer solution. This argument requires tools that we do not yet possess especially, the quadratic reciprocity law so we will have to come back to it later. Once we know whether there are any integral solutions, we can search by brute force until we find one. The following result of Holzer puts an explicit upper bound on our search:

9 PYTHAGOREAN TRIPLES 9 Theorem 5. If the equation ax + by + cz = 0 has any solutions in nonzero integers, it has such a solution (x, y, z) with x bc, y ac, z ab. A proof of Theorem 4 will be given later on, after we have discussed quadratic reciprocity. As for Theorem 5, we choose not to give a proof, but rather we alert the interested reader to a very short and elementary proof due to L.J. Mordell. 3 Thus the study of homogeneous quadratic equations over Z (or, what comes to the same, over Q) is admirably complete. The same cannot be said for polynomial equations of higher degree, as we will soon see. 4. Transition to algebraic number theory Let us not leave behind the homogeneous quadratic equation just yet. that p is an odd prime. Are there any nontrivial Z-solutions to (7) px + py = Z? Suppose When p = 3, congruence considerations showed that there are no nontrivial solutions. When p = 5, a little searching turns up (1,, 5), i.e., 5(1) + 5() = 5. When p = 7, going modulo 7 oe can again see that there are no nontrivial solutions. What does Legendre s Theorem have to say? Nothing directly, because in Theorem 4 the coefficients are assumed pairwise relatively prime. But with only a little retouching we can get an equation to which Legendre s Theorem implies. Namely, for x, y, z satisfying (7), we must have p z = p z. Writing z = pz, we get or px + py = p (Z ), (8) X + Y pz = 0. Legendre s Theorem does apply to (8) and gives the following result. Corollary 6. For any odd prime p, the equation px + py = Z has nontrivial integer solutions if and only if 1 is a square modulo p. We don t yet have a general criterion that tells us all at once for which primes the congruence 1 x (mod p) is solvable. However, we can easily compile the following data: among odd primes p < 100, 1 is a square modulo p for p = 5, 13, 17, 9, 37, 41, 53, 61, 73, 89, 97 whereas 1 is not a square modulo p for p = 3, 7, 11, 19, 3, 31, 43, 47, 59, 67, 71, 79, 83. Detecting patterns in data can be quite challenging, but here it seems pretty clear: all the primes in the first list are 1 (mod 4), and all the primes in the second list are 1 (mod 4). This was already known to Fermat. Lemma 7. (Fermat s Lemma) For an odd prime p, the following are equivalent: (i) There exists x Z such that x 1 (mod p) (i.e., 1 is a square mod p). (ii) There exists k Z such that p = 4k + 1 (i.e., p is 1 mod 4). 3 On the magnitude of the integer solutions of the equation ax + by + cz = 0, J. Number Theory 1 (1969), 1-3.

10 10 PETE L. CLARK Let us first prove that (i) = (ii). For this, if x Z/pZ is such that x 1 (mod p), the order of x in the multiplicative group (Z/pZ) is 4. By [Corollary 10, Algebra Handout 1], this implies 4 #(Z/pZ) = p 1, so p 1 (mod 4). The other implication is more difficult. From a modern perspective, it is natural to use the fact that the group of units (Z/pZ) of Z/pZ is cyclic. But probably we should give at least a taste of more traditional arguments, which are also simple and appealing. Especially, this gives us an excuse to discuss the following result. Proposition 8. (Wilson s Theorem) If p is a prime, then (p 1)! 1 (mod p). Proof: We must show that if we multiply all the nonzero elements of the finite field F p := Z/pZ, we get 1. This is certainly true for p =, so we may assume that p is an odd prime. Consider the map ι : F p F p given by x x 1 (inversion). This map is a bijection: every element has a unique inverse. Moreover, the fixed points of this map are those elements x = ι(x) which are equal to their own inverse: x = x 1 ; this is equivalent to the equation x = 1. There are two obvious solutions: namely x = ±1 (which are different since p ). On the other hand, the polynomial x 1 can have at most two roots in the field F p. Thus every element different from ±1 in F p is distinct from its inverse, so multiplying the nonzero elements of F p gives 1 1 (x 1 x 1 1 ) (x p 3 x 1 p 3 ) i.e., all the elements apart from ±1 can be paired with their distinct and unique multiplicative inverse, qed! Now we use Wilson s Theorem to prove Fermat s Lemma. We showed that for a prime p, the product of the first p 1 integers is 1 modulo p. But this can be immediately generalized as follows: suppose that S is any reduced residue system modulo p, i.e., a set of p 1 integers such that S = {s s S} = F p, i.e., a set that represents every nonzero residue class modulo p exactly once. Then the conclusion of Wilson s theorem must be true for S just as it is for the particular choice S 0 = {1,..., p 1}: namely, i S i 1 (mod p). Consider the set (p 1) (p 1) (p 1) S = {, + 1,..., 1, 1,... }. Observe that S has p 1 elements, and the difference between the least element and the greatest element is precisely p 1 < p, so that no two of them can differ by a multiple of p: they are too close together for that. Thus S is a reduced residue system modulo p, so that Wilson s theorem says that 1 i (mod p). i S On the other hand, by folding in half i.e., by multiplying each element in S with its partner of opposite sign we directly compute that (( ) i = ( 1) p 1 p 1!). i S If now p 1 (mod 4), then p 1 is even, so that ( 1) p 1 = 1. Putting everything together we get 1 x (mod p), i.e., p x + 1. This proves Fermat s Lemma.

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

### 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

### Geometry and Arithmetic

Geometry and Arithmetic Alex Tao 10 June 2008 1 Rational Points on Conics We begin by stating a few definitions: A rational number is a quotient of two integers and the whole set of rational numbers is

### Further linear algebra. Chapter I. Integers.

Further linear algebra. Chapter I. Integers. Andrei Yafaev Number theory is the theory of Z = {0, ±1, ±2,...}. 1 Euclid s algorithm, Bézout s identity and the greatest common divisor. We say that a Z divides

### Pythagorean Triples Pythagorean triple similar primitive

Pythagorean Triples One of the most far-reaching problems to appear in Diophantus Arithmetica was his Problem II-8: To divide a given square into two squares. Namely, find integers x, y, z, so that x 2

### Continued Fractions and the Euclidean Algorithm

Continued Fractions and the Euclidean Algorithm Lecture notes prepared for MATH 326, Spring 997 Department of Mathematics and Statistics University at Albany William F Hammond Table of Contents Introduction

### 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

### 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,

### 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:

### Pythagorean Triples. Chapter 2. a 2 + b 2 = c 2

Chapter Pythagorean Triples The Pythagorean Theorem, that beloved formula of all high school geometry students, says that the sum of the squares of the sides of a right triangle equals the square of the

### Topics in Number Theory

Chapter 8 Topics in Number Theory 8.1 The Greatest Common Divisor Preview Activity 1 (The Greatest Common Divisor) 1. Explain what it means to say that a nonzero integer m divides an integer n. Recall

### A Non-Existence Property of Pythagorean Triangles with a 3-D Application

A Non-Existence Property of Pythagorean Triangles with a 3-D Application Konstantine Zelator Department of Mathematics and Computer Science Rhode Island College 600 Mount Pleasant Avenue Providence, RI

### Solutions to Practice Problems

Solutions to Practice Problems March 205. Given n = pq and φ(n = (p (q, we find p and q as the roots of the quadratic equation (x p(x q = x 2 (n φ(n + x + n = 0. The roots are p, q = 2[ n φ(n+ ± (n φ(n+2

### 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

### 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

### 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

### ALGEBRA HANDOUT 2: IDEALS AND QUOTIENTS. 1. Ideals in Commutative Rings In this section all groups and rings will be commutative.

ALGEBRA HANDOUT 2: IDEALS AND QUOTIENTS PETE L. CLARK 1. Ideals in Commutative Rings In this section all groups and rings will be commutative. 1.1. Basic definitions and examples. Let R be a (commutative!)

### 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

### 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

### ARITHMETIC PROGRESSIONS OF THREE SQUARES

ARITHMETIC PROGRESSIONS OF THREE SQUARES KEITH CONRAD 1 Introduction Here are the first 10 perfect squares (ignoring 0): 1, 4, 9, 16, 25, 36, 49, 64, 81, 100 In this list is the arithmetic progression

### Congruent Number Problem

University of Waterloo October 28th, 2015 Number Theory Number theory, can be described as the mathematics of discovering and explaining patterns in numbers. There is nothing in the world which pleases

### Practice Problems for First Test

Mathematicians have tried in vain to this day to discover some order in the sequence of prime numbers, and we have reason to believe that it is a mystery into which the human mind will never penetrate.-

### ARITHMETIC PROGRESSIONS OF FOUR SQUARES

ARITHMETIC PROGRESSIONS OF FOUR SQUARES KEITH CONRAD 1. Introduction Suppose a, b, c, and d are rational numbers such that a 2, b 2, c 2, and d 2 form an arithmetic progression: the differences b 2 a 2,

### 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.

### 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

### Number Theory 2. Paul Yiu. Department of Mathematics Florida Atlantic University. Spring 2007 April 8, 2007

Number Theory Paul Yiu Department of Mathematics Florida Atlantic University Spring 007 April 8, 007 Contents 1 Preliminaries 101 1.1 Infinitude of prime numbers............... 101 1. Euclidean algorithm

### 2 The Euclidean algorithm

2 The Euclidean algorithm Do you understand the number 5? 6? 7? At some point our level of comfort with individual numbers goes down as the numbers get large For some it may be at 43, for others, 4 In

3. QUADRATIC CONGRUENCES 3.1. Quadratics Over a Finite Field We re all familiar with the quadratic equation in the context of real or complex numbers. The formula for the solutions to ax + bx + c = 0 (where

### 3 Congruence arithmetic

3 Congruence arithmetic 3.1 Congruence mod n As we said before, one of the most basic tasks in number theory is to factor a number a. How do we do this? We start with smaller numbers and see if they divide

### Congruences. Robert Friedman

Congruences Robert Friedman Definition of congruence mod n Congruences are a very handy way to work with the information of divisibility and remainders, and their use permeates number theory. Definition

### 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

### 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

### 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

### 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

### PROOFS BY DESCENT KEITH CONRAD

PROOFS BY DESCENT KEITH CONRAD As ordinary methods, such as are found in the books, are inadequate to proving such difficult propositions, I discovered at last a most singular method... that I called the

### Chapter 6. Number Theory. 6.1 The Division Algorithm

Chapter 6 Number Theory The material in this chapter offers a small glimpse of why a lot of facts that you ve probably nown and used for a long time are true. It also offers some exposure to generalization,

### 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

### Prime Numbers. Chapter Primes and Composites

Chapter 2 Prime Numbers The term factoring or factorization refers to the process of expressing an integer as the product of two or more integers in a nontrivial way, e.g., 42 = 6 7. Prime numbers are

### Math E-301: Homework 4 Notes Due 10/5/09

Math E-301: Homework 4 Notes Due 10/5/09 The notes for homeworks will vary. For some problems, I may give one solution, but there may be other ways to approach the problem. I will try to mention these

### 10 k + pm pm. 10 n p q = 2n 5 n p 2 a 5 b q = p

Week 7 Summary Lecture 13 Suppose that p and q are integers with gcd(p, q) = 1 (so that the fraction p/q is in its lowest terms) and 0 < p < q (so that 0 < p/q < 1), and suppose that q is not divisible

### 1. LINEAR EQUATIONS. A linear equation in n unknowns x 1, x 2,, x n is an equation of the form

1. LINEAR EQUATIONS A linear equation in n unknowns x 1, x 2,, x n is an equation of the form a 1 x 1 + a 2 x 2 + + a n x n = b, where a 1, a 2,..., a n, b are given real numbers. For example, with x and

### Congruent Numbers, the Rank of Elliptic Curves and the Birch and Swinnerton-Dyer Conjecture. Brad Groff

Congruent Numbers, the Rank of Elliptic Curves and the Birch and Swinnerton-Dyer Conjecture Brad Groff Contents 1 Congruent Numbers... 1.1 Basic Facts............................... and Elliptic Curves.1

### Introduction Proof by unique factorization in Z Proof with Gaussian integers Proof by geometry Applications. Pythagorean Triples

Pythagorean Triples Keith Conrad University of Connecticut August 4, 008 Introduction We seek positive integers a, b, and c such that a + b = c. Plimpton 3 Babylonian table of Pythagorean triples (1800

### 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

### Tangent and normal lines to conics

4.B. Tangent and normal lines to conics Apollonius work on conics includes a study of tangent and normal lines to these curves. The purpose of this document is to relate his approaches to the modern viewpoints

### ORDERS OF ELEMENTS IN A GROUP

ORDERS OF ELEMENTS IN A GROUP KEITH CONRAD 1. Introduction Let G be a group and g G. We say g has finite order if g n = e for some positive integer n. For example, 1 and i have finite order in C, since

### 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

### TRIANGLES ON THE LATTICE OF INTEGERS. Department of Mathematics Rowan University Glassboro, NJ Andrew Roibal and Abdulkadir Hassen

TRIANGLES ON THE LATTICE OF INTEGERS Andrew Roibal and Abdulkadir Hassen Department of Mathematics Rowan University Glassboro, NJ 08028 I. Introduction In this article we will be studying triangles whose

### 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.

### CS103X: Discrete Structures Homework Assignment 2: Solutions

CS103X: Discrete Structures Homework Assignment 2: Solutions Due February 1, 2008 Exercise 1 (10 Points). Prove or give a counterexample for the following: Use the Fundamental Theorem of Arithmetic to

### MATH 361: NUMBER THEORY FIRST LECTURE

MATH 361: NUMBER THEORY FIRST LECTURE 1. Introduction As a provisional definition, view number theory as the study of the properties of the positive integers, Z + = {1, 2, 3, }. Of particular interest,

### 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

### 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

### MATH 10034 Fundamental Mathematics IV

MATH 0034 Fundamental Mathematics IV http://www.math.kent.edu/ebooks/0034/funmath4.pdf Department of Mathematical Sciences Kent State University January 2, 2009 ii Contents To the Instructor v Polynomials.

### 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

### Problem Set 7 - Fall 2008 Due Tuesday, Oct. 28 at 1:00

18.781 Problem Set 7 - Fall 2008 Due Tuesday, Oct. 28 at 1:00 Throughout this assignment, f(x) always denotes a polynomial with integer coefficients. 1. (a) Show that e 32 (3) = 8, and write down a list

### Pythagorean Triples, Complex Numbers, Abelian Groups and Prime Numbers

Pythagorean Triples, Complex Numbers, Abelian Groups and Prime Numbers Amnon Yekutieli Department of Mathematics Ben Gurion University email: amyekut@math.bgu.ac.il Notes available at http://www.math.bgu.ac.il/~amyekut/lectures

### Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 5

CS 70 Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 5 Modular Arithmetic One way to think of modular arithmetic is that it limits numbers to a predefined range {0,1,...,N

### 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.

### Number Theory Homework.

Number Theory Homework. 1. Pythagorean triples and rational points on quadratics and cubics. 1.1. Pythagorean triples. Recall the Pythagorean theorem which is that in a right triangle with legs of length

### NUMBER THEORY AMIN WITNO

NUMBER THEORY AMIN WITNO ii Number Theory Amin Witno Department of Basic Sciences Philadelphia University JORDAN 19392 Originally written for Math 313 students at Philadelphia University in Jordan, this

### STUDY GUIDE FOR SOME BASIC INTERMEDIATE ALGEBRA SKILLS

STUDY GUIDE FOR SOME BASIC INTERMEDIATE ALGEBRA SKILLS The intermediate algebra skills illustrated here will be used extensively and regularly throughout the semester Thus, mastering these skills is an

### 8 Divisibility and prime numbers

8 Divisibility and prime numbers 8.1 Divisibility In this short section we extend the concept of a multiple from the natural numbers to the integers. We also summarize several other terms that express

### It is time to prove some theorems. There are various strategies for doing

CHAPTER 4 Direct Proof It is time to prove some theorems. There are various strategies for doing this; we now examine the most straightforward approach, a technique called direct proof. As we begin, it

### 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

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

Chapter 1 LINEAR EQUATIONS 1.1 Introduction to linear equations A linear equation in n unknowns x 1, x,, x n is an equation of the form a 1 x 1 + a x + + a n x n = b, where a 1, a,..., a n, b are given

### The Equation x 2 + y 2 = z 2

The Equation x 2 + y 2 = z 2 The equation x 2 + y 2 = z 2 is associated with the Pythagorean theorem: In a right triangle the sum of the squares on the sides is equal to the square on the hypotenuse. We

### Vocabulary Words and Definitions for Algebra

Name: Period: Vocabulary Words and s for Algebra Absolute Value Additive Inverse Algebraic Expression Ascending Order Associative Property Axis of Symmetry Base Binomial Coefficient Combine Like Terms

### 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

### Chapter 1 Basic Number Concepts

Draft of September 2014 Chapter 1 Basic Number Concepts 1.1. Introduction No problems in this section. 1.2. Factors and Multiples 1. Determine whether the following numbers are divisible by 3, 9, and 11:

### Chapter Three. Functions. In this section, we study what is undoubtedly the most fundamental type of relation used in mathematics.

Chapter Three Functions 3.1 INTRODUCTION In this section, we study what is undoubtedly the most fundamental type of relation used in mathematics. Definition 3.1: Given sets X and Y, a function from X to

### 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

### Students in their first advanced mathematics classes are often surprised

CHAPTER 8 Proofs Involving Sets Students in their first advanced mathematics classes are often surprised by the extensive role that sets play and by the fact that most of the proofs they encounter are

### Chapter Two. Number Theory

Chapter Two Number Theory 2.1 INTRODUCTION Number theory is that area of mathematics dealing with the properties of the integers under the ordinary operations of addition, subtraction, multiplication and

### CHAPTER 5: MODULAR ARITHMETIC

CHAPTER 5: MODULAR ARITHMETIC LECTURE NOTES FOR MATH 378 (CSUSM, SPRING 2009). WAYNE AITKEN 1. Introduction In this chapter we will consider congruence modulo m, and explore the associated arithmetic called

### Reading 7 : Program Correctness

CS/Math 240: Introduction to Discrete Mathematics Fall 2015 Instructors: Beck Hasti, Gautam Prakriya Reading 7 : Program Correctness 7.1 Program Correctness Showing that a program is correct means that

### INTRODUCTION TO PROOFS: HOMEWORK SOLUTIONS

INTRODUCTION TO PROOFS: HOMEWORK SOLUTIONS STEVEN HEILMAN Contents 1. Homework 1 1 2. Homework 2 6 3. Homework 3 10 4. Homework 4 16 5. Homework 5 19 6. Homework 6 21 7. Homework 7 25 8. Homework 8 28

### Multiplicity. Chapter 6

Chapter 6 Multiplicity The fundamental theorem of algebra says that any polynomial of degree n 0 has exactly n roots in the complex numbers if we count with multiplicity. The zeros of a polynomial are

### Theorem (The division theorem) Suppose that a and b are integers with b > 0. There exist unique integers q and r so that. a = bq + r and 0 r < b.

Theorem (The division theorem) Suppose that a and b are integers with b > 0. There exist unique integers q and r so that a = bq + r and 0 r < b. We re dividing a by b: q is the quotient and r is the remainder,

### CHAPTER SIX IRREDUCIBILITY AND FACTORIZATION 1. BASIC DIVISIBILITY THEORY

January 10, 2010 CHAPTER SIX IRREDUCIBILITY AND FACTORIZATION 1. BASIC DIVISIBILITY THEORY The set of polynomials over a field F is a ring, whose structure shares with the ring of integers many characteristics.

### We now explore a third method of proof: proof by contradiction.

CHAPTER 6 Proof by Contradiction We now explore a third method of proof: proof by contradiction. This method is not limited to proving just conditional statements it can be used to prove any kind of statement

### 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

### Unique Factorization

Unique Factorization Waffle Mathcamp 2010 Throughout these notes, all rings will be assumed to be commutative. 1 Factorization in domains: definitions and examples In this class, we will study the phenomenon

### ON THE FIBONACCI NUMBERS

ON THE FIBONACCI NUMBERS Prepared by Kei Nakamura The Fibonacci numbers are terms of the sequence defined in a quite simple recursive fashion. However, despite its simplicity, they have some curious properties

### PERIMETERS OF PRIMITIVE PYTHAGOREAN TRIANGLES. 1. Introduction

PERIMETERS OF PRIMITIVE PYTHAGOREAN TRIANGLES LINDSEY WITCOSKY ADVISOR: DR. RUSS GORDON Abstract. This paper examines two methods of determining whether a positive integer can correspond to the semiperimeter

### Algebra 1 Chapter 3 Vocabulary. equivalent - Equations with the same solutions as the original equation are called.

Chapter 3 Vocabulary equivalent - Equations with the same solutions as the original equation are called. formula - An algebraic equation that relates two or more real-life quantities. unit rate - A rate

### MATH 65 NOTEBOOK CERTIFICATIONS

MATH 65 NOTEBOOK CERTIFICATIONS Review Material from Math 60 2.5 4.3 4.4a Chapter #8: Systems of Linear Equations 8.1 8.2 8.3 Chapter #5: Exponents and Polynomials 5.1 5.2a 5.2b 5.3 5.4 5.5 5.6a 5.7a 1

### 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

### PUTNAM TRAINING POLYNOMIALS. Exercises 1. Find a polynomial with integral coefficients whose zeros include 2 + 5.

PUTNAM TRAINING POLYNOMIALS (Last updated: November 17, 2015) Remark. This is a list of exercises on polynomials. Miguel A. Lerma Exercises 1. Find a polynomial with integral coefficients whose zeros include

### 3 Structure of Modular Multiplication

3 Structure of Modular Multiplication Unlike addition, multiplication in Z M is fairly strange. There may not always be an inverse, you can multiply two non-zero numbers together and get zero, and in general

### 1. R In this and the next section we are going to study the properties of sequences of real numbers.

+a 1. R In this and the next section we are going to study the properties of sequences of real numbers. Definition 1.1. (Sequence) A sequence is a function with domain N. Example 1.2. A sequence of real

### MAT2400 Analysis I. A brief introduction to proofs, sets, and functions

MAT2400 Analysis I A brief introduction to proofs, sets, and functions In Analysis I there is a lot of manipulations with sets and functions. It is probably also the first course where you have to take

### Alex, I will take congruent numbers for one million dollars please

Alex, I will take congruent numbers for one million dollars please Jim L. Brown The Ohio State University Columbus, OH 4310 jimlb@math.ohio-state.edu One of the most alluring aspectives of number theory

### Winter Camp 2011 Polynomials Alexander Remorov. Polynomials. Alexander Remorov alexanderrem@gmail.com

Polynomials Alexander Remorov alexanderrem@gmail.com Warm-up Problem 1: Let f(x) be a quadratic polynomial. Prove that there exist quadratic polynomials g(x) and h(x) such that f(x)f(x + 1) = g(h(x)).

### Interpolating Polynomials Handout March 7, 2012

Interpolating Polynomials Handout March 7, 212 Again we work over our favorite field F (such as R, Q, C or F p ) We wish to find a polynomial y = f(x) passing through n specified data points (x 1,y 1 ),

### Solutions to Homework Set 3 (Solutions to Homework Problems from Chapter 2)

Solutions to Homework Set 3 (Solutions to Homework Problems from Chapter 2) Problems from 21 211 Prove that a b (mod n) if and only if a and b leave the same remainder when divided by n Proof Suppose a

### CLASS 3, GIVEN ON 9/27/2010, FOR MATH 25, FALL 2010

CLASS 3, GIVEN ON 9/27/2010, FOR MATH 25, FALL 2010 1. Greatest common divisor Suppose a, b are two integers. If another integer d satisfies d a, d b, we call d a common divisor of a, b. Notice that as

### Instructor: Bobby Kleinberg Lecture Notes, 5 May The Miller-Rabin Randomized Primality Test

Introduction to Algorithms (CS 482) Cornell University Instructor: Bobby Kleinberg Lecture Notes, 5 May 2010 The Miller-Rabin Randomized Primality Test 1 Introduction Primality testing is an important