Chapter 2 Bézout and Gauss

Size: px
Start display at page:

Download "Chapter 2 Bézout and Gauss"

Transcription

1 Chapter 2 Bézout and Gauss 2 Bachet Bézout s Theorem Let a be a positive integer In this section, we denote by D(a) (resp M(a)) theset of positive divisors (resp multiples) of a Theorem 2 Let a, b be any positive integers (i) The set D(a, b) = D(a) D(b) has a greatest element d called the greatest common divisor of a and b denoted by d = (a, b) (ii) The set M(a, b) = M(a) M(b) has a smallest element m called the least common multiple of a and b denoted by m =[a,b] Proof We only prove (i) The set D(a, b) is a non-empty subset of Z 0 since it contains and is upper bounded by min(a, b) We conclude the proof by appealing to Axiom Definition 22 Two positive integers a and b are said to be coprime, orrelatively prime, if and only if (a, b) = Examples 23 (6, 5) = 3 and [6, 5]=30 The integers 25 and 4 are coprime and [25, 4]=350 Remark 24 Theorem 2 shows at once that (b, a) = (a, b) and [b,a]=[a,b] We obviously have (a, b) [a,b] We also extend Theorem 2 to all integers by setting (a, b) = ( a, b ) and [a,b]= [ a, b ] so that, for any integers a,b Z \{0}, we will always have (a, b) and [a,b] Also, we set (a, 0) = a and [a,0]=0 so that (a, ) =, [a,]= a and, if a b then (a, b) = a and [a,b]= b for all a,b Z O Bordellès, Arithmetic Tales, Universitext, DOI 0007/ _2, Springer-Verlag London

2 28 2 Bézout and Gauss The following result gives essential information about the gcd Theorem 25 Let a, b be any integers and d be a positive integer Then d = (a, b) if and only if d a, d b and there exist integers u, v such that d = au + bv Proof Suppose first that d = (a, b) so that obviously d a and d b Now define the set E by E = { ax + by : (x, y) Z 2 and ax + by } Clearly E Z 0 and E since a or b is an element of E By Axiom, we infer that E contains a smallest element δ and we set (u, v) Z 2 such that δ = au + bv Let us prove that δ = d If we had δ a, the Euclidean division of δ into a would give and then we would have a = δq + r and 0 <r<δ r = a δq = a q(au+ bv) = a( qu)+ b( qv) which implies that r E, and then r δ, which contradicts the inequality r<d Hence we have δ a, and we prove δ b in a similar way Now let c be another positive integer dividing a and b We then have c (au + bv) = δ, and thus c δ, which proves that d = δ = au + bv Conversely, since d a and d b, we infer that d (a, b) On the other hand, since (a, b) a and (a, b) b, wehave(a, b) (au + bv) = d which implies that (a, b) d, so that d = (a, b), and the proof is complete As a corollary we get at once the important Bachet Bézout theorem Corollary 26 (Bachet Bézout) Let a, b be any integers Then a and b are coprime integers if and only if there exist integers u, v such that au + bv = Remark 27 The integers u and v, called Bézout s coefficients of a and b, are not unique since we can write au + bv = a(u + kb) + b(v ka) (k Z) Theorem 25 provides a useful criterion for the gcd Corollary 28 Let a, b be integers and d be a positive integer Then { (i) d a, d b d = (a, b) (ii) c a, c b = c d Proof The sufficient condition is obvious Conversely, if d = (a, b), then d satisfies (i) and Theorem 25 provides integers u, v such that d = au+ bv, so that if c a and c b, then c (au + bv) = d as required

3 22 The Euclidean Algorithm The Euclidean Algorithm The computation of the gcd can be achieved by using the following observation discovered by Euclid Theorem 29 Given a,b,k Z \{0} we have (a, b) = (a, b + ka) Proof If d = (a, b) and d 2 = (a, b + ka), then it is easy to see that d a and d b imply that d a and d (b + ka) so that d d 2 Conversely, since d 2 a and d 2 (b + ka), we infer that d 2 a and d 2 (b + ka ka) = b so that d 2 d Thisis the desired result since d,d 2 Now let a b be positive integers for which we want to compute their gcd By making use of the former result, we could proceed in the following way (i) If b a then (a, b) = b Otherwise, the Euclidean division of r 0 = a by r = b provides two unique integers q and r 2 such that a = bq + r 2 and 0 <r 2 <b, and Theorem 29 with k = q gives (a, b) = (b, a bq ) = (b, r 2 ) (ii) If r 2 b then (a, b) = (b, r 2 ) = r 2 Otherwise, the proof proceeds as before so that we get two unique integers q 2 and r 3 such that (b, r 2 ) = (r 2,r 3 ) (iii) And so on This algorithm, derived by Euclid, gradually constructs a strictly decreasing sequence of natural integers (r k ) Hence there exists a non-negative integer n such that r n 0 and r n+ = 0 and we get (a, b) = (b, r 2 ) = (r 2,r 3 ) = =(r n,r n ) = (r n, 0) = r n With a little more work, one can even estimate the number of divisions required in this algorithm to obtain the gcd The following result is a version of a theorem proved by Lamé Proposition 20 (Lamé) Let b a be integers Then the number of divisions necessary to compute (a, b) in the Euclidean algorithm does not exceed [ ] log b + log where = is the golden ratio

4 30 2 Bézout and Gauss Proof The proof uses the Fibonacci numbers F n and their connection with the golden ratio Recall that is the positive solution of the equation x 2 = x + and that Fibonacci numbers are the terms of the Fibonacci sequence (F n ) defined by { F 0 = 0, F = F n+2 = F n+ + F n (n 0) An easy induction shows that the following lower bound F n n 2 (2) holds for any positive integer n Now consider the Euclidean algorithm with n 2 steps written as r 0 = r q + r 2 0 <r 2 <r r = r 2 q 2 + r 3 0 <r 3 <r 2 r n 2 = r n q n + r n 0 <r n <r n r n = r n q n (with a = r 0 and b = r ) Let us prove by induction that r n k F k+2 (k =,,n) (22) Note first that q n 2 since r n = q n r n and r n <r n and therefore r n = r n q n q n 2 = F 3 so (22) istruefork = It is also true for k = 2 since r n 2 = r n q n + r n r n + r n 2 + = 3 = F 4 Now suppose that (22)istrueforsomekWehave r n k = r n k q n k + r n k+ r n k + r n k+ and by induction hypothesis we get r n k F k+2 + F k+ = F k+3 which proves (22) We now use (22) with k = n to get b = r F n+ and (2) implies then that which completes the proof n log b log +

5 23 Gauss s Theorem 3 Example 2 Let us show how the Euclidean algorithm could be used to get a gcd and Bézout s coefficients associated to it Let d = (8 459, 3 809)Wehave where the quotients are written in the first line and the remainders are in the second and third lines We then obtain d = 293Wealsohave = (4) = () = 586 (5) which we can rewrite as ( 4) ( ) = () ( ) ( ) = 0 ( 5) () ( 5) = 293 which immediately gives (6) ( 29) = Gauss s Theorem The following result is fundamental Theorem 22 (Gauss) Let a, b, c be any integers Then } a bc = a c (a, b) = Proof Since (a, b) =, using Bachet Bézout s theorem we have integers u, v such that au + bv = Multiplying both sides of this identity by c and using the fact that there exists k Z such that bc = ka, we get c = acu + bcv = acu + kav = a(cu + kv) which is the desired result since cu + kv Z This result has, along with Bachet Bézout s theorem, a lot of consequences The following proposition summarizes some of them Proposition 23 Let n, r be positive integers and a,b,c,a,a 2,,a r,k be any integers

6 32 2 Bézout and Gauss (i) (ka, kb) = k (a, b) and [ka, kb]= k [a, b] (ii) If d = (a, b) and a = da and b = db, then (a,b ) = (iii) (a, b) [a, b]= ab (iv) (a, b) = (a,bc) = (a, c) (v) (a n,b n ) = (a, b) n and [a n,b n ]=[a,b] n (vi) a c b c = ab c (a, b) = More generally, we have a b,,a r b i j = (a i,a j ) = } = a a r b (vii) Suppose (a, b) = and k If ab = c k for some positive integer c, then there exist positive integers r, s such that a = r k and b = s k (viii) Suppose k<n Then n (n, k) ( ) n k Proof Without loss of generality, we prove the theorem by considering that a, b, c and a,a 2,,a r,k are positive integers (i) We set d = (a, b) Clearly we have kd (ka, kb) since kd ka and kd kb By Theorem 25, there exist integers u, v such that d = au + bv so that kd = u(ka) + v(kb) and therefore, using Theorem 25 again, we infer that kd = (ka, kb) Next we set m =[a,b] and M =[ka,kb] km is a common multiple of ka and kb so that km M Conversely, since ka M and kb M, we deduce that the integer M/k is a common multiple of a and b, and thus M/k m, which gives M km, and therefore M = km (ii) We have d = (a, b) = (da,db ) = d(a,b ) so that (a,b ) = (iii) Suppose first that (a, b) = We obviously have [a,b] ab since these two numbers are common multiples of a and b On the other hand, since a [a,b], there exists a positive integer q such that [a,b] =qa Since b [a,b] =qa and (a, b) =, Gauss s theorem implies that b q, so that b q and thus ab qa =[a,b] Hence we proved that [a,b] =ab as soon as (a, b) = Now if (a, b) = d>, we set a = da and b = db with (a,b ) = We then have [a,b]= [ da,db ] = d [ a,b ] = da b = ab d = ab (a, b) giving the asserted result (iv) We set d = (a, c) and D = (a,bc) Clearly, d D Conversely, since D a and D bc, wehaved ac and D bc so that D (ac,bc) = c (a, b) = c, and thus D d

