Given two integers a, b with a 0. We say that a divides b, written

Size: px
Start display at page:

Download "Given two integers a, b with a 0. We say that a divides b, written"

Transcription

1 1 Divisibility Given two integers a, b with a 0. We say that a divides b, written a b, if there exists an integer q such that b = qa. When this is true, we say that a is a factor (or divisor) of b, and b is a multiple of a. If a is not a factor of b, we write a b. Obviously, any integer n has divisors ±1 and ±n, called the trivial divisors of n. If a is a divisor of n, so is a. Positive divisors of n other than the trivial divisors are called nontrivial divisors. Note that every integer is a divisor of 0. A positive integer p ( 1) is called a prime if it has no nontrivial divisors, i.e., its positive divisors are only the trivial divisors 1 and p. A positive integer is called composite if it is not a prime. The first few primes are listed as follows: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59. Proposition 1.1. Every composite number n has a prime factor p n. 1

2 Proof. Since n is composite, there are primes p and q such that n = pqk, where k P. Then, either p q or q p. Assume p q. We have p 2 pqk = n. Thus p n. Example has the prime factor 2 6; 9 has the prime factor 3 = 9; 35 has the prime factor Is 143 a prime? We find 143 < 12. For i = 2, 3, 5, 7, 11, check whether i divides 143. We find So 143 is a composite number. Is 157 a prime? Since 157 < 13 and for each i = 2, 3, 5, 7, 11, i is not a factor of 157, we see that 157 has no prime factor less or equal to 157. So 157 is not a composite, i.e., 157 is a prime. Proposition 1.2. Let a, b, c be nonzero integers. (a) If a b and b a, then a = ±b. (b) If a b and b c, then a c. (c) If a b and a c, then a (bx + cy) for x, y Z. Proof. (a) Let b = q 1 a and a = q 2 b for some integers q 1 and q 2. Then b = q 1 q 2 b. 2

3 Dividing both sides by b, we have q 1 q 2 = 1. It follows that q 1 = q 2 = ±1. Thus b = ±a. (b) Let b = q 1 a and c = q 2 b for some integers q 1 and q 2. Then c = q 1 q 2 a, that is, a c. (c) Let b = q 1 a and c = q 2 a for q 1, q 2 Z. Then for x, y Z, bx + cy = (q 1 x + q 2 y)a, that is, a (bx + cy). Theorem 1.3. There are infinitely many prime numbers. Proof. Suppose there are finitely many primes, say, Then the integer p 1, p 2,..., p k. a = p 1 p 2 p k + 1 is not divisible by any of the primes p 1, p 2,..., p k because the remainders of a dividing by p 1, p 2,..., p k respectively are always 1. This means that a has no prime factors. By definition of primes, the integer a must be a prime, and this prime is larger than all primes p 1, p 2,..., p k, a contradiction. Theorem 1.4 (Division Algorithm). For any integers a and b, where a > 0, there are unique integers q and r such that b = qa + r, 0 r < a. 3

4 Proof. Consider the set S = {b ta 0 t Z}. Obviously, S is nonempty and is bounded below. Then S has the unique minimum integer r, i.e., there is an unique integer q such that b qa = r. We claim that r < a. Suppose r a, then b (q + 1)a = r a 0 shows that r a is an element of S. This is contrary to that r is the minimum element of S. Example 1.2. For integers a = 21 and b = 358, we have 368 = , q = 18, r = Greatest Common Divisor For integers a and b, not simultaneously 0, a common divisor of a and b is an integer c such that c a and c b. Clearly, there are finitely many common divisors for a and b; the very greatest one is called the greatest common divisor of a and b, and is denoted by gcd(a, b). For convenience, we assume gcd(0, 0) = 0. Two integers a and b are called coprime (or relatively prime) if gcd(a, b) = 1. Theorem 2.1. Let d be the greatest common divisor of integers a and b, i.e., d = gcd(a, b). Then there exist integers x and y such that d = ax + by. Proof. It is obviously true when a = b = 0. Assume that a and b are not simultaneously zero. We consider the set S = {au + bv u, v Z} 4

5 and the set S + = S P. For u = a, v = b, we have au+bv = a 2 +b 2 > 0. Obviously, S is nonempty and bounded below. Let s be the smallest integer in S +. Write s = au 0 + bv 0 for some u 0, v 0 Z. We claim that d = s. Clearly, d divides every integer in S because d a and d b. In particular, d s. We then have d s. To show s d, we claim that s divides every integer in S. In fact, for any au + bv S with u, v Z, let au + bv = qs + r, 0 r < s. Then r = a(u qv 0 ) + b(v qu 0 ) S. If r was positive, then r S + and s could not be the smallest integer in S +. So r = 0. Thus s (au + bv). In particular, taking (u, v) = (0, 1) and (u, v) = (1, 0), we see that s a and s b. So s is a positive common divisor of a and b. By definition of gcd, s d. Theorem 2.2. Let a, b, d P. Then d = gcd(a, b) if and only if (1) d a, d b; (2) If c a, c b, then c d. Proof. : By definition, gcd is a common divisor of a and b, so we have (1). By Theorem 2.1, there exist integers x, y such that d = ax + by. 5

