Math 537 — Elementary Number Theory

Total Page:16

File Type:pdf, Size:1020Kb

Math 537 — Elementary Number Theory MATH 537 Class Notes Ed Belk Fall, 2014 1 Week One 1.1 Lecture One Instructor: Greg Martin, Office Math 212 Text: Niven, Zuckerman & Montgomery Conventions: N will denote the set of positive integers, and N0 the set of nonnegative integers. Unless otherwise stated, all variables are assumed to be elements of N. x1.2 { Divisibility Definition: Let a; b 2 Z with a 6= 0. Then a is said to divide b, denoted ajb, if there exists some c 2 Z such that ac = b. If in addition a 2 N, then a is called a divisor of b. Properties of Divisibility: For all a; b; c 2 Z with a 6= 0, one has: • If ajb then ±aj ± b • 1jb; bjb; aj0 • If ajb and bja then a = ±b • If ajb and ajc, then aj(bx + cy) for any x; y 2 Z If we assume that a and b are positive, we also have • If ajb then a ≤ b The Division Algorithm: Let a; b 2 N. Then there exist unique natural numbers q and r such that: 1. b = aq + r, and 2. 0 ≤ r < a Proof: We prove existence first; consider the set R = fb − an : n 2 N0g \ N0: By the well-ordering axiom, R has a least element r, and we define q to be the nonnegative integer q such that b − aq = r. Then b = aq + r and r ≥ 0; moreover, if r ≥ a then one has 0 ≤ r − a = (b − aq) − a = b − a(q + 1) < b − aq + r; contradicting the minimality of r 2 R, and we are done. 1 Now, suppose q0 and r0 are such that we have b = aq + r = aq0 + r0: Without loss of generality we may assume than r ≥ r0. Then r − r0 = (b − aq) − (b − aq0) = a(q0 − q) ) aj(r − r0); but 0 ≤ r − r0 ≤ r < a, and so the above equation is a contradiction unless r − r0 = 0, and the result is immediate. Greatest Common Divisor: Given any two integers a and b not both equal to zero, we define their greatest common divisor (commonly abbreviated gcd) to be the largest d 2 N such that dja and djb; we write d = (a; b). Note that because a and b each have only finitely many divisors, the gcd is always well-defined. Theorem 1.1.1 Let a; b 2 Z, not both equal to zero. Then: 1. (a; b) = min S, where S = (fax + by : x; y 2 Zg \ N), and 2. For any c 2 Z such that cja and cjb, we have cj(a; b). The existence of integers x; y so that ax + by = (a; b) as in part (1) is known as B´ezout'sidentity. Proof: 1. Let m = min S, with u and v such that m = au + bv, and let g = (a; b); note that m ≤ a. Since gja and gjb, we know from the properties of divisibility that gjm and so g ≤ m. Now, if m - a then by the division algorithm we may write a = mq + r with 0 < r < m, and thus r = a − mq = a − q(au + bv) = a(1 − qu) + b(−qv) 2 S; and we deduce that r ≥ m = min S, a contradiction; thus mja. In the same fashion we show mjb, and so by definition m ≤ (a; b) = g, and we are done. 2. If cja and cjb, then we know cj(ax + by) for every x; y 2 Z, and in particular for those u; v such that (a; b) = au + bv, whose existence is guaranteed by part 1. 2 1.2 Lecture Two Recall: B´ezout'sidentity states that (a; b) is the smallest positive integer that may be written ax + by, where x; y 2 Z. Proposition 1.2.1 For a; b 2 N, one has (ma; mb) = m(a; b). a b 1 a b Corollary 1: If dja; djb, then d ; d = d (a; b); in particular, (a;b) ; (a;b) = 1. Proof: Set g = (a; b), so that we may write ax + by = g; for some x; y 2 Z. Then mg = (ma)x + (mb)y; thus mg ≥ (ma; mb): Furthermore, gja and so mgjma; similarly mgjmb, thus mg ≤ (ma; mb), and we are done. Definition: Two integers a and b are called relatively prime (or coprime) if (a; b) = 1. nb. We observe that (a; b) = 1 if and only if there exist x; y such that ax+by = 1. The corresponding statement with (a; b) = k > 1 is not, in general, true, however it is the case that ax + by = k ) (a; b)jk: Proposition 1.2.2 If (a; n) = (b; n) = 1, then (ab; n) = 1. Proof: Suppose we have u; v; x; y so that au + nv = bx + ny = 1; then we have 1 = 1 · 1 = (au + nv)(bx + ny) = ab(ux) + n(auy + bvx + nvy); and the result is immediate. [Aside: Compare with the analagous result in commutative algebra. If R is a commutative, unital ring and I; J; K ⊂ R are ideals such that I + K = J + K = R, then IJ + K = R.] Proposition 1.2.3 If ajc; bjc, and (a; b) = 1, then abjc. (Note that this is not, in general, true for (a; b) > 1, e.g. a = b = c = 2.) Proof: Choose m; n; x; y so that c = am = bn and ax + by = 1. Then c = cax + cby = (bn)ax + (am)by = ab(nx + my); and we deduce that abjc. Theorem 1.2.4 (Theorem 1.10, Niven) If djab and (b; d) = 1, then dja. Proof: Exercise. nb. If dja; djb, then djb + ax for any x 2 Z. In fact, the condition is also necessary, as b = (b + ax) − x(a). The Euclidean Algorithm: How can we find the gcd of two integers, for example 537 and 105? By the division algorithm, we have 537 = 5 · 105 + 12, and so by the above note we know (537; 105) = (105; 12). Repeating this process, we see 105 = 8 · 12 + 9 ) (105; 12) = (12; 9); 12 = 1 · 9 + 3 ) (12; 9) = (9; 3); 3 9 = 3 · 3 + 0 ) (9; 3) = (3; 0) = 3: Thus (537; 105) = 3. Notation: The least common multiple of a and b is denoted lcm(a; b) or, more commonly, [a; b]. Exercise: Show that (a; b)[a; b] = ab. x1.3 { Primes Definition: A natural number n is called prime if it has exactly two divisors. n is called composite if there exists some d with 1 < d < n such that djn. The integer n = 1 is neither prime nor composite. Notation: Unless otherwise stated, p will denote a prime number. Lemma 1.2.5 (Euclid's lemma) If pjab, then pja or pjb. Proof: Suppose p - b. Then (p; b) = 1, and so by theorem 1.2.4 we know that pja. Theorem 1.2.6 (The Fundamental Theorem of Arithmetic) Every n 2 N; n > 2 may be written as the product of primes; moreover this expression is unique up to reordering of the factors. Proof: (existence) We use strong induction. The case n = 2 is trivial from the definition of a prime, therefore suppose n > 2. If n is prime we have the trivial factorization n = n, otherwise we may write n = ab, with 1 < a < n and 1 < b < n. By the inductive hypothesis we may write a = p1p2 ··· pk; b = q1q2 ··· ql, with each pi; qj prime, and the result is immediate. (uniqueness) Let n 2 N and suppose we have n = p1p2 ··· pk = q1q2 ··· ql; each pi; qj prime. Since p1jq1q2 ··· ql we have by lemma 1.2.5 that p1jq1 or p1jq2 ··· ql. Repeating this process as many times as necessary, we find qt such that p1jqt, and by relabelling the qj if necessary we will assume t = 1. Since p1 6= 1 this implies that p1 = q1, as q1 has no other factors. We then cancel p1 = q1 on both sides of the equation and we have p2p3 ··· pk = q2q3 ··· ql: We apply the same argument to this expression to obtain p2 = q2; p3 = q3, and so on; it follows that k = l, and we are done. 4 2 Week Two 2.1 Lecture Three Doing a linear algebra problem backwards. Consider the augmented matrix 1 0 537 ; 0 1 105 x 537 this system clearly has solution = : Moreover, from basic linear algebra we know that the application y 105 of elementary row operations to this augmented system will not change the solution; therefore, with R1;R2 x 537 respectively denoting the first and second row of the matrix, we observe that = is also a solution y 105 to the augmented matrices 1 −5 12 (R ! R − 5R ); 0 1 105 1 1 2 1 −5 12 (R ! R − 8R ); −8 41 9 2 2 1 9 −46 3 (R ! R − R ); −8 41 9 1 1 2 9 −46 3 (R ! R − 3R ): −35 179 0 2 2 1 Thus we have the matrix equation 9 −46 537 3 = : −35 179 105 0 The first entry of this equation indicates that 9(537) + (−46)(105) = 3 = (537; 105), while the entries in the 105 537 second row of the matrix are −35 = − (537;105) and 179 = (537;105) . This operation is known as the extended Euclidean algorithm. Lemma 2.1.1 Let a; b 2 N and use the division algorithm to write b = aq + r with 0 ≤ r < a. Then ajb if and only if r = 0. Proof: If r = 0 then b = aq and we are done.
Recommended publications
  • Number Theory, Dover Publications, Inc., New York, 1994
    Theory of Numbers Divisibility Theory in the Integers, The Theory of Congruences, Number-Theoretic Functions, Primitive Roots, Quadratic Residues Yotsanan Meemark Informal style based on the course 2301331 Theory of Numbers, offered at Department of Mathematics and Computer Science, Faculty of Science, Chulalongkorn University Second version August 2016 Any comment or suggestion, please write to [email protected] Contents 1 Divisibility Theory in the Integers 1 1.1 The Division Algorithm and GCD . 1 1.2 The Fundamental Theorem of Arithmetic . 5 1.3 The Euclidean Algorithm and Linear Diophantine Equations . 8 2 The Theory of Congruences 13 2.1 Basic Properties of Congruence . 13 2.2 Linear Congruences . 16 2.3 Reduced Residue Systems . 18 2.4 Polynomial Congruences . 21 3 Number-Theoretic Functions 25 3.1 Multiplicative Functions . 25 3.2 The Mobius¨ Inversion Formula . 28 3.3 The Greatest Integer Function . 30 4 Primitive Roots 33 4.1 The Order of an Integer Modulo n ............................ 33 4.2 Integers Having Primitive Roots . 35 4.3 nth power residues . 39 4.4 Hensel’s Lemma . 41 5 Quadratic Residues 45 5.1 The Legendre Symbol . 45 5.2 Quadratic Reciprocity . 48 Bibliography 53 Index 54 Chapter 1 Divisibility Theory in the Integers Let N denote the set of positive integers and let Z be the set of integers. 1.1 The Division Algorithm and GCD Theorem 1.1.1. [Well-Ordering Principle] Every nonempty set S of nonnegative integers contains a least element; that is, there is some integer a in S such that a ≤ b for all b 2 S.
    [Show full text]
  • The Complete Splittings of Finite Abelian Groups
    The complete splittings of finite abelian groups Kevin Zhaoa aDepartment of Mathematics, South China normal university, Guangzhou 510631, China Abstract Let G be a finite group. We will say that M and S form a complete split- ting (splitting) of G if every element (nonzero element) g of G has a unique representation of the form g = ms with m ∈ M and s ∈ S, and 0 has a such representation (while 0 has no such representation). In this paper, we determine the structures of complete splittings of finite abelian groups. In particular, for complete splittings of cyclic groups our de- scription is more specific. Furthermore, we show some results for existence and nonexistence of complete splittings of cyclic groups and find a relationship between complete splittings and splittings for finite groups. Keywords: complete splittings, splittings, cyclic groups, finite abelian groups, relationship. 1. Introduction The splittings of finite abelian groups are closely related to lattice tilings and are easy to be generated to lattice packings. Let K0 be a polytope composed of unit cubes and v + K0 be a translate of K0 for some vector v. A family of translations {v + K0 : v ∈ H} is called an integer lattice packing if H is an n-dimensional subgroup of Zn and, for any two vectors v and w in H, the interiors of v + K0 and w + K0 are disjoint; furthermore, if the n-dimensional Euclidean space Zn is contained in the family of these translations, then we call it an integer lattice tiling. The splitting problem can be traceable to a geometric problem posed by H.
    [Show full text]
  • Primes in Arithmetical Progression
    Colby College Digital Commons @ Colby Honors Theses Student Research 2019 Primes in Arithmetical Progression Edward C. Wessel Colby College Follow this and additional works at: https://digitalcommons.colby.edu/honorstheses Part of the Analysis Commons, and the Number Theory Commons Colby College theses are protected by copyright. They may be viewed or downloaded from this site for the purposes of research and scholarship. Reproduction or distribution for commercial purposes is prohibited without written permission of the author. Recommended Citation Wessel, Edward C., "Primes in Arithmetical Progression" (2019). Honors Theses. Paper 935. https://digitalcommons.colby.edu/honorstheses/935 This Honors Thesis (Open Access) is brought to you for free and open access by the Student Research at Digital Commons @ Colby. It has been accepted for inclusion in Honors Theses by an authorized administrator of Digital Commons @ Colby. Primes in Arithmetical Progression Edward (Teddy) Wessel April 2019 Contents 1 Message to the Reader 3 2 Introduction 3 2.1 Primes . 3 2.2 Euclid . 3 2.3 Euler and Dirichlet . 4 2.4 Shapiro . 4 2.5 Formal Statement . 5 3 Arithmetical Functions 6 3.1 Euler’s Totient Function . 6 3.2 The Mobius Function . 6 3.3 A Relationship Between j and m ................ 7 3.4 The Mangoldt Function . 8 4 Dirichlet Convolution 9 4.1 Definition . 10 4.2 Some Basic Properties of Dirichlet Multiplication . 10 4.3 Identity and Inverses within Dirichlet Multiplication . 11 4.4 Multiplicative Functions and their Relationship with Dirich- let Convolution . 13 4.5 Generalized Convolutions . 15 4.6 Partial Sums of Dirichlet Convolution .
    [Show full text]
  • Modular Arithmetic Some Basic Number Theory: CS70 Summer 2016 - Lecture 7A Midterm 2 Scores Out
    Announcements Agenda Modular Arithmetic Some basic number theory: CS70 Summer 2016 - Lecture 7A Midterm 2 scores out. • Modular arithmetic Homework 7 is out. Longer, but due next Wednesday before class, • GCD, Euclidean algorithm, and not next Monday. multiplicative inverses David Dinh • Exponentiation in modular There will be no homework 8. 01 August 2016 arithmetic UC Berkeley Mathematics is the queen of the sciences and number theory is the queen of mathematics. -Gauss 1 2 Modular Arithmetic Motivation: Clock Math Congruences Modular Arithmetic If it is 1:00 now. What time is it in 2 hours? 3:00! Theorem: If a c (mod m) and b d (mod m), then a + b c + d x is congruent to y modulo m, denoted “x y (mod m)”... ≡ ≡ ≡ What time is it in 5 hours? 6:00! ≡ (mod m) and a b = c d (mod m). · · What time is it in 15 hours? 16:00! • if and only if (x y) is divisible by m (denoted m (x y)). Proof: Addition: (a + b) (c + d) = (a c) + (b d). Since a c − | − − − − ≡ Actually 4:00. • if and only if x and y have the same remainder w.r.t. m. (mod m) the first term is divisible by m, likewise for the second 16 is the “same as 4” with respect to a 12 hour clock system. • x = y + km for some integer k. term. Therefore the entire expression is divisible by m, so Clock time equivalent up to to addition/subtraction of 12. a + b c + d (mod m). What time is it in 100 hours? 101:00! or 5:00.
    [Show full text]
  • Group Properties of the Residue Classes of Certain Kroneckermodular Systems and Some Related Generalizationsin Number Theory*
    GROUP PROPERTIES OF THE RESIDUE CLASSES OF CERTAIN KRONECKERMODULAR SYSTEMS AND SOME RELATED GENERALIZATIONSIN NUMBER THEORY* BT EDWARD KIRCHER The object of this paper is to study the groups formed by the residue classes of a certain type of Kronecker modular system and some closely related gen- eralizations of well-known theorems in number theory. The type of modular system to be studied is of the form 9JÎ = (mn, m„_i, • • •, mi, m). Here m, defined by ( mi, m2, ■• • , m* ), is an ideal in the algebraic domain Q of degree k. Each term m,, i = 1, 2, • • • , n, belongs to the domain of in- tegrity of Í2¿ = (ß, xi, x2, • • • , Xi), and is defined by the fundamental system ( ^'i0 ) typ, • - - > typ ) • The various typ, j = 1, 2, • • • , j,-, are rational integral functions of Xj with coefficients that are in turn rational integral func- tions of a:i, x2, • • •, Xi-i, with coefficients that are algebraic integers in ß. In every case the coefficient of the highest power of a-¿in each of the typ shall be equal to 1. We shall see later that the developments of this paper also apply to modular systems where the last restriction here cited is omitted, being re- placed by another admitting more systems, these new systems in every case being equivalent to a system in the standard form as here defined. Any expression that fulfills all of the conditions placed upon each typ with the possible ex- ception of the last one, we shall call a polynomial, and no other expression shall be so designated.
    [Show full text]
  • Handbook of Number Theory Ii
    HANDBOOK OF NUMBER THEORY II by J. Sandor´ Babes¸-Bolyai University of Cluj Department of Mathematics and Computer Science Cluj-Napoca, Romania and B. Crstici formerly the Technical University of Timis¸oara Timis¸oara Romania KLUWER ACADEMIC PUBLISHERS DORDRECHT / BOSTON / LONDON A C.I.P. Catalogue record for this book is available from the Library of Congress. ISBN 1-4020-2546-7 (HB) ISBN 1-4020-2547-5 (e-book) Published by Kluwer Academic Publishers, P.O. Box 17, 3300 AA Dordrecht, The Netherlands. Sold and distributed in North, Central and South America by Kluwer Academic Publishers, 101 Philip Drive, Norwell, MA 02061, U.S.A. In all other countries, sold and distributed by Kluwer Academic Publishers, P.O. Box 322, 3300 AH Dordrecht, The Netherlands. Printed on acid-free paper All Rights Reserved C 2004 Kluwer Academic Publishers No part of this work may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, microfilming, recording or otherwise, without written permission from the Publisher, with the exception of any material supplied specifically for the purpose of being entered and executed on a computer system, for exclusive use by the purchaser of the work. Printed in the Netherlands. Contents PREFACE 7 BASIC SYMBOLS 9 BASIC NOTATIONS 10 1 PERFECT NUMBERS: OLD AND NEW ISSUES; PERSPECTIVES 15 1.1 Introduction .............................. 15 1.2 Some historical facts ......................... 16 1.3 Even perfect numbers ......................... 20 1.4 Odd perfect numbers ......................... 23 1.5 Perfect, multiperfect and multiply perfect numbers ......... 32 1.6 Quasiperfect, almost perfect, and pseudoperfect numbers ...............................
    [Show full text]
  • Lectures on Number Theory
    Lectures on Number Theory Lars-Ake˚ 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 Theorem 21 7 Public-Key Cryptography 27 8 Pseudoprimes 29 9 Polynomial Congruences with Prime Moduli 31 10 Polynomial Congruences with Prime Power Moduli 35 11 The Congruence x2 ≡ a (mod m) 38 12 General Quadratic Congruences 43 13 The Legendre Symbol and Gauss' Lemma 44 14 Quadratic Reciprocity 47 15 Primitive Roots 48 16 Arithmetic Functions 55 17 Sums of Squares 58 18 Pythagorean Triples 61 19 Fermat's Last Theorem 63 20 Continued Fractions 64 21 Simple Continued Fractions 70 22 Rational Approximations to Irrational Numbers 73 23 Periodic Continued Fractions 79 p 24 Continued Fraction Expansion of d 86 25 Pell's Equation 88 Preface The present lecture notes contain material for a 5 credit points course in Elemen- tary Number Theory. The formal prerequisites for the material are minimal; in particular no previous course in abstract algebra is required. High school mathematics, familiarity with proofs by mathematical induction and with the basic properties of limits of sequences of real numbers (in particular the fact that a bounded monotone sequence of real numbers is convergent) are all that is needed. (The discussion of the prime number counting function π(x) in sec- tion 2 requires more calculus skills, but this part could be skipped without any loss of continuity.) A preliminary version of these notes has been carefully reviewed by Joakim Elgh, and I would like to thank him for some very useful suggestions and improvements.
    [Show full text]
  • Number Theory Lecture Notes
    Number Theory Lecture Notes Vahagn Aslanyan1 1www.math.cmu.edu/~vahagn/ Contents 1 Divisibility 3 1.1 Greatest common divisors . .3 1.2 Linear Diophantine equations . .4 1.3 Primes and irreducibles . .4 1.4 The fundamental theorem of arithmetic . .5 1.5 Exercises . .6 2 Multiplicative functions 7 2.1 Basics . .7 2.2 The Möbius inversion formula . .8 2.3 Exercises . .9 3 Modular arithmetic 11 3.1 Congruences . 11 3.2 Wilson’s theorem . 12 3.3 Fermat’s little theorem . 12 3.4 The Chinese Remainder Theorem . 12 3.5 Euler’s totient function . 13 3.6 Euler’s theorem . 14 3.7 Exercises . 15 4 Primitive roots 17 4.1 The order of an element . 17 4.2 Primitive roots modulo a prime . 18 4.3 Primitive roots modulo prime powers . 19 4.4 The structure of (Z/2kZ)× .................... 20 4.5 Exercises . 22 5 Quadratic residues 23 5.1 The Legendre symbol and Euler’s criterion . 23 5.2 Gauss’s lemma . 24 iii iv CONTENTS 5.3 The quadratic reciprocity law . 25 5.4 Composite moduli . 26 5.5 Exercises . 27 6 Representation of integers by some quadratic forms 29 6.1 Sums of two squares . 29 6.2 Sums of four squares . 30 6.3 Exercises . 31 7 Diophantine equations 33 7.1 The Pythagorean equation . 33 7.2 A special case of Fermat’s last theorem . 34 7.3 Rational points on quadratic curves . 35 7.4 Exercises . 37 8 Continued fractions 39 8.1 Finite continued fractions . 39 8.2 Representation of rational numbers by continued fractions .
    [Show full text]
  • MA3H1 Topics in Number Theory Samir Siksek
    MA3H1 Topics in Number Theory Samir Siksek Samir Siksek, Mathematics Institute, University of War- wick, Coventry, CV4 7AL, United Kingdom E-mail address: [email protected] Contents Chapter 0. Prologue 5 1. What's This? 5 2. The Queen of Mathematics 5 Chapter 1. Review 7 1. Divisibility 7 2. Ideals 8 3. Greatest Common Divisors 9 4. Euler's Lemma 10 5. The Euclidean Algorithm 10 6. Primes and Irreducibles 11 7. Coprimality 13 8. ordp 13 9. Congruences 15 10. The Chinese Remainder Theorem 19 Chapter 2. Multiplicative Structure Modulo m 21 1. Euler's ' Revisited 21 2. Orders Modulo m 22 3. Primitive Roots 23 Chapter 3. Quadratic Reciprocity 27 1. Quadratic Residues and Non-Residues 27 2. Quadratic Residues and Primitive Roots 27 3. First Properties of the Legendre Symbol 28 4. The Law of Quadratic Reciprocity 29 5. The Sheer Pleasure of Quadratic Reciprocity 34 Chapter 4. p-adic Numbers 37 1. Congruences Modulo pm 37 2. p-Adic Absolute Value 39 3. Convergence 41 4. Operations on Qp 44 5. Convergence of Series 47 6. p-adic Integers 47 3 4 CONTENTS 7. Hensel's Lemma Revisited 49 8. The Hasse Principle 51 Chapter 5. Geometry of Numbers 55 1. The Two Squares Theorem 55 2. Areas of Ellipses and Volumes of Ellipsoids 56 3. The Four Squares Theorem 58 4. Proof of Minkowski's Theorem 60 Chapter 6. Irrationality and Transcendence 63 1. Irrationality: First Steps 63 2. The irrationality of e 64 3. What about Transcendental Numbers? 65 Appendix X. Last Year's Exam 69 CHAPTER 0 Prologue 1.
    [Show full text]
  • Euler's Totient Function • Suppose A≥1 and M≥2 Are Integers
    Euler’s Totient Function Debdeep Mukhopadhyay Associate Professor Department of Computer Science and Engineering Indian Institute of Technology Kharagpur INDIA -721302 Objectives • Euler’s Totient Function IIT Kharagpur 1 Invertibility modulo m • Defn: An element a ε Zm, is said to be invertible modulo m (or a unit in Zm) if there exists an integer u (in Zm), such that ua≡1 (mod m) • Theorem: An element a ε Zm is invertible iff gcd(a,m)=1. Reduced Residue System • A set of integers a1, a2, …, al is called a reduced residue system mod m if every integer a coprime to m is congruent to one and only one of the elements ai, 1≤ i ≤ l. • Elements of a reduced residue system are all coprime to m, and are not congruent to each other, mod m. IIT Kharagpur 2 Euler's Totient function • Suppose a≥1 and m≥2 are integers. If gcd(a,m)=1, then we say that a and m are relatively prime. • The number of integers in Zm (m>1), that are relatively prime to m is denoted by Φ(m), called Euler’s Totient function or phi function. • Φ(1)=1 Example • m=26 => Φ(26)=12 • If p is prime, Φ(p)=p-1 • If n=1,2,…,24 the values of Φ(n) are: – 1,1,2,2,4,2,6,4,6,4,10,4,12,6,8,8,16,6,18,8, 12,10,22,8 – Thus we see that the function is very irregular. IIT Kharagpur 3 Properties of Φ • If m and n are relatively prime numbers, – Φ(mn)= Φ(m) Φ(n) • Φ(77)= Φ(7 x 11)=6 x 10 = 60 • Φ(1896)= Φ(3 x 8 x 79)=2 x 4 x 78 =624 • This result can be extended to more than two arguments comprising of pairwise coprime integers.
    [Show full text]
  • Appendix a Elementary Number Theory A.1 Introduction Let Denote the Set of Natural Numbers, the Set of Integers, and the Set of Real Numbers
    Appendix A Elementary Number Theory A.1 Introduction Let denote the set of natural numbers, the set of integers, and the set of real numbers. An integer d divides an integer n, if for some We shall denote this by If such an integer k does not exist, d does not divide n. This will be denoted by To check if the integer d divides the integer n, the Mathematica function IntegerO can be used in the following way. The Mathematica function Divisor gives a list of all divisors of a number n. For instance: An integer is said to be prime, if 1 and p are its only positive divisors. With we introduce a natural numbering of the set of prime numbers. Valuable Mathematica functions in this context are Prime and PrimeO: generating the 35-th prime number. telling if the input (here 1234567) is prime. 344 APPENDICES Proof: Suppose the contrary. Let be the set of all primes. Next, we observe that the integer is not divisible by any of the primes Let n be the smallest integer n that is not divisible by any of the primes It can not be a prime number, because it is not in the list It follows that n has a non-trivial factor d. But then this factor d is divisible by at least of the primes and so does n. A contradiction. Between two consecutive primes there can be an arbitrary large gap of non-prime numbers. For example, the elements in the sequence are divisible by respectively Therefore none of them is prime.
    [Show full text]
  • 8. Euler Φ-Function We Have Already Seen That Zm, the Set of Equivalence
    8. Euler '-function We have already seen that Zm, the set of equivalence classes of the integers modulo m, is naturally a ring. Now we will start to derive some interesting consequences in number theory. It is clear that the equivalence classes are represented by the integers from zero to m − 1, [0], [1], [2], [3], . , [m − 1]. Indeed, if a is any integer we may divide m into a to get a quotient and a remainder, a = mq + r where 0 ≤ r ≤ m − 1: In this case [a] = [r]: From the point of view of number theory it is very interesting to write down other sets of integers with the same properties. Definition 8.1. A set S of integers is called a complete residue system, modulo m, if every integer a 2 Z is equivalent, modulo m, to exactly one element of S. We have already seen that f r 2 Z j 0 ≤ r ≤ m − 1 g = f 0; 1; 2; : : : ; m − 2; m − 1 g is a complete residue system. Sometimes it is convenient to shift so that 0 is in the centre of the system f r 2 Z j − m=2 < r ≤ m=2 g = f :::; −2; −1; 0; 1; 2;::: g: For example if m = 5 we would take −2, 1, 0, 1 and 2 and if m = 8 we would take −3, −2, −1, 0, 1, 2, 3 and 4. Fortunately it is very easy to determine if a set S is a complete residue system: Lemma 8.2. Let S ⊂ Z be a subset of the integers and let m be a non-negative integer.
    [Show full text]