7 23 Gauss s Theorem 33 (v) We first note that (iii) implies by induction that (a, b) = = (a, b n ) = and similarly (b n,a)= = (b n,a n ) =, so that we have (a, b) = = ( a n,b n) = Now set d = (a, b) and a = da, b = db with (a,b ) = We get ( a n,b n) = ( d n a n,d n b n) = d n( a n,b n) = d n = (a, b) n Next we use (iii) [ a n,b n] = an b n ( ) ab n (a n,b n ) = =[a,b] n (a, b) (vi) There exists a positive integer q such that c = qa and then we get } b qa = b q (a, b) = by Gauss s theorem Thus, q = hb for some positive integer h and then c = qa = hba so that ab c The second assertion follows by an easy induction (vii) Let d = (a, c) First,wehaved k c k = ab and since (d, b) = ((a, c), b) = (c, (a, b)) = (c, ) =, we have (d k,b)= and Gauss s theorem implies that d k a On the other hand, if we set a = da and c = dc so that (a,c ) =, then the equality ab = c k is equivalent to a b = d k c k, so that a d k c k and since (a,c k ) =, we have a d k by Gauss s theorem again, so that a d k Hence we get a = d k and b = (c/d) k (viii) We set d = (n, k) and n = dn, k = dk with (n,k ) = We have k ( n k ) ( ) n = n k and the binomial coefficient of the right-hand side is an integer since n, k, therefore we have ( ) n n k k Since (n,k ) =, Gauss s theorem implies that which is the desired result n ( ) n k The proof is complete

8 34 2 Bézout and Gauss 24 Linear Diophantine Equations In this section, a, b, n are any integers satisfying ab 0 and we set d = (a, b)any equation of the form ax + by = n with (x, y) Z 2 is called a linear Diophantine equation The aim of this section is the resolution of such equations We begin with an important observation Lemma 24 Let a,b,n Z such that ab 0 and set d = (a, b) Then the Diophantine equation ax + by = n has a solution in Z 2 if and only if d n Proof If n = 0 then d n and (x, y) = (0, 0) is a solution Now suppose n 0 We also define (u, v) Z 2 such that d = au + bv Suppose first that the equation has at least one solution (x, y) Z 2 Since d a and d b, we get d (ax + by) = n Conversely, suppose d n Set x 0 = nu/d and y 0 = nv/d Note that (x 0,y 0 ) Z 2 and we have ax 0 + by 0 = Thus, the pair (x 0,y 0 ) = ( nu d, nv d anu + bnv d = n (au + bv) = n d ) is solution of the equation The solutions are completely determined by the following result Proposition 25 Let a,b,n Z such that ab 0 and set d = (a, b) Suppose that d n and let (x 0,y 0 ) be a particular solution of the Diophantine equation ax +by = n Then the solutions are given by the following formulae x = x 0 + kb d y = y 0 ka (k Z) d Proof Define a = da, b = db and n = dn so that (a,b ) = The equation is equivalent to a x + b y = n Let(x, y) be a solution distinct from (x 0,y 0 )From we get a x + b y = a x 0 + b y 0 a (x x 0 ) = b (y 0 y) (23) with y y 0 Z, so that b a (x x 0 ) Since (a,b ) =, Gauss s theorem implies that b (x x 0 ) so that there exists k Z such that x = x 0 + kb Replacing x x 0 by kb in (23) gives y = y 0 ka Conversely, we check that the pairs (x, y) = (x 0 +kb,y 0 ka ) with k Z are solutions of the equation

9 25 Congruences 35 Example 26 Solve in Z 2 the equation 8 459x y = 879 Answer Set d = (8 459, 3 809) Using Example 2 we know that d = 293 and since 879 = 3 293, Lemma 24 implies that this equation has at least one solution in Z 2 It is equivalent to 63x + 3y = 3 and we have seen in Example 2 that 63(6) + 3( 29) =, so that the pair (x 0,y 0 ) = (8, 87) is a particular solution of the equation Let (x, y) Z 2 be a solution We have 63x + 3y = 63(8) + 3( 87) 63(x 8) = 3( y 87) so that 3 63(x 8) Since (63, 3) =, Gauss s theorem implies that 3 (x 8), and hence there exists k Z such that x = 8+3k This gives y = 87 63k Conversely, we check that the pairs (8 + 3k, 87 63k) are solutions of the equation Thus, the set of solutions is S ={(8 + 3k, 87 63k) : k Z} Example 27 (Money changing problem) In how many ways can we obtain a sum of$34withonly$2coinsand$5bills? Answer We have to count the number of solutions in (Z 0 ) 2 of the equation 2x + 5y = 34 Using Proposition 25 we get x = 2 + 5k and y = 6 2k (k Z) as solutions in Z 2 The condition (x, y) (Z 0 ) 2 holds if and only if 2/5 k 3, which gives k {0,, 2, 3}, and hence the equation has four solutions in (Z 0 ) 2, and thus there are four ways to get $34 with only $2 coins and $5 bills 25 Congruences Introduced by Gauss, congruences are a very efficient tool in number theory In what follows, n is a positive integer Definition 28 Let a, b be any integers and let n be a positive integer We say that a is congruent to b modulo n, and we write a b(mod n), if and only if n (a b)if n (a b), we say that a and b are incongruent modulo n and write a b(mod n) Examples (mod 2), 42 0 (mod 2), 42 5 (mod 2), (mod 2) 2 0 (mod 9) and 0 (mod ) 3 n is even (resp odd) if and only if n 0 (mod 2) (resp n (mod 2))

10 36 2 Bézout and Gauss 4 If the decimal representation of a positive integer n is n = a r a r a 0 with 0 a i 9 (for i = 0,,r) and a r 0, then, for any integer k {,,r + } we have n a k a 0 ( mod 0 k ) 5 For any integers a, b,wehavea b(mod ) Remark 220 Givenafixedintegera, there is no unicity of the integer b such that a b(mod n) since this relation means nothing but that there exists k Z such that a = b + kn Thus, we can choose b depending on the result aimed at In particular, it is of great interest to take b as the remainder of the Euclidean division of a by n Indeed, we have in this case 0 b<n,ieareduction phenomenon Let us also mention that the relation a 0 (mod n) means n a, and it is not hard to see that, if a b(mod n), then for any positive divisor d of n, wealsohavea b(mod d) The following theorem summarizes the main properties of congruences Proposition 22 Let a,b,c,d,x,y Z and n, d be positive integers (i) a a(mod n) (reflexivity) a b(mod n) b a(mod n) (symmetry) } a b(mod n) = a c(mod n) (transitivity) b c(mod n) In other words, congruence is an equivalence relation (ii) If a b(mod n) and c d(mod n), then we have ax + cy bx + dy (mod n) and ac bd (mod n) (iii) If m is a positive integer, then we have a b(mod n) = a m b m (mod n) (iv) (Gauss s theorem) Here is a congruence version of Theorem 22 } ac bc (mod n) = a b(mod n) (c, n) = (v) (Generalization of Gauss s theorem) We set d = (c, n) Then we have ac bc (mod n) a b(mod n/d) Proof We leave the proofs of (i) and (ii) to the reader as an exercise They directly derive from the definition