6 If c a, c b, then c (ax + by), i.e., c d. : (1) indicates that d is a common divisor of a and b. Let c be positive common divisor c of a and b. We have c d by (2). Thus c d. So d is the greatest among all common divisors of a and b. Theorem 2.3. For integers a, b, q, and r, if then b = qa + r, gcd(a, b) = gcd(a, r). Proof. Let d 1 = gcd(a, b), d 2 = gcd(a, r). Since r = b qa, we have d 1 r. This means that d 1 is a common divisor of a and r. Thus d 1 d 2. Since b = qa + r, we have d 2 b. This means that d 2 is a common divisor of a and b. Hence, d 2 d 1. Therefore d 1 = d 2. The above proposition gives rise to a simple constructive method to calculate gcd by repeating the Division Algorithm. Example 2.1. Find gcd(297, 3627) = , 297 = , 63 = , 45 = , 18 = 2 9; gcd(297, 3627) = gcd(63, 297) = gcd(45, 63) = gcd(18, 45) = gcd(9, 18) = 9. 6

7 The procedure to calculate gcd(297, 3627) applies to any pair of positive integers. Let a be a positive integer and b a nonnegative integer. Repeating the Division Algorithm will produce finite sequences of nonnegative integers q i and r i such that b = q 0 a + r 0, 0 r 0 < a, a = q 1 r 0 + r 1, 0 r 1 < r 0, r 0 = q 2 r 1 + r 2, 0 r 2 < r 1, r 1 = q 3 r 2 + r 3,. 0 r 3 < r 2, r k 2 = q k r k 1 + r k, 0 r k < r k 1, r k 1 = q k+1 r k + r k+1, r k+1 = 0. Notice that the sequence {r i } is strictly decreasing; it ends eventually to 0 at some step, say, r k+1 = 0 for the first time. Then r i 0 for all 0 i k. Reverse the sequence {r i } k i=0 and make substitutions as follows: gcd(a, b) = r k, r k = r k 2 q k r k 1, r k 1 = r k 3 q k 1 r k 2,. r 1 = a q 1 r 0, r 0 = b q 0 a. We see that gcd(a, b) can be expressed as an integral linear combination of a and b. This procedure is known as the Euclidean Algorithm. 7

8 Example 2.2. The greatest common divisor of 297 and 3627, written as an integral linear combination of 297 and 3627, can be obtained as follows: gcd(297, 3627) = = 45 2(63 45) = = 3( ) 2 63 = = ( ) = Proposition 2.4. Let a, b, c Z. If a bc, gcd(a, b) = 1, then a c. Proof. By the Euclidean Algorithm, there are integers x, y Z such that ax + by = 1. Then c = 1 c = (ax + by)c = acx + bcy. Since a ac and a bc, thus a c. Theorem 2.5 (Unique Factorization). Every integer a 2 can be uniquely factorized into the form a = p e 1 1 pe 2 2 pe m m, where p 1, p 2,..., p m are distinct primes, e 1, e 2,..., e m are positive integers, and p 1 < p 2 < < p s. Proof. If a has only the trivial divisors, then a itself is a prime, and it obviously has unique factorization. If a has some nontrivial divisors, then a = bc 8

9 for some positive integers b and c other than 1 and a. Obviously, b < a and c < a. By induction, the positive integers b and c have factorizations into primes. Consequently, a has a factorization into primes. Let a = q f 1 1 qf 2 2 af n n be another factorization, where q 1, q 2,..., q n are distinct primes, f 1, f 2,..., f n are positive integers, and q 1 < q 2 < < q n. We claim that m = n, p i = q i, e i = f i for all 1 i m. Suppose p 1 < q 1. Then p 1 is distinct from the primes q 1, q 2,..., q n. It is clear that gcd(p 1, q i ) = 1, and so gcd(p 1, q f i i ) = 1 for all 1 i n. Note that p 1 q f 1 1 qf 2 2 af n n. Since gcd(p 1, q f 1 1 ) = 1, by Proposition 2.4, we have p 1 q f 2 2 af n n. Since gcd(p 1, q f 2 2 ) = 1, again by Proposition 2.4, we have p 1 q f 2 3 af n n. Repeating the argument, we finally obtain that p 1 q f n n, which is contrary to gcd(p 1, q f n n ) = 1. We thus conclude that p 1 q 1. Similarly, p 1 q 1. Hence p 1 = q 1. Next we claim that e 1 = f 1. Suppose e 1 < f 1. Then p e 2 2 pe m m = p f 1 e 1 1 q f 2 2 qf n n. This implies that p 1 p e 2 2 pe m m. If m = 1, it would imply that p 1 divides 1, which is impossible because p 1 is a prime. If m 2, note that gcd(p 1, p i ) = 1 and so gcd(p 1, p e i i ) = 1 for all 2 i m; by the same token of applying Proposition 2.4 repeatedly, we have p 1 p e m m, which is contrary to gcd(p 1, p e m m ) = 9

10 1. This means that we must have e 1 f 1. Similarly, e 1 f 1. Hence e 1 = f 1. Now we have obtained p e 2 2 pe m m = q f 2 2 qf n n. If m < n, then by induction we have p 1 = q 1,..., p m = q m and e 1 = f 1,..., e m = f m. Thus 1 = q f m+1 m+1 qf n n ; this is impossible because q m+1,..., q n are primes. So m n. Similarly, m n. Hence we have m = n. By induction on m = n, we obtain that e 2 = f 2,..., e m = f m. 3 Least Common Multiple For two integers a and b, a positive integer m is called a common multiple of a and b if a m and b m. The smallest integer among the common multiples of a and b is called the least common multiple of a and b, and is denoted by lcm(a, b). Proposition 3.1. For any nonnegative integers a and b, ab = gcd(a, b) lcm(a, b). Proof. Let a = p e 1 1 pe 2 2 pe n n and b = p f 1 1 pf 2 2 pf n n, where p 1 < p 2 < < p n, e i and f i are nonnegative integers, 1 i n. Then by the Unique Factorization Theorem, gcd(a, b) = p g 1 1 pg 2 2 pg n n, lcm(a, b) = p h 1 1 ph 2 2 ph n n, 10