11 25 Congruences 37 (iii) Using Lemma 6 we know that (a b) divides (a m b m ) so if n (a b), then n (a m b m ) (iv) The system can be written as { n (a b)c (c, n) = so that Gauss s theorem immediately yields n (a b) (v) We set d = (c, n) and c = dc, n = dn so that (c,n ) = Suppose first that ac bc (mod n) Then there exists k Z such that ac bc = kn and so ac bc = kn Thus we have { n (a b)c (c,n ) = and Gauss s theorem then implies that n (a b) Conversely, if (n/d) (a b), then (nc/d) = nc c(a b) and since n nc, we obtain n c(a b) The proof is complete Example 222 Find the remainder of the Euclidean division by 7 of A = 0 k= 0 0k Answer 0 2 = and hence (mod 7), and thus 0 6 = ( 0 2) (mod 7) On the other hand, for every integer k 2, we have 3 ( 4 k ) by using Lemma 6, and hence 6 divides 4(4 k ), and so 4 k 4 (mod 6) Since 0 4 (mod 6), we deduce that 0 k 4 (mod 6) for k 2 The congruence being We could also use Fermat s little theorem See Theorem 35

12 38 2 Bézout and Gauss also true for k =, we have 0 A = 0 0k = k= k= 0 k= 0 k= h (mod 7) Example 223 Let a,b Z and n be a positive integer such that a b(mod n) Prove that Answer Using Lemma 6 we get and we know that a b 0 (mod n) and n k=0 a n b n (mod n 2 ) n a n b n = (a b) a k b n k k=0 n a k b n k a n na n 0 (mod n) k=0 Example 224 Prove that 3 ( ) Answer We have 2 6 = 5 3 and 3 3 = 2 3 +, hence 2 6 (mod 3) and 3 3 (mod 3) Writing 70 = and 70 = we obtain = (mod 3) Example 225 Solve the Diophantine equation 2 m 3 n = n where m, n are nonnegative integers such that n 5 (mod 8) Answer (0, 0) is the only solution when m = 0 and there is no solution when m = Furthermore, if m, then n = 2 m 3 n (mod 2) so that one may suppose that m 2 and n is an odd integer satisfying n 5 (mod 8) by assumption Writing n = 2k + forsomek Z 0, we infer that k ±2 (mod 8) and therefore 3 n + n = 3 9 k + 2k k 0 (mod 8) Now let m and n be two solutions with m 2 and n is odd such that n 5 (mod 8) By the argument above we get 8 2 m, so that m 2, and then m = 2, giving n = Therefore, under the above hypotheses, the equation has two solutions, namely the pairs (0, 0) and (2, )

13 25 Congruences 39 Our next goal is to count the number of solutions of the equation ax b(mod n) Here we mean the number of integer solutions x such that ax b(mod n) and 0 x n Lemma 24 and Proposition 25 then immediately give Proposition 226 Let a,b Z and n be a positive integer We set d = (a, n) Then the congruence ax b(mod n) has a solution if and only if d b Furthermore, if x 0 is a particular solution, then there are exactly d solutions given by x 0 + kn d with 0 k d In particular, if (a, n) =, then the congruence ax b(mod n) has exactly one solution An important application of this result is the so-called Chinese remainder theorem which treats several congruences simultaneously The name of this result comes from the fact that a 2-congruence version was discovered by the Chinese mathematician Sun Tse ( st century AD) Suppose we have a system of congruences x a (mod n ) x a k (mod n k ) where a,,a k Z and n,,n k are positive integers The following result is very useful Theorem 227 (Chinese remainder theorem) Suppose that the positive integers n,,n k are pairwise coprime, ie for every pair (i, j) {,,k} 2 such that i j, we have (n i,n j ) = Then the system x a (mod n ) x a k (mod n k ) has a unique solution modulo n n k

14 40 2 Bézout and Gauss Proof The proof is constructive, meaning that we construct a solution and then show that it is unique We set n = n n k and, for every integer i =,,k, we define n i = n/n i Obviously we have n i N and (n i,n i ) = Proposition 226 implies that there exist integers n i such that n i n i (mod n i) We then set x = a n n + +a kn k n k We notice that if i j, then n j 0 (mod n i) and thus x a i n i n i a i (mod n i ) (i =,,k) Suppose now that the system has two solutions x and y Then x y 0 (mod n i ) for every i =,,k Since the integers n i are pairwise coprime, Proposition 23 (vi) implies that x y 0 (mod n), which completes the proof Example 228 Solve the system x (mod 2) x 2 (mod 3) x 3 (mod 5) x 4 (mod 7) x 5 (mod ) Answer Note that the modules are pairwise distinct prime numbers, and then are trivially pairwise coprime We have n = 230 and the computations are summarized in Table 2 so that x = (mod 230) Remark 229 Let a, n be coprime integers It will be shown in Theorem 42 that a ϕ(n) (mod n) where ϕ is Euler s totient function It follows that x = a ϕ(n) is a solution of the equation ax (mod n) and thus one may take n i = (n/n i) ϕ(n i) Therefore Table 2 Calculations of the n i n n 2 n 3 n 4 n n n 2 n 3 n 4 n 5 2 3

15 26 Further Developments 4 an explicit formula for the system of Theorem 227 in terms of n i and a i can be derived as follows x k ( n i= n i ) ϕ(ni ) a i (mod n n k ) 2 An important particular case, often used in some recreational mathematics, is when we have a = =a k = a, where the whole computational machinery is not needed The trivial solution x a(mod n n k ) is guaranteed to be the only one by Theorem When the moduli are not pairwise coprime, some potential sets of remainders may be ruled out For instance, the system { x 2 (mod 6) x 3 (mod 4) has no solution in Z, otherwise there would exist (h, k) Z 2 such that 6h = + 4k, and hence 2h (mod 4), contradicting Proposition 226 A necessary and sufficient condition for a solution to exist is ( a i a j mod(ni,n j ) ) for all i, j {,,k} 2 In this case, all solutions are congruent modulo [n,,n k ] 26 Further Developments 26 The Ring (Z/nZ, +, ) A ring (R, +, ) is a non-empty set endowed with two binary operations, usually denoted by + and, such that (R, +) is an abelian group with identity element denoted by 0, the operation being left- and right-distributive over + If the operation also has an identity element, often denoted by, then the ring is called a unitary ring An element a R, where R is unitary, is a unit of R if there exists b R such that ab = ba = Such a b is then unique and is called the inverse of a Finally, an element a R is called a zero divisor if there exists b R \{0} not necessarily unique such that ab = 0, and if R is unitary, neither a nor b are units Now let n be a positive integer The set of residue classes modulo n, often denoted by 0,,,n, is a unitary abelian ring, denoted by Z/nZ, endowed with the binary operations + and defined by x + y = x + y and x y = x y (one can check that they are indeed well-defined) The basic result is then the following theorem

16 42 2 Bézout and Gauss Theorem 230 The ring Z/nZ is a disjoint union Z/nZ = E F where E, resp F, is the set of units, resp zero divisors, of Z/nZ Furthermore, x Z/nZ is a unit if and only if (x, n) = Proof Let d = (x, n) Suppose first that x is a unit and define y = (x) We then have xy (mod n) and then there exists k Z such that xy = kn Thus we have d (xy kn) = and then d = Conversely, suppose that d = By Bachet Bézout s theorem there exist u, v Z such that xu + vn = Therefore xu (mod n) and then x is a unit in Z/nZIfd>, we set x = dx, n = dn with (x,n ) = Then we have n x = dn x = nx 0 (mod n) so that x is a zero divisor in Z/nZ Conversely, a zero divisor cannot be a unit, and then d> Euler s totient function is the function ϕ which counts the number of units in Z/nZ, with the convention that ϕ() = Theorem 230 has then the following immediate application Theorem 23 Let n be a positive integer Then ϕ() = and, for every integer n 2, ϕ(n) is the number of positive integers m n such that (m, n) = In other words, we have ϕ(n) = m n (m,n)= We shall find this important function again in Chap 4 Finally, note that Lemma 34 tells us that if n = p is prime, then Z/pZ does not have any zero divisor, and then the set of units of Z/pZ is (Z/pZ) = {,,p } Thus, for every prime number p,wehaveϕ(p) = p More generally, group theory tells us that, if n = p α pα r r is the factorization of n into prime powers, then we have the following isomorphism of cyclic groups Z/nZ Z/p α Z Z/pα 2 2 Z Z/pα r r Z which induces the group isomorphism (Z/nZ) ( Z/p α Z) ( Z/p α 2 2 Z) ( Z/p α r r Z) whence we deduce that ϕ(n) = ϕ ( p α ) ϕ ( p α 2 2 ) ( ) ϕ p α r r characterizing the multiplicativity of Euler s totient function We shall prove this again in Chap 4 by using purely arithmetic arguments

17 26 Further Developments Denumerants Let k, n be positive integers and A k ={a,,a k } be a finite set of pairwise relatively prime positive integers 2 The aim of this section is to study the number D k (n) of solutions of the Diophantine equation a x + +a k x k = n where the unknowns are (x,,x k ) (Z 0 ) k The number D k (n) is called the denumerant of n with respect to k and to the set A k When a = =a k =, this denumerant will be denoted by D (,,) (n) where the vector (,,) is supposed to have k components Exercise 0 deals with the case k = 2 where it is shown that D 2 (n) = [ n ab ] + r where r = 0orr = and for which it is convenient to rename the coefficients a, b instead of a, a 2 Thus,ifn<ab, there is at most one solution The Frobenius problem deals with the largest number n for which this equation is not soluble, and it can be proved that this number is given by n = ab a b By using the theory of generating functions, several authors derived some formulae for the exact value of D 2 (n) The following lines borrow the ideas essentially from [Tri00] Expanding the generating function into partial fractions and comparing the coefficients of z n in each side gives 3 D 2 (n) = n ab + ( 2 a + ) + a b a k= e a (nk) e a ( bk) + b b k= e b (nk) e b ( ak) (24) where e a (x) = e 2πix/a Note that the sums are periodic in n, the first one with period a and the second one with period b, and since (a, b) =, the sum of these two sums is periodic of period ab, and then the expression of D 2 (n) is essentially determined modulo ab Now define a and b to be integers satisfying a b b a aa (25) n(mod b) bb n(mod a) 2 When k =, this obviously means A ={} 3 See Exercise for another proof of this identity

18 44 2 Bézout and Gauss Note that hence we get { ea ( bk) } b ( e a ( bj k) = e a b bk ) = e a (nk) and using the formulae j=0 e a (nk) e a ( bk) = b e a ( bk) e a ( bj k) a k= valid for positive integers a, m, and j=0 { a, if a m e a ( mk) =, otherwise a k= e a ( mk) = a 2 valid for positive integers a, m such that (a, m) =, we then obtain a k= a e a (nk) e a ( bk) = k= = a 2 b e a ( bk) = b a + 2 a e a ( bj k) j=0 k= b (a ) + j= and the same is true for the second sum, so that we finally get D 2 (n) = n ab + a b + b a Note that by (25) both a and b divide n+aa +bb, so that n+aa +bb is divisible by ab by Proposition 23 (vi) Furthermore, since n + aa + bb n + a + b, we infer that the number on the right-hand side above is indeed a non-negative integer We can then state the following result Theorem 232 Let a,b be coprime integers and define positive integers a, b as in (25) Then the number D 2 (n) of solutions in non-negative integer pairs (x, y)

19 26 Further Developments 45 of the equation ax + by = n is given by D 2 (n) = n ab + a b + b a Note that the following four properties characterize uniquely D 2 (n) D 2 (n + kab) = D 2 (n) + k (k 0) D 2 (n) = if ab a b<n<ab D 2 (n) + D 2 (m) = if m + n = ab a b (m,n 0) D 2 (n) = if n = ax 0 + by 0 <ab a b (x 0,y 0 0) See [BR04, BZ04, Shi06, Wil90] for more details Another formula, discovered by Popoviciu [Pop53] in 953, is given in Exercise In the general case k 3, a similar method involving the generating function can be used, leading to the asymptotic formula D k (n) = n k (k )! a a k + O ( n k 2) as n, but computations become harder as soon as the number of unknowns increases On the other hand, a strong upper bound can be derived in a more elementary way by taking into account the following observation Since a x + +a k x k = n a x + +a k x k = n a k x k we obtain x k [n/a k ] and thus n/a k D k (n) = D k (n ja k ) (26) j=0 The aim is then to prove the following result Theorem 233 For every positive integer k we set { 0, if k = s k = a 2 + a 3 + +a k, 2 if k 2 and r k = {, if k = a 2 a k, if k 2

20 46 2 Bézout and Gauss with s 2 = a 2 Then D k (n) (n + s k) k (k )! r k Furthermore, if a = =a k =, then ( ) k + n D (,,) (n) = n The proof uses induction and the following lemma Lemma 234 For every real number x 0 and every integer k 2 we have 0 j x (x j) k k ( x + 2) k Proof We shall in fact prove the slightly stronger following inequality 0 j x (x j) k xk k + xk + 2 (k )xk 2 8 since we easily see using Newton s formula that ( x + ) k = xk k 2 k + xk (k )xk positive terms 2 8 xk k + xk + 2 (k )xk 2 8 By partial summation with a = 0, f(t)= and g(t) = (x t) k we get x (x j) k = (k ) (x t) k 2( [t]+ ) dt 0 j x and since [t]=t ψ(t) /2, we obtain ( x (x j) k = (k ) 0 j x and integrating by parts gives 0 j x (x j) k = xk k + xk (k 2) 0 (x t) k 2 ( t + 2 ) dt x ( [ψ2 (k ) (t)(x t) k 2] x 0 x 0 ) (x t) k 3 ψ 2 (t) dt 0 ) (x t) k 2 ψ(t)dt

21 26 Further Developments 47 = xk k + xk (k )(k 2) 2 xk k + xk (k )(k 2) x 0 x 0 (x t) k 3 ψ 2 (t) dt (x t) k 3 dt = xk k + xk (k )xk which completes the proof of the lemma Proof of Theorem 233 By induction on k, the case k = being immediate since D (n) = n ( )! = (n + s ) ( )!r Now suppose k 2 We let the case k = 2inExercise0, and suppose the inequality is true for some k 2 Using (26), induction hypothesis and Lemma 234 we get n/a k+ D k+ (n) = D k (n ja k+ ) j=0 (k )! r k ak k+ (k )! r k ak k+ k! r k ( n + sk n/a k+ j=0 (n+s k )/a k+ j=0 a k+ + 2 (n ja k+ + s k ) k ( n + sk a k+ ) k j ) k = (n + s k+) k k! r k+ which is the desired result The last part of the theorem may be treated similarly, using the well-known identity (see [Gou72, identity 49]) n ( ) ( ) k + j k + n = j n j=0 in the induction argument 263 Generating Functions We saw in the last section that it was essential to study the generating function of a sequence to get some information about the sequence itself Let (u n ) be a sequence

22 48 2 Bézout and Gauss The generating function of (u n ) is the function F(z)formally defined by F(z)= n 0 u n z n If F(z) can be written as an elementary function of z, then the comparison of the coefficients of z n can give a closed formula for u n Nevertheless, we must notice that such a series could either be studied formally or must be taken as a function of the complex variable z In the latter case, convergence problems must be studied Generating functions are the main tools in combinatorial theory, where results from complex analysis are frequently used (see [Odl95]or[Wil90]) For example, if F(z) is analytic in the open disc z <R, then, for any r with 0 <r<rand any nonnegative integer n we have u n r n max z =r F(z) by Cauchy s theorem For a wide class of generating functions, the saddle point method enables us to obtain more accurate estimates To this end, we first pick up the concept of H- function from [Odl95] A generating function F(z)= n 0 u nz n is said to be an H- function,orhayman s function,iff(z)is analytic in z <Rfor some 0 <R, real when z ] R,R[ and satisfies max F(z) = F(r) z =r for some R 0 <r<r Furthermore, let a(z) = zf (z) F(z) and b(z) = za (z) and let r δ(r) be a function defined in the range ]R 0,R[ and satisfying 0 < δ(r) < π in this range Suppose that Uniformly for θ <δ(r),wehave F ( re iθ) F(r)e iθa(r) 2 θ 2 b(r) and F ( re iθ) ( ) F(r) = o b(r) as r R lim r R b(r) = It can be shown [Odl95] that if P(z) = a n z n + +a 0 R[z] and if F(z) and G(z) are H-admissible in z <R, then e F(z), F (z)g(z) and F(z)+ P(z) are H- admissible in z <R Furthermore, if a n > 0, then P(F(z)) is H-admissible in z <R Now we may state one of the main results of the saddle point theory

23 26 Further Developments 49 Theorem 235 Let F(z)= n 0 u nz n be an H-function and set a(z) = zf (z) F(z) and b(z) = za (z) For all n Z 0, let z n be the solution of a(z n ) = n such that R 0 <z n <R Then, for n, we have u n z n n F(z n ) 2πb(zn ) For example, with u n = /n! we have F(z)= e z, R = and a(z) = b(z) = z so that z n = n, and we obtain the following version of Stirling s formula n! ( ) n n 2πn e In addition to () which is the simplest example of a generating function with u n =, it must be interesting to take the following series into account, which generalizes Newton s formula For any positive integer k and any real number x < we have ( ) k + j x j = j ( x) k (27) j=0 As an example, let us try to find a closed formula for the generating function of the denumerant D k (n) seen above Using () we have formally ( z a )( z a 2) ( z a k ) = z a x z a 2x2 x 0 x 2 0 x k 0 = z a x + +a k x k x,, x k 0 = n 0 ( x,, x k 0 a x + +a k x k =n = D k (n)z n n 0 ) z n z a kx k so that the generating function of D k (n) is given by F(z)= k i= z a i (28)

24 50 2 Bézout and Gauss Now let us show with an example how this series could be used We take k = 3 and A 3 ={, 2, 3} so that D 3 (n) counts the number of non-negative integer solutions of the equation x + 2y + 3z = n The generating function of D 3 (n) is then F(z)= and partial fractions expansion theory gives ( z)( z 2 )( z 3 ) ( z)( z 2 )( z 3 ) = 6( z) 3 + 4( z) ( z) ( + 8( + z) + 9 z/ρ + z/ρ 2 where ρ = e 3 () = e 2πi/3 Using(27) we obtain D 3 (n)z n = { ( ) n + 2 z n + ( ) n n 4 n 72 n 0 n 0 + ( )n + ( ρ n + ρ 2n)} 8 9 and comparing the coefficients of z n in each side gives D 3 (n) = ( ) n n 4 = 6n2 + 36n ( n + n + ( )n 8 ) ( )n cos ( 2πn 3 ) ) ( ρ n + ρ 2n) Thus we can check the values of D 3 (n) according to the residue class modulo 6 of n which we summarize in Table 22, and then we have D 3 (n) = (n+3)2 2 + ε n where ε n 3 so that (n + 3) 2 D 3 (n) = 2 where x is the nearest integer to x Table 22 Values of D 3 (n) n mod 6 0 ± ±2 3 D 3 (n) n 2 + 6n (n + )(n + 5) 2 (n + 2)(n + 4) 2 (n + 3) 2 2

25 27 Exercises 5 27 Exercises Let a, b, n, x, y, z, t be any positive integers (a) Prove that if (a, b) =, then (a + b,a b) = or2 (b) Show that if (a, b) =, then (a + b,ab) = (c) Prove that a b a n b n (d) Suppose that xt yz = Prove that (a, b) = (ax + by, az + bt) 2 (Thue s lemma) The aim of this exercise is to provide a proof of the following result Lemma (Thue) Let a> be an integer and p 3 be a prime number such that p a Then the equation au v(mod p) has a solution (u, v) Z 2 such that { u < p, v < p (a) Let S ={0,,[ p]} and define a map f : S 2 {0,,p } by f(u,v) au v(mod p) Show that f is not injective (b) We denote by (u,v ) and (u 2,v 2 ) two pairs such that (u,v ) (u 2,v 2 ) and f(u,v ) = f(u 2,v 2 ), and set u = u u 2 and v = v v 2 Check that au v(mod p) and that u < p and v < p Show that u 0, and then v 0 3 (Euclidean algorithm revisited) Let a>bbe positive integers and let (r k ) be the sequence of remainders of the divisions in the Euclidean algorithm with r 0 = a and r = b r 0 = r q + r 2 0 <r 2 <r r = r 2 q 2 + r 3 0 <r 3 <r 2 r k = r k q k + r k+ 0 <r k+ <r k r n = r n q n r n = (a, b) We define the sequences (s k ) and (t k ) so that, for k =,,nwe have { s0 = s = 0 s k+ = q k s k + s k t 0 = 0 t = t k+ = q k t k + t k

26 52 2 Bézout and Gauss (a) Prove that r k = s k a + t k b (k = 0,,n+ ) (b) Prove that s k = ( ) k s k and t k = ( ) k+ t k (k = 0,,n+ ) Deduce that for k =,,n (c) Deduce that s k+ =q k s k + s k t k+ =q k t k + t k for k =,,n+ a = t k r k + t k r k 4 (Infinite sequence of coprime integers (Edwards)) Let u be an odd integer and (u n ) be the sequence of integers defined by u n = u 2 n 2 for any n 2 (a) Prove that u n is odd for every integer n (b) Deduce that (u n,u n ) = for every integer n 2 (c) Show that, for any integer n 3, we have u n 2 = u 2 n 2 u2 n 3 u2 (u 2 2) (d) Deduce that for any integers n 3 and r = 2,,n, we have (u n,u n r ) = 5 Solve the following equations and system: 2 825x y = (x, y Z 0 ) 5(x + y) 2 = 47[x,y] (x, y Z 0 ) { 3x (mod 5) (x Z) 5x 2 (mod 7) 6 Let a, b be positive integers and set d = (a, b) We consider a Cartesian coordinate system with origin O and x- and y-axis The rectangular coordinates x, y of a point M will be denoted by M x,y Aninteger point is a point with integer coordinates (a) Define A a,b Prove that the number N of integer points on the segment ]OA] is d

27 27 Exercises 53 (b) Define B a,0 Prove that the number N 2 of integer points inside the rightangled triangle OAB is 4 N 2 = (ab a b d)+ 2 7 (Oloa) Fermat s last theorem states that the Diophantine equation x n + y n = z n has no non-trivial solutions (x,y,z) N 3 as soon as n 3 This was finally proved by Wiles and Taylor in 995 Does the equation x n + y n = z n+ possess any nontrivial positive integer solutions for every positive integer n? 8 Let n be a non-negative integer (a) Prove that n 2 0, or4(mod 8) Deduce that an integer congruent to 7 modulo 8 cannot be written as the sum of three squares (b) Prove that n 3 ±or0(mod 9) Deduce that an integer congruent to 4 modulo 9 cannot be written as the sum of three cubes (c) Solve the Diophantine equation x 3 + y 3 + z 3 = 2005 where x, y, z are positive integers 9 Show that 64 ( ) 0 Let a<bbe positive integers such that b a = m 2 for some positive integer m The aim of this exercise is to study the difference x y of the solutions (x, y) (Z 0 ) 2 of the Diophantine equation (a) Prove that x>yand that (b) Prove that ax 2 + x = by 2 + y (x y) { + b(x + y) } = (mx) 2 (x y) { + a(x + y) } = (my) 2 x y = (b a,x y) (x, y) 2 (c) Provide some sufficient conditions so that x y may be a square 4 One can make use of Pick s formula which states that the number N int inside a convex integer polygon P is given by N int = area(p) N P + 2 where N P is the number of integer points on the edges of the polygon

28 54 2 Bézout and Gauss Let a, b be positive integers such that (a, b) = and let n be a positive integer Define D 2 (n) to be the number of non-negative integer solutions x, y of the Diophantine equation ax + by = n (a) Use Bachet Bézout s theorem to prove that D 2 (n) =[ ab n ]+r where r = 0or r = (b) Use Theorem 232 with its notation to prove that r = 0 aa + bb ab r = aa + bb >ab 2 (Beck & Robins) Let a, b be positive integers such that (a, b) = and let n be a positive integer Define D 2 (n) to be the number of non-negative integer solutions x, y of the Diophantine equation ax + by = n and set a,b to be positive integers such that aa (mod b) and bb (mod a) In 953, Popoviciu [Pop53] proved the following very elegant formula D 2 (n) = n ab + { } nb a { } na b where {x} is the fractional part of x The aim of this exercise is to provide an analytic proof of this formula Recall that e a (k) = e 2πik/a (k Z 0 ) and define the complexvalued function f by (a) Recall that f(z)= a j=0 z n+ ( z a )( z b ) a x j = (x e a (j)) (29) j= Prove that, for positive integers a, k,wehave a j= j k a j= e a (j) = a 2 e a (k) e a (j) = e a(k) a (b) Use the generating function F(z)of D 2 (n) to prove that Res f(z)= D 2(n) z=0 and compute the residues at all non-zero poles of f

29 References 55 (c) Prove that lim R and deduce the identity (24) (d) Check that if b = then we have f(z)dz = 0 2πi z =R D 2 (n) = n a { n a } + Deduce that a a k= e a (kn)( e a (k)) = ( ) 2 a { } n a (e) By noticing that a k= a e a (kn)( e a (kb)) = finalize the proof of Popoviciu s identity k= e a (knb)( e a (k)) References [BR04] Beck M, Robins S (2004) A formula related to the Frobenius problem in 2 dimensions In: Chudnovsky D, Chudnovsky G, Nathanson M (eds) Number theory New York seminar 2003 Springer, Berlin, pp 7 23 [BZ04] Beck M, Zacks S (2004) Refined upper bounds for the linear Diophantine problem of Frobenius Adv Appl Math 32: [Gou72] Gould HW (972) Combinatorial identities A standardized set of tables listing 500 binomial coefficients summations Morgantown, West Virginia [Odl95] Odlyzko AM (995) Asymptotic enumeration methods Elsevier, Amsterdam [Pop53] Popoviciu T (953) Asupra unei probleme de patitie a numerelor Stud Cercet Stiint [Shi06] Acad RP Rom, Fil Cluj 4:7 58 Shiu P (2006) Moment sums associated with linear binary forms Am Math Mon 3: [Tri00] Tripathi A (2000) The number of solutions to ax + by = n Fibonacci Q 38: [Wil90] Wilf HS (990) Generatingfunctionology Academic Press, New York

30

1. multiplication is commutative and associative;

1. multiplication is commutative and associative; Chapter 4 The Arithmetic of Z In this chapter, we start by introducing the concept of congruences; these are used in our proof (going back to Gauss 1 ) that every integer has a unique prime factorization.

More information

The Chinese Remainder Theorem

The Chinese Remainder Theorem Sacred Heart University DigitalCommons@SHU Academic Festival Apr 20th, 9:30 AM - 10:45 AM The Chinese Remainder Theorem Nancirose Piazza Follow this and additional works at: http://digitalcommons.sacredheart.edu/acadfest

More information

ALGEBRA. 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers

ALGEBRA. 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers ALGEBRA CHRISTIAN REMLING 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers by Z = {..., 2, 1, 0, 1,...}. Given a, b Z, we write a b if b = ac for some

More information

Chapter 8. P-adic numbers. 8.1 Absolute values

Chapter 8. P-adic numbers. 8.1 Absolute values Chapter 8 P-adic numbers Literature: N. Koblitz, p-adic Numbers, p-adic Analysis, and Zeta-Functions, 2nd edition, Graduate Texts in Mathematics 58, Springer Verlag 1984, corrected 2nd printing 1996, Chap.

More information

PUTNAM TRAINING NUMBER THEORY. Exercises 1. Show that the sum of two consecutive primes is never twice a prime.

PUTNAM TRAINING NUMBER THEORY. Exercises 1. Show that the sum of two consecutive primes is never twice a prime. PUTNAM TRAINING NUMBER THEORY (Last updated: December 11, 2017) Remark. This is a list of exercises on Number Theory. Miguel A. Lerma Exercises 1. Show that the sum of two consecutive primes is never twice

More information

NOTES ON DIOPHANTINE APPROXIMATION

NOTES ON DIOPHANTINE APPROXIMATION NOTES ON DIOPHANTINE APPROXIMATION Jan-Hendrik Evertse January 29, 200 9 p-adic Numbers Literature: N. Koblitz, p-adic Numbers, p-adic Analysis, and Zeta-Functions, 2nd edition, Graduate Texts in Mathematics

More information

EUCLID S ALGORITHM AND THE FUNDAMENTAL THEOREM OF ARITHMETIC after N. Vasiliev and V. Gutenmacher (Kvant, 1972)

EUCLID S ALGORITHM AND THE FUNDAMENTAL THEOREM OF ARITHMETIC after N. Vasiliev and V. Gutenmacher (Kvant, 1972) Intro to Math Reasoning Grinshpan EUCLID S ALGORITHM AND THE FUNDAMENTAL THEOREM OF ARITHMETIC after N. Vasiliev and V. Gutenmacher (Kvant, 1972) We all know that every composite natural number is a product

More information

2 Arithmetic. 2.1 Greatest common divisors. This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}.

2 Arithmetic. 2.1 Greatest common divisors. This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}. 2 Arithmetic This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}. (See [Houston, Chapters 27 & 28]) 2.1 Greatest common divisors Definition 2.16. If a, b are integers, we say

More information

Chapter 3 Basic Number Theory

Chapter 3 Basic Number Theory Chapter 3 Basic Number Theory What is Number Theory? Well... What is Number Theory? Well... Number Theory The study of the natural numbers (Z + ), especially the relationship between different sorts of

More information

Math 2070BC Term 2 Weeks 1 13 Lecture Notes

Math 2070BC Term 2 Weeks 1 13 Lecture Notes Math 2070BC 2017 18 Term 2 Weeks 1 13 Lecture Notes Keywords: group operation multiplication associative identity element inverse commutative abelian group Special Linear Group order infinite order cyclic

More information

Math 118: Advanced Number Theory. Samit Dasgupta and Gary Kirby

Math 118: Advanced Number Theory. Samit Dasgupta and Gary Kirby Math 8: Advanced Number Theory Samit Dasgupta and Gary Kirby April, 05 Contents Basics of Number Theory. The Fundamental Theorem of Arithmetic......................... The Euclidean Algorithm and Unique

More information

= 1 2x. x 2 a ) 0 (mod p n ), (x 2 + 2a + a2. x a ) 2

= 1 2x. x 2 a ) 0 (mod p n ), (x 2 + 2a + a2. x a ) 2 8. p-adic numbers 8.1. Motivation: Solving x 2 a (mod p n ). Take an odd prime p, and ( an) integer a coprime to p. Then, as we know, x 2 a (mod p) has a solution x Z iff = 1. In this case we can suppose

More information

NOTES ON FINITE FIELDS

NOTES ON FINITE FIELDS NOTES ON FINITE FIELDS AARON LANDESMAN CONTENTS 1. Introduction to finite fields 2 2. Definition and constructions of fields 3 2.1. The definition of a field 3 2.2. Constructing field extensions by adjoining

More information

Part II. Number Theory. Year

Part II. Number Theory. Year Part II Year 2017 2016 2015 2014 2013 2012 2011 2010 2009 2008 2007 2006 2005 2017 Paper 3, Section I 1G 70 Explain what is meant by an Euler pseudoprime and a strong pseudoprime. Show that 65 is an Euler

More information

1 Overview and revision

1 Overview and revision MTH6128 Number Theory Notes 1 Spring 2018 1 Overview and revision In this section we will meet some of the concerns of Number Theory, and have a brief revision of some of the relevant material from Introduction

More information

Course MA2C02, Hilary Term 2013 Section 9: Introduction to Number Theory and Cryptography

Course MA2C02, Hilary Term 2013 Section 9: Introduction to Number Theory and Cryptography Course MA2C02, Hilary Term 2013 Section 9: Introduction to Number Theory and Cryptography David R. Wilkins Copyright c David R. Wilkins 2000 2013 Contents 9 Introduction to Number Theory 63 9.1 Subgroups

More information

0 Sets and Induction. Sets

0 Sets and Induction. Sets 0 Sets and Induction Sets A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a A to denote that a is an element of the set

More information

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

CHAPTER 6. Prime Numbers. Definition and Fundamental Results CHAPTER 6 Prime Numbers Part VI of PJE. Definition and Fundamental Results 6.1. Definition. (PJE definition 23.1.1) An integer p is prime if p > 1 and the only positive divisors of p are 1 and p. If n

More information

Lecture notes: Algorithms for integers, polynomials (Thorsten Theobald)

Lecture notes: Algorithms for integers, polynomials (Thorsten Theobald) Lecture notes: Algorithms for integers, polynomials (Thorsten Theobald) 1 Euclid s Algorithm Euclid s Algorithm for computing the greatest common divisor belongs to the oldest known computing procedures

More information

Course 2BA1: Trinity 2006 Section 9: Introduction to Number Theory and Cryptography

Course 2BA1: Trinity 2006 Section 9: Introduction to Number Theory and Cryptography Course 2BA1: Trinity 2006 Section 9: Introduction to Number Theory and Cryptography David R. Wilkins Copyright c David R. Wilkins 2006 Contents 9 Introduction to Number Theory and Cryptography 1 9.1 Subgroups

More information

Part IA. Numbers and Sets. Year

Part IA. Numbers and Sets. Year Part IA Year 2017 2016 2015 2014 2013 2012 2011 2010 2009 2008 2007 2006 2005 2004 2003 2002 2001 2017 19 Paper 4, Section I 1D (a) Show that for all positive integers z and n, either z 2n 0 (mod 3) or

More information

Introduction to Number Theory

Introduction to Number Theory INTRODUCTION Definition: Natural Numbers, Integers Natural numbers: N={0,1,, }. Integers: Z={0,±1,±, }. Definition: Divisor If a Z can be writeen as a=bc where b, c Z, then we say a is divisible by b or,

More information

The Chinese Remainder Theorem

The Chinese Remainder Theorem The Chinese Remainder Theorem R. C. Daileda February 19, 2018 1 The Chinese Remainder Theorem We begin with an example. Example 1. Consider the system of simultaneous congruences x 3 (mod 5), x 2 (mod

More information

NUMBER SYSTEMS. Number theory is the study of the integers. We denote the set of integers by Z:

NUMBER SYSTEMS. Number theory is the study of the integers. We denote the set of integers by Z: NUMBER SYSTEMS Number theory is the study of the integers. We denote the set of integers by Z: Z = {..., 3, 2, 1, 0, 1, 2, 3,... }. The integers have two operations defined on them, addition and multiplication,

More information

MATH 433 Applied Algebra Lecture 4: Modular arithmetic (continued). Linear congruences.

MATH 433 Applied Algebra Lecture 4: Modular arithmetic (continued). Linear congruences. MATH 433 Applied Algebra Lecture 4: Modular arithmetic (continued). Linear congruences. Congruences Let n be a postive integer. The integers a and b are called congruent modulo n if they have the same

More information

Introduction to Abstract Mathematics

Introduction to Abstract Mathematics Introduction to Abstract Mathematics Notation: Z + or Z >0 denotes the set {1, 2, 3,...} of positive integers, Z 0 is the set {0, 1, 2,...} of nonnegative integers, Z is the set {..., 1, 0, 1, 2,...} of

More information

An integer p is prime if p > 1 and p has exactly two positive divisors, 1 and p.

An integer p is prime if p > 1 and p has exactly two positive divisors, 1 and p. Chapter 6 Prime Numbers Part VI of PJE. Definition and Fundamental Results Definition. (PJE definition 23.1.1) An integer p is prime if p > 1 and p has exactly two positive divisors, 1 and p. If n > 1

More information

Summary Slides for MATH 342 June 25, 2018

Summary Slides for MATH 342 June 25, 2018 Summary Slides for MATH 342 June 25, 2018 Summary slides based on Elementary Number Theory and its applications by Kenneth Rosen and The Theory of Numbers by Ivan Niven, Herbert Zuckerman, and Hugh Montgomery.

More information

WORKSHEET ON NUMBERS, MATH 215 FALL. We start our study of numbers with the integers: N = {1, 2, 3,...}

WORKSHEET ON NUMBERS, MATH 215 FALL. We start our study of numbers with the integers: N = {1, 2, 3,...} WORKSHEET ON NUMBERS, MATH 215 FALL 18(WHYTE) We start our study of numbers with the integers: Z = {..., 2, 1, 0, 1, 2, 3,... } and their subset of natural numbers: N = {1, 2, 3,...} For now we will not

More information

Definitions. Notations. Injective, Surjective and Bijective. Divides. Cartesian Product. Relations. Equivalence Relations

Definitions. Notations. Injective, Surjective and Bijective. Divides. Cartesian Product. Relations. Equivalence Relations Page 1 Definitions Tuesday, May 8, 2018 12:23 AM Notations " " means "equals, by definition" the set of all real numbers the set of integers Denote a function from a set to a set by Denote the image of

More information

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer? Chapter 3: Theory of Modular Arithmetic 25 SECTION C Solving Linear Congruences By the end of this section you will be able to solve congruence equations determine the number of solutions find the multiplicative

More information

PRIME NUMBERS YANKI LEKILI

PRIME NUMBERS YANKI LEKILI PRIME NUMBERS YANKI LEKILI We denote by N the set of natural numbers: 1,2,..., These are constructed using Peano axioms. We will not get into the philosophical questions related to this and simply assume

More information

Coding Theory ( Mathematical Background I)

Coding Theory ( Mathematical Background I) N.L.Manev, Lectures on Coding Theory (Maths I) p. 1/18 Coding Theory ( Mathematical Background I) Lector: Nikolai L. Manev Institute of Mathematics and Informatics, Sofia, Bulgaria N.L.Manev, Lectures

More information

MATH 361: NUMBER THEORY FOURTH LECTURE

MATH 361: NUMBER THEORY FOURTH LECTURE MATH 361: NUMBER THEORY FOURTH LECTURE 1. Introduction Everybody knows that three hours after 10:00, the time is 1:00. That is, everybody is familiar with modular arithmetic, the usual arithmetic of the

More information

Number Theory Alex X. Liu & Haipeng Dai

Number Theory Alex X. Liu & Haipeng Dai Number Theory Alex X. Liu & Haipeng Dai haipengdai@nju.edu.cn 313 CS Building Department of Computer Science and Technology Nanjing University How to compute gcd(x,y) Observation: gcd(x,y) = gcd(x-y, y)

More information

Numbers, Groups and Cryptography. Gordan Savin

Numbers, Groups and Cryptography. Gordan Savin Numbers, Groups and Cryptography Gordan Savin Contents Chapter 1. Euclidean Algorithm 5 1. Euclidean Algorithm 5 2. Fundamental Theorem of Arithmetic 9 3. Uniqueness of Factorization 14 4. Efficiency

More information

Basic elements of number theory

Basic elements of number theory Cryptography Basic elements of number theory Marius Zimand 1 Divisibility, prime numbers By default all the variables, such as a, b, k, etc., denote integer numbers. Divisibility a 0 divides b if b = a

More information

2.3 In modular arithmetic, all arithmetic operations are performed modulo some integer.

2.3 In modular arithmetic, all arithmetic operations are performed modulo some integer. CHAPTER 2 INTRODUCTION TO NUMBER THEORY ANSWERS TO QUESTIONS 2.1 A nonzero b is a divisor of a if a = mb for some m, where a, b, and m are integers. That is, b is a divisor of a if there is no remainder

More information

Basic elements of number theory

Basic elements of number theory Cryptography Basic elements of number theory Marius Zimand By default all the variables, such as a, b, k, etc., denote integer numbers. Divisibility a 0 divides b if b = a k for some integer k. Notation

More information

Part IA Numbers and Sets

Part IA Numbers and Sets Part IA Numbers and Sets Definitions Based on lectures by A. G. Thomason Notes taken by Dexter Chua Michaelmas 2014 These notes are not endorsed by the lecturers, and I have modified them (often significantly)

More information

Chapter 1. Sets and Numbers

Chapter 1. Sets and Numbers Chapter 1. Sets and Numbers 1. Sets A set is considered to be a collection of objects (elements). If A is a set and x is an element of the set A, we say x is a member of A or x belongs to A, and we write

More information

A SURVEY OF PRIMALITY TESTS

A SURVEY OF PRIMALITY TESTS A SURVEY OF PRIMALITY TESTS STEFAN LANCE Abstract. In this paper, we show how modular arithmetic and Euler s totient function are applied to elementary number theory. In particular, we use only arithmetic

More information

Definitions, Theorems and Exercises. Abstract Algebra Math 332. Ethan D. Bloch

Definitions, Theorems and Exercises. Abstract Algebra Math 332. Ethan D. Bloch Definitions, Theorems and Exercises Abstract Algebra Math 332 Ethan D. Bloch December 26, 2013 ii Contents 1 Binary Operations 3 1.1 Binary Operations............................... 4 1.2 Isomorphic Binary

More information

Math 314 Course Notes: Brief description

Math 314 Course Notes: Brief description Brief description These are notes for Math 34, an introductory course in elementary number theory Students are advised to go through all sections in detail and attempt all problems These notes will be

More information

1 Lecture 1 (1/5/2009)

1 Lecture 1 (1/5/2009) 1 Lecture 1 (1/5/2009) Notation 1.1 Introduce N := {0, 1, 2,... }, Z, Q, R, and C. Also let Z + := N \ {0}. Set notations. Recalled basic notions of a function being one to one, onto, and invertible. Think

More information

1 Lecture 1 (1/5/2009)

1 Lecture 1 (1/5/2009) 1 Lecture 1 (1/5/2009) Notation 1.1 Introduce N := {0, 1, 2,... }, Z, Q, R, and C. Also let Z + := N \ {0}. Set notations. Recalled basic notions of a function being one to one, onto, and invertible. Think

More information

MA257: INTRODUCTION TO NUMBER THEORY LECTURE NOTES

MA257: INTRODUCTION TO NUMBER THEORY LECTURE NOTES MA257: INTRODUCTION TO NUMBER THEORY LECTURE NOTES 2018 57 5. p-adic Numbers 5.1. Motivating examples. We all know that 2 is irrational, so that 2 is not a square in the rational field Q, but that we can

More information

Moreover this binary operation satisfies the following properties

Moreover this binary operation satisfies the following properties Contents 1 Algebraic structures 1 1.1 Group........................................... 1 1.1.1 Definitions and examples............................. 1 1.1.2 Subgroup.....................................

More information

4 Number Theory and Cryptography

4 Number Theory and Cryptography 4 Number Theory and Cryptography 4.1 Divisibility and Modular Arithmetic This section introduces the basics of number theory number theory is the part of mathematics involving integers and their properties.

More information

4 PRIMITIVE ROOTS Order and Primitive Roots The Index Existence of primitive roots for prime modulus...

4 PRIMITIVE ROOTS Order and Primitive Roots The Index Existence of primitive roots for prime modulus... PREFACE These notes have been prepared by Dr Mike Canfell (with minor changes and extensions by Dr Gerd Schmalz) for use by the external students in the unit PMTH 338 Number Theory. This booklet covers

More information

Gaussian integers. 1 = a 2 + b 2 = c 2 + d 2.

Gaussian integers. 1 = a 2 + b 2 = c 2 + d 2. Gaussian integers 1 Units in Z[i] An element x = a + bi Z[i], a, b Z is a unit if there exists y = c + di Z[i] such that xy = 1. This implies 1 = x 2 y 2 = (a 2 + b 2 )(c 2 + d 2 ) But a 2, b 2, c 2, d

More information

Homework #2 solutions Due: June 15, 2012

Homework #2 solutions Due: June 15, 2012 All of the following exercises are based on the material in the handout on integers found on the class website. 1. Find d = gcd(475, 385) and express it as a linear combination of 475 and 385. That is

More information

1. (a) q = 4, r = 1. (b) q = 0, r = 0. (c) q = 5, r = (a) q = 9, r = 3. (b) q = 15, r = 17. (c) q = 117, r = 11.

1. (a) q = 4, r = 1. (b) q = 0, r = 0. (c) q = 5, r = (a) q = 9, r = 3. (b) q = 15, r = 17. (c) q = 117, r = 11. 000 Chapter 1 Arithmetic in 1.1 The Division Algorithm Revisited 1. (a) q = 4, r = 1. (b) q = 0, r = 0. (c) q = 5, r = 3. 2. (a) q = 9, r = 3. (b) q = 15, r = 17. (c) q = 117, r = 11. 3. (a) q = 6, r =

More information

DISTRIBUTION OF FIBONACCI AND LUCAS NUMBERS MODULO 3 k

DISTRIBUTION OF FIBONACCI AND LUCAS NUMBERS MODULO 3 k DISTRIBUTION OF FIBONACCI AND LUCAS NUMBERS MODULO 3 k RALF BUNDSCHUH AND PETER BUNDSCHUH Dedicated to Peter Shiue on the occasion of his 70th birthday Abstract. Let F 0 = 0,F 1 = 1, and F n = F n 1 +F

More information

a the relation arb is defined if and only if = 2 k, k

a the relation arb is defined if and only if = 2 k, k DISCRETE MATHEMATICS Past Paper Questions in Number Theory 1. Prove that 3k + 2 and 5k + 3, k are relatively prime. (Total 6 marks) 2. (a) Given that the integers m and n are such that 3 (m 2 + n 2 ),

More information

Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr.

Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr. Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr. Chapter : Logic Topics:. Statements, Negation, and Compound Statements.2 Truth Tables and Logical Equivalences.3

More information

LEGENDRE S THEOREM, LEGRANGE S DESCENT

LEGENDRE S THEOREM, LEGRANGE S DESCENT LEGENDRE S THEOREM, LEGRANGE S DESCENT SUPPLEMENT FOR MATH 370: NUMBER THEORY Abstract. Legendre gave simple necessary and sufficient conditions for the solvablility of the diophantine equation ax 2 +

More information

D i v i s i b i l i t y

D i v i s i b i l i t y a D i v i s i b i l i t y statement which asserts that all numbers possess a certain property cannot be proved in this manner. The assertion, "Every prime number of the form An + 1 is a sum of two squares,"

More information

MATH Fundamental Concepts of Algebra

MATH Fundamental Concepts of Algebra MATH 4001 Fundamental Concepts of Algebra Instructor: Darci L. Kracht Kent State University April, 015 0 Introduction We will begin our study of mathematics this semester with the familiar notion of even

More information

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer? Chapter 3: Theory of Modular Arithmetic 25 SECTION C Solving Linear Congruences By the end of this section you will be able to solve congruence equations determine the number of solutions find the multiplicative

More information

18-29 mai 2015: Oujda (Maroc) École de recherche CIMPA-Oujda Théorie des Nombres et ses Applications. Continued fractions. Michel Waldschmidt

18-29 mai 2015: Oujda (Maroc) École de recherche CIMPA-Oujda Théorie des Nombres et ses Applications. Continued fractions. Michel Waldschmidt 18-29 mai 2015: Oujda (Maroc) École de recherche CIMPA-Oujda Théorie des Nombres et ses Applications. Continued fractions Michel Waldschmidt We first consider generalized continued fractions of the form

More information

3 The fundamentals: Algorithms, the integers, and matrices

3 The fundamentals: Algorithms, the integers, and matrices 3 The fundamentals: Algorithms, the integers, and matrices 3.4 The integers and division This section introduces the basics of number theory number theory is the part of mathematics involving integers

More information

SOLUTIONS TO PROBLEM SET 1. Section = 2 3, 1. n n + 1. k(k + 1) k=1 k(k + 1) + 1 (n + 1)(n + 2) n + 2,

SOLUTIONS TO PROBLEM SET 1. Section = 2 3, 1. n n + 1. k(k + 1) k=1 k(k + 1) + 1 (n + 1)(n + 2) n + 2, SOLUTIONS TO PROBLEM SET 1 Section 1.3 Exercise 4. We see that 1 1 2 = 1 2, 1 1 2 + 1 2 3 = 2 3, 1 1 2 + 1 2 3 + 1 3 4 = 3 4, and is reasonable to conjecture n k=1 We will prove this formula by induction.

More information

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

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2. Chapter 1 LINEAR EQUATIONS 11 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 real

More information

Know the Well-ordering principle: Any set of positive integers which has at least one element contains a smallest element.

Know the Well-ordering principle: Any set of positive integers which has at least one element contains a smallest element. The first exam will be on Monday, June 8, 202. The syllabus will be sections. and.2 in Lax, and the number theory handout found on the class web site, plus the handout on the method of successive squaring

More information

Definition 6.1 (p.277) A positive integer n is prime when n > 1 and the only positive divisors are 1 and n. Alternatively

Definition 6.1 (p.277) A positive integer n is prime when n > 1 and the only positive divisors are 1 and n. Alternatively 6 Prime Numbers Part VI of PJE 6.1 Fundamental Results Definition 6.1 (p.277) A positive integer n is prime when n > 1 and the only positive divisors are 1 and n. Alternatively D (p) = { p 1 1 p}. Otherwise

More information

Course 311: Michaelmas Term 2005 Part III: Topics in Commutative Algebra

Course 311: Michaelmas Term 2005 Part III: Topics in Commutative Algebra Course 311: Michaelmas Term 2005 Part III: Topics in Commutative Algebra D. R. Wilkins Contents 3 Topics in Commutative Algebra 2 3.1 Rings and Fields......................... 2 3.2 Ideals...............................

More information

2 Lecture 2: Logical statements and proof by contradiction Lecture 10: More on Permutations, Group Homomorphisms 31

2 Lecture 2: Logical statements and proof by contradiction Lecture 10: More on Permutations, Group Homomorphisms 31 Contents 1 Lecture 1: Introduction 2 2 Lecture 2: Logical statements and proof by contradiction 7 3 Lecture 3: Induction and Well-Ordering Principle 11 4 Lecture 4: Definition of a Group and examples 15

More information

A Readable Introduction to Real Mathematics

A Readable Introduction to Real Mathematics Solutions to selected problems in the book A Readable Introduction to Real Mathematics D. Rosenthal, D. Rosenthal, P. Rosenthal Chapter 7: The Euclidean Algorithm and Applications 1. Find the greatest

More information

ALGEBRA I (LECTURE NOTES 2017/2018) LECTURE 9 - CYCLIC GROUPS AND EULER S FUNCTION

ALGEBRA I (LECTURE NOTES 2017/2018) LECTURE 9 - CYCLIC GROUPS AND EULER S FUNCTION ALGEBRA I (LECTURE NOTES 2017/2018) LECTURE 9 - CYCLIC GROUPS AND EULER S FUNCTION PAVEL RŮŽIČKA 9.1. Congruence modulo n. Let us have a closer look at a particular example of a congruence relation on

More information

. As the binomial coefficients are integers we have that. 2 n(n 1).

. As the binomial coefficients are integers we have that. 2 n(n 1). Math 580 Homework. 1. Divisibility. Definition 1. Let a, b be integers with a 0. Then b divides b iff there is an integer k such that b = ka. In the case we write a b. In this case we also say a is a factor

More information

Chapter 5. Modular arithmetic. 5.1 The modular ring

Chapter 5. Modular arithmetic. 5.1 The modular ring Chapter 5 Modular arithmetic 5.1 The modular ring Definition 5.1. Suppose n N and x, y Z. Then we say that x, y are equivalent modulo n, and we write x y mod n if n x y. It is evident that equivalence

More information

Number Theory Proof Portfolio

Number Theory Proof Portfolio Number Theory Proof Portfolio Jordan Rock May 12, 2015 This portfolio is a collection of Number Theory proofs and problems done by Jordan Rock in the Spring of 2014. The problems are organized first by

More information

I Foundations Of Divisibility And Congruence 1

I Foundations Of Divisibility And Congruence 1 Contents I Foundations Of Divisibility And Congruence 1 1 Divisibility 3 1.1 Definitions............................. 3 1.2 Properties Of Divisibility..................... 5 1.3 Some Basic Combinatorial

More information

CHAPTER 3. Congruences. Congruence: definitions and properties

CHAPTER 3. Congruences. Congruence: definitions and properties CHAPTER 3 Congruences Part V of PJE Congruence: definitions and properties Definition. (PJE definition 19.1.1) Let m > 0 be an integer. Integers a and b are congruent modulo m if m divides a b. We write

More information

FROM GROUPS TO GALOIS Amin Witno

FROM GROUPS TO GALOIS Amin Witno WON Series in Discrete Mathematics and Modern Algebra Volume 6 FROM GROUPS TO GALOIS Amin Witno These notes 1 have been prepared for the students at Philadelphia University (Jordan) who are taking the

More information

ECEN 5022 Cryptography

ECEN 5022 Cryptography Elementary Algebra and Number Theory University of Colorado Spring 2008 Divisibility, Primes Definition. N denotes the set {1, 2, 3,...} of natural numbers and Z denotes the set of integers {..., 2, 1,

More information

Euler s, Fermat s and Wilson s Theorems

Euler s, Fermat s and Wilson s Theorems Euler s, Fermat s and Wilson s Theorems R. C. Daileda February 17, 2018 1 Euler s Theorem Consider the following example. Example 1. Find the remainder when 3 103 is divided by 14. We begin by computing

More information

Topics in Number Theory

Topics in Number Theory Topics in Number Theory Valentin Goranko Topics in Number Theory This essay is an introduction to some basic topics in number theory related to divisibility, prime numbers and congruences. These topics

More information

Number Theory Marathon. Mario Ynocente Castro, National University of Engineering, Peru

Number Theory Marathon. Mario Ynocente Castro, National University of Engineering, Peru Number Theory Marathon Mario Ynocente Castro, National University of Engineering, Peru 1 2 Chapter 1 Problems 1. (IMO 1975) Let f(n) denote the sum of the digits of n. Find f(f(f(4444 4444 ))). 2. Prove

More information

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1 MATH 4400 SOLUTIONS TO SOME EXERCISES 1.1.3. If a b and b c show that a c. 1. Chapter 1 Solution: a b means that b = na and b c that c = mb. Substituting b = na gives c = (mn)a, that is, a c. 1.2.1. Find

More information

ELEMENTARY LINEAR ALGEBRA

ELEMENTARY LINEAR ALGEBRA ELEMENTARY LINEAR ALGEBRA K R MATTHEWS DEPARTMENT OF MATHEMATICS UNIVERSITY OF QUEENSLAND First Printing, 99 Chapter LINEAR EQUATIONS Introduction to linear equations A linear equation in n unknowns x,

More information

32 Divisibility Theory in Integral Domains

32 Divisibility Theory in Integral Domains 3 Divisibility Theory in Integral Domains As we have already mentioned, the ring of integers is the prototype of integral domains. There is a divisibility relation on * : an integer b is said to be divisible

More information

1. (a) q = 4, r = 1. (b) q = 0, r = 0. (c) q = 5, r = (a) q = 9, r = 3. (b) q = 15, r = 17. (c) q = 117, r = 11.

1. (a) q = 4, r = 1. (b) q = 0, r = 0. (c) q = 5, r = (a) q = 9, r = 3. (b) q = 15, r = 17. (c) q = 117, r = 11. 000 Chapter 1 Arithmetic in 1.1 The Division Algorithm Revisited 1. (a) q = 4, r = 1. (b) q = 0, r = 0. (c) q = 5, r = 3. 2. (a) q = 9, r = 3. (b) q = 15, r = 17. (c) q = 117, r = 11. 3. (a) q = 6, r =

More information

Chapter 1 : The language of mathematics.

Chapter 1 : The language of mathematics. MAT 200, Logic, Language and Proof, Fall 2015 Summary Chapter 1 : The language of mathematics. Definition. A proposition is a sentence which is either true or false. Truth table for the connective or :

More information

Math 109 HW 9 Solutions

Math 109 HW 9 Solutions Math 109 HW 9 Solutions Problems IV 18. Solve the linear diophantine equation 6m + 10n + 15p = 1 Solution: Let y = 10n + 15p. Since (10, 15) is 5, we must have that y = 5x for some integer x, and (as we

More information

A FIRST COURSE IN NUMBER THEORY

A FIRST COURSE IN NUMBER THEORY A FIRST COURSE IN NUMBER THEORY ALEXANDRU BUIUM Contents 1. Introduction 2 2. The integers 4 3. Induction 6 4. Finite sets, finite sums, finite products 7 5. The rationals 8 6. Divisibility and Euclid

More information

Number Theory Marathon. Mario Ynocente Castro, National University of Engineering, Peru

Number Theory Marathon. Mario Ynocente Castro, National University of Engineering, Peru Number Theory Marathon Mario Ynocente Castro, National University of Engineering, Peru 1 2 Chapter 1 Problems 1. (IMO 1975) Let f(n) denote the sum of the digits of n. Find f(f(f(4444 4444 ))). 2. Prove

More information

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Lecture Notes 1 Basic Concepts of Mathematics MATH 352 Lecture Notes 1 Basic Concepts of Mathematics MATH 352 Ivan Avramidi New Mexico Institute of Mining and Technology Socorro, NM 87801 June 3, 2004 Author: Ivan Avramidi; File: absmath.tex; Date: June 11,

More information

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction Math 4 Summer 01 Elementary Number Theory Notes on Mathematical Induction Principle of Mathematical Induction Recall the following axiom for the set of integers. Well-Ordering Axiom for the Integers If

More information

Math Introduction to Modern Algebra

Math Introduction to Modern Algebra Math 343 - Introduction to Modern Algebra Notes Rings and Special Kinds of Rings Let R be a (nonempty) set. R is a ring if there are two binary operations + and such that (A) (R, +) is an abelian group.

More information

7. Prime Numbers Part VI of PJE

7. Prime Numbers Part VI of PJE 7. Prime Numbers Part VI of PJE 7.1 Definition (p.277) A positive integer n is prime when n > 1 and the only divisors are ±1 and +n. That is D (n) = { n 1 1 n}. Otherwise n > 1 is said to be composite.

More information

D-MATH Algebra II FS18 Prof. Marc Burger. Solution 26. Cyclotomic extensions.

D-MATH Algebra II FS18 Prof. Marc Burger. Solution 26. Cyclotomic extensions. D-MAH Algebra II FS18 Prof. Marc Burger Solution 26 Cyclotomic extensions. In the following, ϕ : Z 1 Z 0 is the Euler function ϕ(n = card ((Z/nZ. For each integer n 1, we consider the n-th cyclotomic polynomial

More information

Elementary Algebra Chinese Remainder Theorem Euclidean Algorithm

Elementary Algebra Chinese Remainder Theorem Euclidean Algorithm Elementary Algebra Chinese Remainder Theorem Euclidean Algorithm April 11, 2010 1 Algebra We start by discussing algebraic structures and their properties. This is presented in more depth than what we

More information

MATH 145 Algebra, Solutions to Assignment 4

MATH 145 Algebra, Solutions to Assignment 4 MATH 145 Algebra, Solutions to Assignment 4 1: a) Find the inverse of 178 in Z 365. Solution: We find s and t so that 178s + 365t = 1, and then 178 1 = s. The Euclidean Algorithm gives 365 = 178 + 9 178

More information

MATH 117 LECTURE NOTES

MATH 117 LECTURE NOTES MATH 117 LECTURE NOTES XIN ZHOU Abstract. This is the set of lecture notes for Math 117 during Fall quarter of 2017 at UC Santa Barbara. The lectures follow closely the textbook [1]. Contents 1. The set

More information

Number Theory. Henry Liu, 6 July 2007

Number Theory. Henry Liu, 6 July 2007 Number Theory Henry Liu, 6 July 007 1. Introduction In one sentence, number theory is the area of mathematics which studies the properties of integers. Some of the most studied subareas are the theories

More information

LECTURE 4: CHINESE REMAINDER THEOREM AND MULTIPLICATIVE FUNCTIONS

LECTURE 4: CHINESE REMAINDER THEOREM AND MULTIPLICATIVE FUNCTIONS LECTURE 4: CHINESE REMAINDER THEOREM AND MULTIPLICATIVE FUNCTIONS 1. The Chinese Remainder Theorem We now seek to analyse the solubility of congruences by reinterpreting their solutions modulo a composite

More information

Considering our result for the sum and product of analytic functions, this means that for (a 0, a 1,..., a N ) C N+1, the polynomial.

Considering our result for the sum and product of analytic functions, this means that for (a 0, a 1,..., a N ) C N+1, the polynomial. Lecture 3 Usual complex functions MATH-GA 245.00 Complex Variables Polynomials. Construction f : z z is analytic on all of C since its real and imaginary parts satisfy the Cauchy-Riemann relations and

More information