11 where g i = min(e i, f i ) and h i = max(e i, f i ) for all 1 i n. It is clear that ab = p g 1+h 1 1 p g 2+h 2 2 p g n+h n n, and g i + h i = e i + f i for all 1 i n. Proposition 3.2. An integer m is the least common multiple of integers a and b if and only if (a) a m, b m; (b) if a n, b n, then m n. Proof. By the Unique Factorization Theorem. Example 3.1. Find all integer solutions for the linear equation 25x + 65y = 10. Solution: Applying the Division Algorithm, 65 = , 25 = , 15 = Applying the Euclidean Algorithm, gcd(25, 65) = = 15 (25 15) = = ( ) =

12 Thus the integer solutions are given by { x = 2( 5) + 13k = k y = 2 2 5k = 4 5k, k Z. Exercise 1. Let S c be the solution set of the linear Diophantine equation ax + by = c, i.e., S c = {(x, y) Z 2 ax + by = c}. Show that, if S c, then there is a bijection f : S 0 S c, where S 0 = {(x, y) Z 2 ax + by = 0}. Let (x, y) = (u, v) be a particular solution for ax + by = c. Then f can be given by f(x, y) = (u + x, v + y), (x, y) S 0. The function f has the inverse f 1 : S c S 0, given by f 1 (x, y) = (x u, y v), (x, y) S c. Theorem 3.3. Let a, b Z, not simultaneously zero, d = gcd(a, b). Then the linear Diophantine equation ax + by = c has an integer solution if and only if d c. Moreover, if (x, y) = (u, v) is a particular solution, then all solutions are given by { x = u + bk gcd(a,b) y = v ak gcd(a,b), k Z. 12

13 Proof. It is clear that (x, y) = (u, v) + 1 d (kb, ka) are integer solutions. We only need to show that all integer solutions for the equation ax + by = 0. Write the equation as ax = by. We have b ax and a by. This means that ax and by are both common multiples of a and b. Thus lcm(a, b) is a common divisor of ax and by. Let ax = klcm(a, b) for some k Z. Then { ax = k lcm(a, b) k Z. by = k lcm(a, b) Thus { x = k lcm(a,b) bk a = gcd(a,b) y = k lcm(a,b) b = ak gcd(a,b). 13

14 Example x + 668y = 888. Solution. Find gcd(168, 668) = 4 by the Division Algorithm By the Euclidean Algorithm, Dividing = = = = = 168 ( ) = ( 1) 668. = 222, we obtain a special solution (x 0, y 0 ) = 222(4, 1) = (888, 222) Solve 168x + 668y = 0. Dividing both sides by gcd(168, 668), 42x + 167y = 0 i.e. 42x = 167y. The general solutions for 168x + 668y = 0 are given by (x, y) = k(167, 42), k Z. The general solutions for 168x + 668y = 888 are given by (x, y) = (888, 222) + k(167, 42), k Z. { x = k i.e. y = k, k Z. 14

15 4 Modulo Integers Let n be a fixed positive integer. Two integers a and b are said to be congruent modulo n, written a b (mod n) and read a equals b modulo n, if n (b a). Note. For all k, l Z, a b (mod n) a + kn b + ln (mod n). Let a denote set of solutions of the equation x a (mod n); i.e., a = {a + kn k Z}. We call a the residue class of a modulo n. There are n residue classes of modulo n, i.e., 0, 1, 2,..., n 1. Example (mod 2), (mod 8), 8 10 (mod 9), 3 5 (mod 3), (mod 8), 8 18 (mod 9). Proposition 4.1. Let n be a fixed positive integer. If a 1 b 1 (mod n), a 2 b 2 (mod n), then a 1 + a 2 b 1 + b 2 (mod n), a 1 a 2 b 1 b 2 (mod n), 15

16 a 1 a 2 b 1 b 2 (mod n). If a b (mod n), d n, then a b (mod d). Proof. Since a 1 b 1 (mod n), a 2 b 2 (mod n), there are integers k 1, k 2 such that Then Thus b 1 a 1 = k 1 n, b 2 a 2 = k 2 n. (b 1 + b 2 ) (a 1 + a 2 ) = (k 1 + k 2 )n; (b 2 b 1 ) (a 1 a 2 ) = (k 1 k 2 )n; b 1 b 2 a 1 a 2 = b 1 b 2 b 1 a 2 + b 1 a 2 a 1 a 2 = b 1 (b 2 a 2 ) + (b 1 a 1 )a 2 = bk n + kna = (b 1 k 2 + a 2 k 1 )n. a 1 ± a 2 b 1 ± b 2 (mod n); a 1 a 2 b 1 b 2 (mod n). If d n, then n = dl for some l Z. Thus Therefore, a b (mod d). b a = kn = (kl)d. 16

17 Example (mod 8) = (mod 8); 6 14 (mod 8) ( mod 8 ) ; 2 2 However, In fact, (mod 8) 3 7 (mod 8). 3 7 (mod 8). Theorem 4.2. Let c a, c b, and c n. Then a b (mod n) a c b ( mod n ). c c Proof. Write a = ca 1, b = cb 1, n = cn 1. Then a b (mod n) b a = kn for an integer k c(b 1 a 1 ) = kcn 1 b/c a/c = b 1 a 1 = kn 1 a/c b/c (mod n/c). Theorem 4.3. a b (mod m), a b (mod n), a b (mod lcm(m, n)). In particular, gcd(m, n) = 1 a b (mod mn). 17

18 Proof. Write l = lcm(m, n). If a b (mod m), a b (mod n), then m (b a) and n (b a). Thus l (b a), i.e., a b (mod l). Conversely, if a b (mod l), then l (b a). Since m l, n l, we have m (b a), n (b a). Thus a b (mod m), a b (mod n). In particular, if gcd(m, n) = 1, then l = mn. Definition 4.4. An integer a is called invertible modulo n if there exists an integer b such that ab 1 (mod n). If so, b is called the inverse of a modulo n. Proposition 4.5. An integer a is invertible modulo n if and only if gcd(a, n) = 1 Proof. : If a is invertible modulo n, say its inverse is b, then exists an integer k such that ab = 1 + kn, i.e., 1 = ab kn. Thus gcd(a, n) divides 1. Hence gcd(a, n) = 1. : By the Euclidean Algorithm, there exist integers u, v such that 1 = au + nv. Then au 1 (mod n). Example 4.3. The invertible integers modulo 12 are the following numbers 1, 5, 7, 11. Numbers 0, 2, 3, 4, 6, 8, 9, 10 are not invertible modulo

19 Theorem 4.6. Let gcd(c, n) = 1. Then a b (mod n) ca cb (mod n) Proof. By the Euclidean Algorithm, there are integers u, v such that 1 = cu + nv. Then 1 cu (mod n). : c c (mod n), a b (mod n) ca cb (mod n). : ca cb (mod n) and u u (mod n) imply that uca ucb (mod n). Applying 1 cu (mod n), we have a b (mod n). Example 4.4. Find the inverses of 2, 4, 7, 8, 11, 13 modulo 15 respectively. Solution (mod 15), (mod 15). Write 15 = Then = 1. Thus (mod 15). Since 2 13 (mod 15), then (mod 15). Similarly, 15 = , 11 = , 4 = 3 + 1, then 1 = 4 3 = 4 (11 2 4) = = 3 (15 11) 11 = Thus the inverse of 11 is 4 11 (mod 15), i.e., (mod 15). Theorem 4.7. Let n P. The congruence equation ax b (mod n) has a solution if and only if gcd(a, n) divides b. 19

20 Proof. Let d = gcd(a, n). The congruence equation has a solution if and only if there exist integers x and k such that b = ax + kn. This is equivalent to d b. Exercise 2. Let S b be the set of solutions of the congruence equation ax b (mod n). If x = u is a particular solution of S b. Show that the function f : S 0 S b, defined by is a bijection. Note. For all k, l Z, f(x) = x + u, ax b (mod n) (a + kn)x b + ln (mod n). Example 4.5. Find all integers x for 9x 27 (mod 15). Solution. Find gcd(9, 15) = 3. Dividing both sides by 3, 3x 9 (mod 5) 3x 4 (mod 5). Since gcd(3, 5) = 1, the integer 3 is invertible and its inverse is 2. Multiplying 2 to both sides, 6x 8 (mod 5). Since 6 1 (mod 5), 8 3 (mod 5), then Thus x 3 (mod 5). x = 3 + 5k, k Z. 20

21 Example 4.6. Find all integers x such that 668x 888 (mod 168). Solution. Find gcd(668, 168) = 4, then 167x 222 (mod 42). By the Division Algorithm, 167 = ; 42 = By the Euclidean Algorithm, 1 = = 42 ( ) = Then (mod 42); the inverse of 167 is 1. Multiplying 1 to both sides, we have x 222 (mod 42). Thus x 12 (mod 42) or x 30 (mod 42); i.e. x = k, k Z. Exercise 3. Let S be the solution set of the system { a1 x b 1 (mod n 1 ) a 2 x b 2 (mod n 2 ) Let S 0 be the solution set of the same system with (b 1 = b 2 = 0. If S has a particular solution x = u, then the function f : S 0 S, defined by is a bijection. f(x) = x + u, x S 0 Example 4.7. How to solve the system of modular equations { a1 x b 1 (mod n 1 ) (2) a 2 x b 2 (mod n 2 ) (1) 21

22 Solution. Apply the Division Algorithm to find d i = gcd(a i, n i ), i = 1, 2. Reduce the system (2) to the following by dividing both side by d i respectively. { a 1 x b 1 (mod n 1) a 2x b 2 (mod n (3) 2) where a i = a i/d i, b i = b i/d i, n i = n i/d i, and gcd(a i, n i) = 1, i = 1, 2. Apply the Euclidean Algorithm to find u i, v i such that a iu i + n iv i = 1. Then a i u i 1 (mod n i ), i = 1, 2. Thus (3) can be written as { x u1 b 1 (mod n 1) x u 2 b 2 (mod n (4) 2) Set c i = u i b i, m i = n i, i = 1, 2. We have { x c1 (mod m 1 ) x c 2 (mod m 2 ) Let x = c 1 + ym 1 = c 2 + zm 2 for y, z Z. Solve (y, z) for m 1 y m 2 z = c 2 c 1 to get a special solution (y, z) = (y 0, z 0 ). Hence x 0 = c 1 + m 1 y 0 = c 2 + m 2 z 0. Finally, set m = lcm(m 1, m 2 ); the system (2) becomes x x 0 (mod m). 22 (5)

23 Example 4.8. Find all integral solutions for { 12x 96 (mod 20) 20x 70 (mod 30) Solution. Applying the Division Algorithm to find gcd(12, 20) = 4, gcd(20, 30) = 10. Then { 3x 24 (mod 5) 2x 7 (mod 3) Applying the Euclidean Algorithm to find gcd(3, 5) = 1 = so that (mod 5); and to find gcd(2, 3) = 1 = so that 1 2 = 1 (mod 3). (Equivalently, (mod 3).) Then, 2 is the inverse of 3 modulo 5; 1 or 2 is the inverse of 2 modulo 3. Thus { 2 3x 2 24 (mod 5) 1 2x 1 7 (mod 3) { x 48 (mod 5) x 7 (mod 3) { x 3 (mod 5) x 2 (mod 3) 23

24 Set x = 3 + 5y = 2 + 3z, where y, z Z, i.e., 5y 3z = 1. We find a special solution (y 0, z 0 ) = (1, 2); so x 0 = 8. Thus the original system is equivalent to and all solutions are given by x 8 (mod 15) x = k, k Z. Example 4.9. Find all integer solutions for the system { x 486 (mod 186) x 386 (mod 286) Solution. The system can be reduced to { x 114 (mod 186) x 100 (mod 286) Set x = y = z, i.e., 186y 286z = 14. Applying the Division Algorithm, 286 = , 186 = , 100 = , 86 =

25 Then gcd(186, 286) = 2. Applying the Euclidean Algorithm, 2 = = 86 6(100 86) = = 7( ) = = ( ) = Note that 14 2 = 7. So we get a special solution (y 0, z 0 ) = 7(20, 13) = ( 140, 91). Thus x 0 = y 0 = z 0 = Note that lcm(186, 286) = The general solutions for { x 0 (mod 186) x 0 (mod 286) are given by x 0 (mod lcm(168, 268)), i.e., x 0 (mod 26598). Hence x (mod 26598); i.e. x = k, k Z. Theorem 4.8 (Chinese Remainder Theorem). Let n 1, n 2,..., n k P. If gcd(n i, n j ) = 1 for all i j, then the system of congruence equations x b 1 (mod n 1 ) x b 2 (mod n 2 ). x b k (mod n k ). has a unique solution modulo n 1 n 2 n k. 25

26 Exercise 4. In the Chinese Remainder Theorem, if gcd(n i, n j ) = 1, is not satisfied, does the system have solutions? If yes, are the solutions unique modulo some integers? 26

27 5 Important Facts 1. Let a denote set of solutions of the equation x a (mod n); i.e., a = {a + kn k Z}. We call a the residue class of a modulo n. There are n residue classes of modulo n, i.e., 0, 1, 2,..., n If c a, c b, c n, then a b (mod n) a c b c ( mod n c). 3. An integer a is called invertible modulo n if there exists an integer b such that ab 1 (mod n). If so, b is called the inverse of a modulo n. 4. An integer a is invertible modulo n gcd(a, n) = If gcd(c, n) = 1, then a b (mod n) ca cb (mod n). 6. Equation ax b (mod n) has solution gcd(a, n) b. 7. For all k, l Z, ax b (mod n) (a + kn)x b + ln (mod n). 27

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

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

More information

8 Primes and Modular Arithmetic

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.

More information

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

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

More information

Homework until Test #2

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

More information

8 Divisibility and prime numbers

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

More information

I. GROUPS: BASIC DEFINITIONS AND EXAMPLES

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

More information

MATH 289 PROBLEM SET 4: NUMBER THEORY

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

More information

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

More information

Today s Topics. Primes & Greatest Common Divisors

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

More information

Overview of Number Theory Basics. Divisibility

Overview of Number Theory Basics. Divisibility Overview of Number Theory Basics Murat Kantarcioglu Based on Prof. Ninghui Li s Slides Divisibility Definition Given integers a and b, b 0, b divides a (denoted b a) if integer c, s.t. a = cb. b is called

More information

CS 103X: Discrete Structures Homework Assignment 3 Solutions

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

More information

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

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,

More information

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

More information

Systems of Linear Equations

Systems of Linear Equations Systems of Linear Equations Beifang Chen Systems of linear equations Linear systems A linear equation in variables x, x,, x n is an equation of the form a x + a x + + a n x n = b, where a, a,, a n and

More information

Handout NUMBER THEORY

Handout NUMBER THEORY Handout of NUMBER THEORY by Kus Prihantoso Krisnawan MATHEMATICS DEPARTMENT FACULTY OF MATHEMATICS AND NATURAL SCIENCES YOGYAKARTA STATE UNIVERSITY 2012 Contents Contents i 1 Some Preliminary Considerations

More information

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

More information

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

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

More information

Section 4.2: The Division Algorithm and Greatest Common Divisors

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

More information

Discrete Mathematics, Chapter 4: Number Theory and Cryptography

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

More information

Lectures on Number Theory. Lars-Åke Lindahl

Lectures on Number Theory. Lars-Åke Lindahl Lectures on Number Theory Lars-Åke Lindahl 2002 Contents 1 Divisibility 1 2 Prime Numbers 7 3 The Linear Diophantine Equation ax+by=c 12 4 Congruences 15 5 Linear Congruences 19 6 The Chinese Remainder

More information

SUM OF TWO SQUARES JAHNAVI BHASKAR

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

More information

GREATEST COMMON DIVISOR

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

More information

DIVISIBILITY AND GREATEST COMMON DIVISORS

DIVISIBILITY AND GREATEST COMMON DIVISORS DIVISIBILITY AND GREATEST COMMON DIVISORS KEITH CONRAD 1 Introduction We will begin with a review of divisibility among integers, mostly to set some notation and to indicate its properties Then we will

More information

Applications of Fermat s Little Theorem and Congruences

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

More information

Intermediate Math Circles March 7, 2012 Linear Diophantine Equations II

Intermediate Math Circles March 7, 2012 Linear Diophantine Equations II Intermediate Math Circles March 7, 2012 Linear Diophantine Equations II Last week: How to find one solution to a linear Diophantine equation This week: How to find all solutions to a linear Diophantine

More information

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

= 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

More information

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

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

More information

Math 319 Problem Set #3 Solution 21 February 2002

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

More information

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

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

More information

17 Greatest Common Factors and Least Common Multiples

17 Greatest Common Factors and Least Common Multiples 17 Greatest Common Factors and Least Common Multiples Consider the following concrete problem: An architect is designing an elegant display room for art museum. One wall is to be covered with large square

More information

Lecture 13 - Basic Number Theory.

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

More information

Quotient Rings and Field Extensions

Quotient Rings and Field Extensions Chapter 5 Quotient Rings and Field Extensions In this chapter we describe a method for producing field extension of a given field. If F is a field, then a field extension is a field K that contains F.

More information

Continued Fractions and the Euclidean Algorithm

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

More information

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

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

More information

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.

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

More information

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

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

More information

Chapter 3. if 2 a i then location: = i. Page 40

Chapter 3. if 2 a i then location: = i. Page 40 Chapter 3 1. Describe an algorithm that takes a list of n integers a 1,a 2,,a n and finds the number of integers each greater than five in the list. Ans: procedure greaterthanfive(a 1,,a n : integers)

More information

RSA and Primality Testing

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

More information

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

More information

Elementary Number Theory

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,

More information

Primality - Factorization

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.

More information

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

More information

5-1 NUMBER THEORY: DIVISIBILITY; PRIME & COMPOSITE NUMBERS 210 f8

5-1 NUMBER THEORY: DIVISIBILITY; PRIME & COMPOSITE NUMBERS 210 f8 5-1 NUMBER THEORY: DIVISIBILITY; PRIME & COMPOSITE NUMBERS 210 f8 Note: Integers are the w hole numbers and their negatives (additive inverses). While our text discusses only whole numbers, all these ideas

More information

minimal polyonomial Example

minimal polyonomial Example Minimal Polynomials Definition Let α be an element in GF(p e ). We call the monic polynomial of smallest degree which has coefficients in GF(p) and α as a root, the minimal polyonomial of α. Example: We

More information

MATH10040 Chapter 2: Prime and relatively prime numbers

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

More information

PROBLEM SET 6: POLYNOMIALS

PROBLEM SET 6: POLYNOMIALS PROBLEM SET 6: POLYNOMIALS 1. introduction In this problem set we will consider polynomials with coefficients in K, where K is the real numbers R, the complex numbers C, the rational numbers Q or any other

More information

RESULTANT AND DISCRIMINANT OF POLYNOMIALS

RESULTANT AND DISCRIMINANT OF POLYNOMIALS RESULTANT AND DISCRIMINANT OF POLYNOMIALS SVANTE JANSON Abstract. This is a collection of classical results about resultants and discriminants for polynomials, compiled mainly for my own use. All results

More information

ABSTRACT ALGEBRA: A STUDY GUIDE FOR BEGINNERS

ABSTRACT ALGEBRA: A STUDY GUIDE FOR BEGINNERS ABSTRACT ALGEBRA: A STUDY GUIDE FOR BEGINNERS John A. Beachy Northern Illinois University 2014 ii J.A.Beachy This is a supplement to Abstract Algebra, Third Edition by John A. Beachy and William D. Blair

More information

Factoring Algorithms

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

More information

Public Key Cryptography: RSA and Lots of Number Theory

Public Key Cryptography: RSA and Lots of Number Theory Public Key Cryptography: RSA and Lots of Number Theory Public vs. Private-Key Cryptography We have just discussed traditional symmetric cryptography: Uses a single key shared between sender and receiver

More information

6.2 Permutations continued

6.2 Permutations continued 6.2 Permutations continued Theorem A permutation on a finite set A is either a cycle or can be expressed as a product (composition of disjoint cycles. Proof is by (strong induction on the number, r, of

More information

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

More information

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

Chapter 4, Arithmetic in F [x] Polynomial arithmetic and the division algorithm. Chapter 4, Arithmetic in F [x] Polynomial arithmetic and the division algorithm. We begin by defining the ring of polynomials with coefficients in a ring R. After some preliminary results, we specialize

More information

1. The integers. 1. Unique factorization

1. The integers. 1. Unique factorization 1. The integers 1.1 Unique factorization 1.2 Irrationalities 1.3 Z/m, the integers mod m 1.4 Fermat s little theorem 1.5 Sun-Ze s theorem 1.6 Worked examples 1. Unique factorization Let Z denote the integers.

More information

An Introductory Course in Elementary Number Theory. Wissam Raji

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

More information

The Euclidean Algorithm

The Euclidean Algorithm The Euclidean Algorithm A METHOD FOR FINDING THE GREATEST COMMON DIVISOR FOR TWO LARGE NUMBERS To be successful using this method you have got to know how to divide. If this is something that you have

More information

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

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

More information

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

More information

Unique Factorization

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

More information

HOMEWORK 5 SOLUTIONS. n!f n (1) lim. ln x n! + xn x. 1 = G n 1 (x). (2) k + 1 n. (n 1)!

HOMEWORK 5 SOLUTIONS. n!f n (1) lim. ln x n! + xn x. 1 = G n 1 (x). (2) k + 1 n. (n 1)! Math 7 Fall 205 HOMEWORK 5 SOLUTIONS Problem. 2008 B2 Let F 0 x = ln x. For n 0 and x > 0, let F n+ x = 0 F ntdt. Evaluate n!f n lim n ln n. By directly computing F n x for small n s, we obtain the following

More information

p e i 1 [p e i i ) = i=1

p e i 1 [p e i i ) = i=1 Homework 1 Solutions - Sri Raga Velagapudi Algebra Section 1. Show that if n Z then for every integer a with gcd(a, n) = 1, there exists a unique x mod n such that ax = 1 mod n. By the definition of gcd,

More information

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

More information

11 Ideals. 11.1 Revisiting Z

11 Ideals. 11.1 Revisiting Z 11 Ideals The presentation here is somewhat different than the text. In particular, the sections do not match up. We have seen issues with the failure of unique factorization already, e.g., Z[ 5] = O Q(

More information

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

How To Know If A Domain Is Unique In An Octempo (Euclidean) Or Not (Ecl) Subsets of Euclidean domains possessing a unique division algorithm Andrew D. Lewis 2009/03/16 Abstract Subsets of a Euclidean domain are characterised with the following objectives: (1) ensuring uniqueness

More information

FACTORING POLYNOMIALS IN THE RING OF FORMAL POWER SERIES OVER Z

FACTORING POLYNOMIALS IN THE RING OF FORMAL POWER SERIES OVER Z FACTORING POLYNOMIALS IN THE RING OF FORMAL POWER SERIES OVER Z DANIEL BIRMAJER, JUAN B GIL, AND MICHAEL WEINER Abstract We consider polynomials with integer coefficients and discuss their factorization

More information

9. POLYNOMIALS. Example 1: The expression a(x) = x 3 4x 2 + 7x 11 is a polynomial in x. The coefficients of a(x) are the numbers 1, 4, 7, 11.

9. POLYNOMIALS. Example 1: The expression a(x) = x 3 4x 2 + 7x 11 is a polynomial in x. The coefficients of a(x) are the numbers 1, 4, 7, 11. 9. POLYNOMIALS 9.1. Definition of a Polynomial A polynomial is an expression of the form: a(x) = a n x n + a n-1 x n-1 +... + a 1 x + a 0. The symbol x is called an indeterminate and simply plays the role

More information

CHAPTER SIX IRREDUCIBILITY AND FACTORIZATION 1. BASIC DIVISIBILITY THEORY

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.

More information

V55.0106 Quantitative Reasoning: Computers, Number Theory and Cryptography

V55.0106 Quantitative Reasoning: Computers, Number Theory and Cryptography V55.0106 Quantitative Reasoning: Computers, Number Theory and Cryptography 3 Congruence Congruences are an important and useful tool for the study of divisibility. As we shall see, they are also critical

More information

Integer Factorization using the Quadratic Sieve

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

More information

Matrix Representations of Linear Transformations and Changes of Coordinates

Matrix Representations of Linear Transformations and Changes of Coordinates Matrix Representations of Linear Transformations and Changes of Coordinates 01 Subspaces and Bases 011 Definitions A subspace V of R n is a subset of R n that contains the zero element and is closed under

More information

Test1. Due Friday, March 13, 2015.

Test1. Due Friday, March 13, 2015. 1 Abstract Algebra Professor M. Zuker Test1. Due Friday, March 13, 2015. 1. Euclidean algorithm and related. (a) Suppose that a and b are two positive integers and that gcd(a, b) = d. Find all solutions

More information

Introduction to Modern Algebra

Introduction to Modern Algebra Introduction to Modern Algebra David Joyce Clark University Version 0.0.6, 3 Oct 2008 1 1 Copyright (C) 2008. ii I dedicate this book to my friend and colleague Arthur Chou. Arthur encouraged me to write

More information

Computer and Network Security

Computer and Network Security MIT 6.857 Computer and Networ Security Class Notes 1 File: http://theory.lcs.mit.edu/ rivest/notes/notes.pdf Revision: December 2, 2002 Computer and Networ Security MIT 6.857 Class Notes by Ronald L. Rivest

More information

Settling a Question about Pythagorean Triples

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:

More information

MATH 537 (Number Theory) FALL 2016 TENTATIVE SYLLABUS

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:

More information

Factoring Polynomials

Factoring Polynomials Factoring Polynomials Sue Geller June 19, 2006 Factoring polynomials over the rational numbers, real numbers, and complex numbers has long been a standard topic of high school algebra. With the advent

More information

Chapter 2 Remodulization of Congruences Proceedings NCUR VI. è1992è, Vol. II, pp. 1036í1041. Jeærey F. Gold Department of Mathematics, Department of Physics University of Utah Don H. Tucker Department

More information

Groups in Cryptography

Groups in Cryptography Groups in Cryptography Çetin Kaya Koç http://cs.ucsb.edu/~koc/cs178 koc@cs.ucsb.edu Koç (http://cs.ucsb.edu/~koc) ucsb cs 178 intro to crypto winter 2013 1 / 13 Groups in Cryptography A set S and a binary

More information

Factorization Algorithms for Polynomials over Finite Fields

Factorization Algorithms for Polynomials over Finite Fields Degree Project Factorization Algorithms for Polynomials over Finite Fields Sajid Hanif, Muhammad Imran 2011-05-03 Subject: Mathematics Level: Master Course code: 4MA11E Abstract Integer factorization is

More information

arxiv:1301.6807v1 [math.nt] 29 Jan 2013

arxiv:1301.6807v1 [math.nt] 29 Jan 2013 arxiv:1301.6807v1 [math.nt] 9 Jan 013 Modified Stern-Brocot Sequences Dhroova Aiylam Mass Academy of Math and Science January 30, 013 Abstract We discuss and prove several of the properties of the Stern-Brocot

More information

The Chinese Remainder Theorem

The Chinese Remainder Theorem The Chinese Remainder Theorem Evan Chen evanchen@mit.edu February 3, 2015 The Chinese Remainder Theorem is a theorem only in that it is useful and requires proof. When you ask a capable 15-year-old why

More information

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

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

More information

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

Some facts about polynomials modulo m (Full proof of the Fingerprinting Theorem) Some facts about polynomials modulo m (Full proof of the Fingerprinting Theorem) In order to understand the details of the Fingerprinting Theorem on fingerprints of different texts from Chapter 19 of the

More information

4. FIRST STEPS IN THE THEORY 4.1. A

4. FIRST STEPS IN THE THEORY 4.1. A 4. FIRST STEPS IN THE THEORY 4.1. A Catalogue of All Groups: The Impossible Dream The fundamental problem of group theory is to systematically explore the landscape and to chart what lies out there. We

More information

it is easy to see that α = a

it is easy to see that α = a 21. Polynomial rings Let us now turn out attention to determining the prime elements of a polynomial ring, where the coefficient ring is a field. We already know that such a polynomial ring is a UF. Therefore

More information

Lecture 3: Finding integer solutions to systems of linear equations

Lecture 3: Finding integer solutions to systems of linear equations Lecture 3: Finding integer solutions to systems of linear equations Algorithmic Number Theory (Fall 2014) Rutgers University Swastik Kopparty Scribe: Abhishek Bhrushundi 1 Overview The goal of this lecture

More information

1. Prove that the empty set is a subset of every set.

1. Prove that the empty set is a subset of every set. 1. Prove that the empty set is a subset of every set. Basic Topology Written by Men-Gen Tsai email: b89902089@ntu.edu.tw Proof: For any element x of the empty set, x is also an element of every set since

More information

Lecture 13: Factoring Integers

Lecture 13: Factoring Integers CS 880: Quantum Information Processing 0/4/0 Lecture 3: Factoring Integers Instructor: Dieter van Melkebeek Scribe: Mark Wellons In this lecture, we review order finding and use this to develop a method

More information

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

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

More information

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

THE NUMBER OF REPRESENTATIONS OF n OF THE FORM n = x 2 2 y, x > 0, y 0 THE NUMBER OF REPRESENTATIONS OF n OF THE FORM n = x 2 2 y, x > 0, y 0 RICHARD J. MATHAR Abstract. We count solutions to the Ramanujan-Nagell equation 2 y +n = x 2 for fixed positive n. The computational

More information

A Course on Number Theory. Peter J. Cameron

A Course on Number Theory. Peter J. Cameron A Course on Number Theory Peter J. Cameron ii Preface These are the notes of the course MTH6128, Number Theory, which I taught at Queen Mary, University of London, in the spring semester of 2009. There

More information

Math 312 Homework 1 Solutions

Math 312 Homework 1 Solutions Math 31 Homework 1 Solutions Last modified: July 15, 01 This homework is due on Thursday, July 1th, 01 at 1:10pm Please turn it in during class, or in my mailbox in the main math office (next to 4W1) Please

More information

Algebra & Number Theory. A. Baker

Algebra & Number Theory. A. Baker Algebra & Number Theory [0/0/2009] A. Baker Department of Mathematics, University of Glasgow. E-mail address: a.baker@maths.gla.ac.uk URL: http://www.maths.gla.ac.uk/ ajb Contents Chapter. Basic Number

More information

Mathematics Course 111: Algebra I Part IV: Vector Spaces

Mathematics Course 111: Algebra I Part IV: Vector Spaces Mathematics Course 111: Algebra I Part IV: Vector Spaces D. R. Wilkins Academic Year 1996-7 9 Vector Spaces A vector space over some field K is an algebraic structure consisting of a set V on which are

More information

Carmichael numbers and pseudoprimes

Carmichael numbers and pseudoprimes Carmichael numbers and pseudoprimes Notes by G.J.O. Jameson Introduction Recall that Fermat s little theorem says that if p is prime and a is not a multiple of p, then a p 1 1 mod p. This theorem gives

More information

INTRODUCTORY SET THEORY

INTRODUCTORY SET THEORY M.Sc. program in mathematics INTRODUCTORY SET THEORY Katalin Károlyi Department of Applied Analysis, Eötvös Loránd University H-1088 Budapest, Múzeum krt. 6-8. CONTENTS 1. SETS Set, equal sets, subset,

More information

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1. MATH10212 Linear Algebra Textbook: D. Poole, Linear Algebra: A Modern Introduction. Thompson, 2006. ISBN 0-534-40596-7. Systems of Linear Equations Definition. An n-dimensional vector is a row or a column

More information

z 0 and y even had the form

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

More information

1 if 1 x 0 1 if 0 x 1

1 if 1 x 0 1 if 0 x 1 Chapter 3 Continuity In this chapter we begin by defining the fundamental notion of continuity for real valued functions of a single real variable. When trying to decide whether a given function is or

More information

Cryptography and Network Security Number Theory

Cryptography and Network Security Number Theory Cryptography and Network Security Number Theory Xiang-Yang Li Introduction to Number Theory Divisors b a if a=mb for an integer m b a and c b then c a b g and b h then b (mg+nh) for any int. m,n Prime

More information