TESTS FOR DIVISIBILITY BY PRIME NUMBERS

Size: px
Start display at page:

Download "TESTS FOR DIVISIBILITY BY PRIME NUMBERS"

Transcription

1 Bulletin of the Marathwada Mathematical Society Vol. 9, No. 1, June 2008, Pages TESTS FOR DIVISIBILITY BY PRIME NUMBERS G S. Kawale Department of Mathematics, Vasantrao Naik Mahavidyalaya, Aurangabad Dist. Aurangabad (M.S.), INDIA. Abstract The purpose of this paper is to give two general tests for divisibility of a given positive integer by any given prime number and compare their usefulness as far as the number of steps required for testing the divisibility is concerned. These tests include the tests developed in [2, 3, 4] as particular cases. 1 INTRODUCTION During the last five decades several authors have, developed many tests of divisibility of a given positive integer by some suitable primes including 19,23,7 [1, 2, 3, 4, 5] In [1], the author discussed such tests in detail, but nowhere he tried to give a mathematical justification for these tests. In [4], the author has produced a mathematical justification for such tests. In this paper a short review of two different tests of divisibility of a given positive integer by any given prime number considered in [4], is taken and it is shown that the tests given in [2, 3, 4] are the particular cases. Further a comparison between these tests is discussed by taking into consideration the number of steps required for testing the divisibility of a given number, provided no calculator or a computer is used for doing the calculations. 2 NOTATIONS AND PRELIMINARIES Let N be the set of positive integers and S be the subset of N defined by : S = {z : (z,) = 1 }, where (b, c) represents the g.c.d. of b and c. Definition 2.1 An integer b is said to be divisible by an integer a, (not zero), if there is an integer x such that b = ax, and we write a b. For example 7 28, etc. Notation: If n N, consists of r + 1 digits a 0,a 1,...,a r, then n can be expressed as n = r.a r + r 1 a r a 1 + a 0. We write this number as follows. n = a r a r 1...a 1 a 0. (2.1) 55

2 56 G S. Kawale If n stands for the integer, then the relation between n and n is as follows. n = a r a r 1...a 2 a 1 (2.2) n = n a 0, (2.3) For example if n = 3512,n = 351, then 351 = , i..e. the relation (2.3) holds. Positive and Negative oscillators: Let d S, then there exists one and only one integer c {1,3,7,9} such that the product cd ends with 9. When this 9 is dropped the remaining integer when added to 1 gives us another integer say P(d). This integer P(d) is called the positive osculator of d. If d S then it can be observed that P(d) = c.d + 1 (2.4) or c.d =.P(d) 1 (2.5) For example, If d = 23, then P(d) is obtained by considering the product 23 3 = 69, and dropping 9 and adding 1. Thus P(23) = = 7. i.e. 7 is the positive osculator of 23, and can be obtained by using the above mentioned formula (2.4). Thus P(23) = = 7. Negative osculator of d is defined as the integer N(d) given by N(d) = d P(d). (2.6) For example, N(23) = 23 P(23) = 23 7 = 16. Now if d S and d = a k a k 1...a 1 a 0 with a 0 = 1, then it can be verified that N(d) = d 1 = a k a k 1...a 1. For example if d = 51 then N(51) = 51 1 = 5. Note that P(51) = 46. Here P(51) > N(51). If d does not end with 1, then N(d) = N(c.d) where c { 1, 3, 7, 9 } is such that the product c.d ends with 1. For example, N(7) = N(7 3) = N(21) = 2. In the following table values of P(d) and N(d) are given for some integers d satisfying (d,) = 1.

3 Tests for Divisibility by Prime Numbers 57 Table : 2.1 d P(d) N(d) Positively osculated numbers: If n is given by n = a r a r 1... a 1 a 0 and d S, then the integer n + P(d)a 0 is called positively osculated number of n (osculated by d), and is denoted by O d (n), where n = a r a r 1... a 1. For example if n = 138 and d = 23, then P(23) = 7 and n = 13. Hence O 23 (138) = = 69. Also O 23 (69) = = 69. Negatively osculated Numbers: Let n and n be as above and d be any integer in S. Then the integer n a 0 N(d) is called negatively osculated number with respect to d. We shall denote this number by O d (n). For example if d = 7 and n = 364, then n = 36,N(d) = N(7) = N(21) = 2 and a 0 = 4. Hence O 7 (364) = = 36 8 = 28. Similarly O 17 (561) = = 51,because, n = 56,N(17) = N(51) = 5 and a 0 = 1. The concepts about the positive and negative osculators and osculated numbers given here are the same as those given in [1], and [4] but explained in a different way. Lastly we state a theorem, which is used in the next section. Theorem 2.1 If a, b, c are non-zero integers such that c ab and (b, c) = 1, then c a. For the proof see [6]. 3 TESTS OF DIVISIBILITY In this section two tests of divisibility are discussed and a comparison is made between them. We begin with the following lemmas. Lemma 3.1 If d S, then d [.P(d) 1]. Proof: The stated result follows immediately by the relation (2.5). As an illustration if d = 23, then P(23) = 7 and.p(d) 1 = 7 1 = 69. Clearly Lemma 3.2 If d S then d [.N(d) + 1]. Proof: We have by using the definition of N(d),.N(d) + 1 = (d P(d)) + 1 = d.p(d) + 1 =.d [.P(d) 1]. The result now follows from Lemma 3.1.

4 58 G S. Kawale As an example if d = 17, then N(d) = d P(d) = = 5, Also N(d) + 1 = = 51, clearly We are now in a position to state and prove the following theorem related to divisibility of a given positive integer n by another positive integer d. Theorem 3.1 (Test 1) : Let n and n be as in (2.1) and (2.2) respectively. For d S, let P(d) and O d (n) represent the positive osculator of d and positively osculated number w.r.t. d respectively. Then d n iff d O d (n). Proof By the definition of O d (n) we have O d (n) = n + P(d)a 0. Hence using (2.3), we have.o d (n) = n + P(d)a 0 i.e.,.o d (n) = n a 0 +.P(d)a 0 = n + a 0 (.P(d) 1). The proof now follows from Lemma 3.1 and Theorem 2.1. Theorem 3.2 (Test 2): Let n and n be given by (2.1) and (2.2) respectively, for d S, let N(d) and O d (n) stand for negative osculator of d and negatively osculated number w.r.t. d. Then d n iff d O d (n). Proof: By definition of O d (n), we have O d (n) = n N(d)a 0. Hence using (2.3), we have,.o d (n) = n N(d)a 0, i.e..o d (n) = n a 0(N(d) + 1). - The proof now follows from Lemma 3.2 and Theorem 2.1. Let us illustrate the tests considered in the above theorems and compare which test is more convenient. Example: Let d = 23 and n = 805. Then P(d) = P(23) = P(69) = 7, and N(d) = 23 7 = 16. Further O d (n) = O 23 (805) = = 115. and O d (n) = O 23(805) = = 0. Since 115 is divisible by 23 (The divisibility of 115 by 23 can be tested by using Test 1), we conclude by Test 1, that 805 is divisible by 23. Further 0 is divisible by 23 and hence 805 is divisible by 23 by Test 2. Here Test 2 is more useful than Test 1, since within one step the divisibility of 805 by 23 is tested by the use of Test 2, while Test 1 requires application of Test 1 two times. The tests given above can also be used to test the divisibility of a given integer by a number which is a product of two or more primes. The following example illustrates this point. Let n = and d 1 = 119,d 2 = 201. Here d 1 = 17 7 and d 2 = Both d 1 and d 2 are prdoucts of two primes. We observe that P(d 1 ) = = 12 and N(d 2 ) = 20. Also N(d 1 ) = = 7 and P(d 2 ) = = 181.

5 Tests for Divisibility by Prime Numbers 59 lt is clear that the efforts required to multiply a number by 12 are less than the efforts required to multiply the same number by 7, provided no calculator or computer is used in doing some intermediate calculations. Hence as far as divisibility of by d 1 is concerned, Test 1 is more convenient than Test 2. Since n is a five digit number we have to apply Test 1, three times. The procedure of testing the divisibility is given below (7 is dropped) +84 (7 12 is added) (9 is dropped) +8 (9 12 is added) 83 3 (3 is dropped) +36 (3 12 is added) 119 Now 119, is divisible by 119. Hence is also divisible by 119. i.e is divisible by 7 as well as by 17. For d 2 = 201,N(d 2 ) = 20 < 181 = P(d 2 ). Hence an application of Test 2 is more convenient than the application of Test 1, though the number of steps required for both the tests is the same. The procedure of testing the divisibility is as follows (drop 7 ) 140 (7 20 is subtracted) (5 is dropped) 0 (5 20 is subtracted) 60 3 (3 is dropped) 60 (3 20 is subtracted) 00 But 0 is divisible by 201. Hence is also divisible by 201,i.e is divisible by 67 as well as by 3. By taking d 1 = 7 17 = 119 and P(d 1 ) = 12 and applying the procedure of osculation as illustrated in the above example for the integer n = 1652, we get the following steps.

6 60 G S. Kawale (drop 2 ) +24 (2 12 is added) 18 9 (9 is dropped) +8 (9 12 is added) 12 6 (6 is dropped) +72 (6 12 is added) is divisible by 7 but not by 17. Hence the given integer 1652 is divisible by 7 but not by 17. Similarly if n = 5338, we observe that 5338 is divisible by 17 but not by 7. Remark 3.1:The tests of divisibility considered in [2, 3, 4] are particular cases of the Theorems 3.1 and 3.2 proved above. For example the theorem of [2] is a particular case of Theorem 3.1, if we take d = 23 and n = abcd. The multiplying factor 7 considered in [2] for the divisibility of n by 23 is the same as the positive osculator of 23. Remark 3.2: For d S, if p(d) < N(d) then Test 1 is more convenient than Test 2. As particular cases of Theorem 3.1 and Theorem 3.2, we state below two results for the divisibility of four digit number n by 29 and 31. Theorem 3.3 Let n = abcd. Then 29 n iff 29 (abc + 3d). Proof: n = abcd = (abc) + d = (abc + 3d) 29d. This relation along with Theorem 2.1 shows that 29 n iff 29 (abc + 3d). Hence the proof. Theorem 3.4 Let n = abcd. Then 31 abcd iff 31 (abc 3d). Proof: n = abcd = (abc) + d = (abc 3d) + 31d. Hence by theorem 2.1, we conclude that 31 n iff 31 (abc 3d). The procedure of testing the divisibility of an integer n, by a given d S can also be explained with the help of an algorithm. For example if d = 29 and n is given by (2.1) then the algorithm is as follows. Step 1 : Let n = a r a r 1...a 2 a 1 a 0 and n = a r a r 1... a 2 a 1. Step 2 : Multiply a 0 by 3 and add the product to n and call the result as n 1. Step 3 : Take n and n, as n 1 and n 1. Step 4 : Go to step 2. Step 5 : If n, at the end of step 3 is divisible by 29, then conclude that the given number n is also divisible by 29 and stop. 4 ACKNOWLEDGMENT I am thankful to Dr. S. R. Joshi for his guidance during the preparation of the paper. I am also thankful to the referee for making some valuable suggestions, which helped me to modify the paper.

7 Tests for Divisibility by Prime Numbers 61 References [1] J.S.S., Bharati - Krishna Tirtha, Vedic Mathematics, Motilal Banarasidas Ideological Publishers Delhi - 7, [2] N.S. Birajdar, Tests for divisibility by some prime numbers, Bull.Marathwada Math.Soc., 2,(2001). [3] M.Humphreys,Tests for divisibility by 19, Math. Gaz., 82, (1998), [4] S.R. Joshi, On tests of divisibility,mathematics Education, (Siwan), 15, 2, (1981).B 1 B 2. [5] J. Kashangaki,A test for divisibility by 7, Math. Gaz., (2002). [6] I.Niven and H.S. Zukermann, An Introduction to the Theory of Numbers, (Third Edition), Wiley Eastern limited, New Delhi 1976, Chapter 1.

NONLINEAR CONGRUENCES IN THE THEORY OF NUMBERS

NONLINEAR CONGRUENCES IN THE THEORY OF NUMBERS Bulletin of the Marathwada Mathematical Society Vol. 12, No. 2, December 2011, Pages 24-31 NONLINEAR CONGRUENCES IN THE THEORY OF NUMBERS S.R.Joshi 8, Karmayog, Tarak Housing Society, Opp to Ramkrishna

More information

REPRESENTATION AND MINIMIZATION OF BOOLEAN FUNCTIONS. Part II Minimization of Boolean Functions.

REPRESENTATION AND MINIMIZATION OF BOOLEAN FUNCTIONS. Part II Minimization of Boolean Functions. Bulletin of the Marathwada Mathematical Society Vol.5, No.1, June 2004, Pages 35-44 REPRESENTATION AND MINIMIZATION OF BOOLEAN FUNCTIONS. Part II Minimization of Boolean Functions. S.R. Joshi 3, Accharya

More information

Chapter 5: The Integers

Chapter 5: The Integers c Dr Oksana Shatalov, Fall 2014 1 Chapter 5: The Integers 5.1: Axioms and Basic Properties Operations on the set of integers, Z: addition and multiplication with the following properties: A1. Addition

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

5: The Integers (An introduction to Number Theory)

5: The Integers (An introduction to Number Theory) c Oksana Shatalov, Spring 2017 1 5: The Integers (An introduction to Number Theory) The Well Ordering Principle: Every nonempty subset on Z + has a smallest element; that is, if S is a nonempty subset

More information

Q 1 Find the square root of 729. 6. Squares and Square Roots Q 2 Fill in the blank using the given pattern. 7 2 = 49 67 2 = 4489 667 2 = 444889 6667 2 = Q 3 Without adding find the sum of 1 + 3 + 5 + 7

More information

4 Powers of an Element; Cyclic Groups

4 Powers of an Element; Cyclic Groups 4 Powers of an Element; Cyclic Groups Notation When considering an abstract group (G, ), we will often simplify notation as follows x y will be expressed as xy (x y) z will be expressed as xyz x (y z)

More information

a 2 + b 2 = (p 2 q 2 ) 2 + 4p 2 q 2 = (p 2 + q 2 ) 2 = c 2,

a 2 + b 2 = (p 2 q 2 ) 2 + 4p 2 q 2 = (p 2 + q 2 ) 2 = c 2, 5.3. Pythagorean triples Definition. A Pythagorean triple is a set (a, b, c) of three integers such that (in order) a 2 + b 2 c 2. We may as well suppose that all of a, b, c are non-zero, and positive.

More information

REVIEW Chapter 1 The Real Number System

REVIEW Chapter 1 The Real Number System REVIEW Chapter The Real Number System In class work: Complete all statements. Solve all exercises. (Section.4) A set is a collection of objects (elements). The Set of Natural Numbers N N = {,,, 4, 5, }

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

ROLE OF GEOMETRY IN DIFFERENT DISCIPLINES OF MATHEMATICS

ROLE OF GEOMETRY IN DIFFERENT DISCIPLINES OF MATHEMATICS Bulletin of the Marathwada Mathematical Society Vol. 17, No. 2, December 2016, Pages 13 21. ROLE OF GEOMETRY IN DIFFERENT DISCIPLINES OF MATHEMATICS S.R. Joshi 8, Karmayog, Tarak Housing Society, Opp.

More information

Congruence of Integers

Congruence of Integers Congruence of Integers November 14, 2013 Week 11-12 1 Congruence of Integers Definition 1. Let m be a positive integer. For integers a and b, if m divides b a, we say that a is congruent to b modulo m,

More information

Lecture Notes. Advanced Discrete Structures COT S

Lecture Notes. Advanced Discrete Structures COT S Lecture Notes Advanced Discrete Structures COT 4115.001 S15 2015-01-13 Recap Divisibility Prime Number Theorem Euclid s Lemma Fundamental Theorem of Arithmetic Euclidean Algorithm Basic Notions - Section

More information

Math Homework # 4

Math Homework # 4 Math 446 - Homework # 4 1. Are the following statements true or false? (a) 3 5(mod 2) Solution: 3 5 = 2 = 2 ( 1) is divisible by 2. Hence 2 5(mod 2). (b) 11 5(mod 5) Solution: 11 ( 5) = 16 is NOT divisible

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

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

MATH 115, SUMMER 2012 LECTURE 4 THURSDAY, JUNE 21ST

MATH 115, SUMMER 2012 LECTURE 4 THURSDAY, JUNE 21ST MATH 115, SUMMER 2012 LECTURE 4 THURSDAY, JUNE 21ST JAMES MCIVOR Today we enter Chapter 2, which is the heart of this subject. Before starting, recall that last time we saw the integers have unique factorization

More information

Chapter-2 Relations and Functions. Miscellaneous

Chapter-2 Relations and Functions. Miscellaneous 1 Chapter-2 Relations and Functions Miscellaneous Question 1: The relation f is defined by The relation g is defined by Show that f is a function and g is not a function. The relation f is defined as It

More information

3.2 Solving linear congruences. v3

3.2 Solving linear congruences. v3 3.2 Solving linear congruences. v3 Solving equations of the form ax b (mod m), where x is an unknown integer. Example (i) Find an integer x for which 56x 1 mod 93. Solution We have already solved this

More information

Playing with Numbers. introduction. numbers in general FOrM. remarks (i) The number ab does not mean a b. (ii) The number abc does not mean a b c.

Playing with Numbers. introduction. numbers in general FOrM. remarks (i) The number ab does not mean a b. (ii) The number abc does not mean a b c. 5 Playing with Numbers introduction In earlier classes, you have learnt about natural numbers, whole numbers, integers and their properties. In this chapter, we shall understand 2-digit and 3-digit numbers

More information

Part V. Chapter 19. Congruence of integers

Part V. Chapter 19. Congruence of integers Part V. Chapter 19. Congruence of integers Congruence modulo m Let m be a positive integer. Definition. Integers a and b are congruent modulo m if and only if a b is divisible by m. For example, 1. 277

More information

Clock Arithmetic. 1. If it is 9 o clock and you get out of school in 4 hours, when do you get out of school?

Clock Arithmetic. 1. If it is 9 o clock and you get out of school in 4 hours, when do you get out of school? Clock Arithmetic We are going to learn all about clock addition and the relationship to remainders when you divide numbers. 1 Standard Clock Addition 1. If it is 9 o clock and you get out of school in

More information

CHAPTER 1 REAL NUMBERS KEY POINTS

CHAPTER 1 REAL NUMBERS KEY POINTS CHAPTER 1 REAL NUMBERS 1. Euclid s division lemma : KEY POINTS For given positive integers a and b there exist unique whole numbers q and r satisfying the relation a = bq + r, 0 r < b. 2. Euclid s division

More information

CISC-102 Winter 2016 Lecture 11 Greatest Common Divisor

CISC-102 Winter 2016 Lecture 11 Greatest Common Divisor CISC-102 Winter 2016 Lecture 11 Greatest Common Divisor Consider any two integers, a,b, at least one non-zero. If we list the positive divisors in numeric order from smallest to largest, we would get two

More information

Intermediate Math Circles February 14, 2018 Contest Prep: Number Theory

Intermediate Math Circles February 14, 2018 Contest Prep: Number Theory Intermediate Math Circles February 14, 2018 Contest Prep: Number Theory Part 1: Prime Factorization A prime number is an integer greater than 1 whose only positive divisors are 1 and itself. An integer

More information

JUST THE MATHS UNIT NUMBER 1.6. ALGEBRA 6 (Formulae and algebraic equations) A.J.Hobson

JUST THE MATHS UNIT NUMBER 1.6. ALGEBRA 6 (Formulae and algebraic equations) A.J.Hobson JUST THE MATHS UNIT NUMBER 1.6 ALGEBRA 6 (Formulae and algebraic equations) by A.J.Hobson 1.6.1 Transposition of formulae 1.6. of linear equations 1.6.3 of quadratic equations 1.6. Exercises 1.6.5 Answers

More information

Intermediate Math Circles February 29, 2012 Linear Diophantine Equations I

Intermediate Math Circles February 29, 2012 Linear Diophantine Equations I Intermediate Math Circles February 29, 2012 Linear Diophantine Equations I Diophantine equations are equations intended to be solved in the integers. We re going to focus on Linear Diophantine Equations.

More information

CHAPTER 1 POLYNOMIALS

CHAPTER 1 POLYNOMIALS 1 CHAPTER 1 POLYNOMIALS 1.1 Removing Nested Symbols of Grouping Simplify. 1. 4x + 3( x ) + 4( x + 1). ( ) 3x + 4 5 x 3 + x 3. 3 5( y 4) + 6 y ( y + 3) 4. 3 n ( n + 5) 4 ( n + 8) 5. ( x + 5) x + 3( x 6)

More information

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers Solutions

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers Solutions Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers Solutions Warm-up Problems 1. What is a prime number? Give an example of an even prime number and an odd prime number. A prime number

More information

Intermediate Math Circles March 6, 2013 Number Theory I

Intermediate Math Circles March 6, 2013 Number Theory I What is Number Theory? Intermediate Math Circles March 6, 01 Number Theory I A branch of mathematics where mathematicians examine and study patterns found within the natural number set (positive integers).

More information

Number Theory. Modular Arithmetic

Number Theory. Modular Arithmetic Number Theory The branch of mathematics that is important in IT security especially in cryptography. Deals only in integer numbers and the process can be done in a very fast manner. Modular Arithmetic

More information

Intro to Algebra Today. We will learn names for the properties of real numbers. Homework Next Week. Due Tuesday 45-47/ 15-20, 32-35, 40-41, *28,29,38

Intro to Algebra Today. We will learn names for the properties of real numbers. Homework Next Week. Due Tuesday 45-47/ 15-20, 32-35, 40-41, *28,29,38 Intro to Algebra Today We will learn names for the properties of real numbers. Homework Next Week Due Tuesday 45-47/ 15-20, 32-35, 40-41, *28,29,38 Due Thursday Pages 51-53/ 19-24, 29-36, *48-50, 60-65

More information

Chapter. Algebra techniques. Syllabus Content A Basic Mathematics 10% Basic algebraic techniques and the solution of equations.

Chapter. Algebra techniques. Syllabus Content A Basic Mathematics 10% Basic algebraic techniques and the solution of equations. Chapter 2 Algebra techniques Syllabus Content A Basic Mathematics 10% Basic algebraic techniques and the solution of equations. Page 1 2.1 What is algebra? In order to extend the usefulness of mathematical

More information

Modular Arithmetic Instructor: Marizza Bailey Name:

Modular Arithmetic Instructor: Marizza Bailey Name: Modular Arithmetic Instructor: Marizza Bailey Name: 1. Introduction to Modular Arithmetic If someone asks you what day it is 145 days from now, what would you answer? Would you count 145 days, or find

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

L1 2.1 Long Division of Polynomials and The Remainder Theorem Lesson MHF4U Jensen

L1 2.1 Long Division of Polynomials and The Remainder Theorem Lesson MHF4U Jensen L1 2.1 Long Division of Polynomials and The Remainder Theorem Lesson MHF4U Jensen In this section you will apply the method of long division to divide a polynomial by a binomial. You will also learn to

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

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

Intermediate Math Circles February 26, 2014 Diophantine Equations I

Intermediate Math Circles February 26, 2014 Diophantine Equations I Intermediate Math Circles February 26, 2014 Diophantine Equations I 1. An introduction to Diophantine equations A Diophantine equation is a polynomial equation that is intended to be solved over the integers.

More information

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 3

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 3 CS 70 Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 3 Modular Arithmetic In several settings, such as error-correcting codes and cryptography, we sometimes wish to work over a smaller

More information

All variables a, b, n, etc are integers unless otherwise stated. Each part of a problem is worth 5 points.

All variables a, b, n, etc are integers unless otherwise stated. Each part of a problem is worth 5 points. Math 152, Problem Set 2 solutions (2018-01-24) All variables a, b, n, etc are integers unless otherwise stated. Each part of a problem is worth 5 points. 1. Let us look at the following equation: x 5 1

More information

Divisibility, Factors, and Multiples

Divisibility, Factors, and Multiples Divisibility, Factors, and Multiples An Integer is said to have divisibility with another non-zero Integer if it can divide into the number and have a remainder of zero. Remember: Zero divided by any number

More information

COMP239: Mathematics for Computer Science II. Prof. Chadi Assi EV7.635

COMP239: Mathematics for Computer Science II. Prof. Chadi Assi EV7.635 COMP239: Mathematics for Computer Science II Prof. Chadi Assi assi@ciise.concordia.ca EV7.635 The Euclidean Algorithm The Euclidean Algorithm Finding the GCD of two numbers using prime factorization is

More information

Elementary Properties of the Integers

Elementary Properties of the Integers Elementary Properties of the Integers 1 1. Basis Representation Theorem (Thm 1-3) 2. Euclid s Division Lemma (Thm 2-1) 3. Greatest Common Divisor 4. Properties of Prime Numbers 5. Fundamental Theorem 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

MATH Dr. Halimah Alshehri Dr. Halimah Alshehri

MATH Dr. Halimah Alshehri Dr. Halimah Alshehri MATH 1101 haalshehri@ksu.edu.sa 1 Introduction To Number Systems First Section: Binary System Second Section: Octal Number System Third Section: Hexadecimal System 2 Binary System 3 Binary System The binary

More information

Multiplicative (Generalized)-(α, β)-derivations in Prime and Semiprime Rings

Multiplicative (Generalized)-(α, β)-derivations in Prime and Semiprime Rings Multiplicative (Generalized)-(α, β)-derivations in Prime and Semiprime Rings Chirag Garg*, R. K. Sharma Department of Mathematics, Indian Institute of Technology, Delhi-110016, India. * Corresponding author.

More information

L1 2.1 Long Division of Polynomials and The Remainder Theorem Lesson MHF4U Jensen

L1 2.1 Long Division of Polynomials and The Remainder Theorem Lesson MHF4U Jensen L1 2.1 Long Division of Polynomials and The Remainder Theorem Lesson MHF4U Jensen In this section you will apply the method of long division to divide a polynomial by a binomial. You will also learn to

More information

April Adkins

April Adkins Unit # 1 Title: Preliminary Concepts Part I April Adkins 2014-2015 Students will be able to add, subtract, multiply, and divide integers. Students will be able to identify examples of basic properties

More information

Ch 3.2: Direct proofs

Ch 3.2: Direct proofs Math 299 Lectures 8 and 9: Chapter 3 0. Ch3.1 A trivial proof and a vacuous proof (Reading assignment) 1. Ch3.2 Direct proofs 2. Ch3.3 Proof by contrapositive 3. Ch3.4 Proof by cases 4. Ch3.5 Proof evaluations

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

Chapter 2. Divisibility. 2.1 Common Divisors

Chapter 2. Divisibility. 2.1 Common Divisors Chapter 2 Divisibility 2.1 Common Divisors Definition 2.1.1. Let a and b be integers. A common divisor of a and b is any integer that divides both a and b. Suppose that a and b are not both zero. By Proposition

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

When is n a member of a Pythagorean Triple?

When is n a member of a Pythagorean Triple? Abstract When is n a member of a Pythagorean Triple? Dominic and Alfred Vella ' Theorem is perhaps the best known result in the whole of mathematics and yet many things remain unknown (or perhaps just

More information

SEVENTH EDITION and EXPANDED SEVENTH EDITION

SEVENTH EDITION and EXPANDED SEVENTH EDITION SEVENTH EDITION and EXPANDED SEVENTH EDITION Slide 5-1 Chapter 5 Number Theory and the Real Number System 5.1 Number Theory Number Theory The study of numbers and their properties. The numbers we use to

More information

Questionnaire for CSET Mathematics subset 1

Questionnaire for CSET Mathematics subset 1 Questionnaire for CSET Mathematics subset 1 Below is a preliminary questionnaire aimed at finding out your current readiness for the CSET Math subset 1 exam. This will serve as a baseline indicator for

More information

Problems and Solutions

Problems and Solutions TWENTY FOURTH IRISH MATHEMATICAL OLYMPIAD Saturday, 7 May 2011 Second Paper Problems and Solutions 6. Prove that is not an integer. 2 3 + 4 5 + 6 7 + + 2010 2011 Solution (Proposed by Gordon Lessells)

More information

Deepening Mathematics Instruction for Secondary Teachers: Algebraic Structures

Deepening Mathematics Instruction for Secondary Teachers: Algebraic Structures Deepening Mathematics Instruction for Secondary Teachers: Algebraic Structures Lance Burger Fresno State Preliminary Edition Contents Preface ix 1 Z The Integers 1 1.1 What are the Integers?......................

More information

Sums of Squares. Bianca Homberg and Minna Liu

Sums of Squares. Bianca Homberg and Minna Liu Sums of Squares Bianca Homberg and Minna Liu June 24, 2010 Abstract For our exploration topic, we researched the sums of squares. Certain properties of numbers that can be written as the sum of two squares

More information

6 SQUARES AND SQUARE ROOTS

6 SQUARES AND SQUARE ROOTS 6 SQUARES AND SQUARE ROOTS Exercise 6.1 Q.1. What will be the unit digit of the squares of the following numbers? (i) 81 (ii) 272 (iii) 799 (iv) 3853 (v) 1234 (vi) 26387 (vii) 52698 (viii) 99880 (ix) 12796

More information

Evaluation of Trigonometric Functions and Their Inverses Kenneth Williams

Evaluation of Trigonometric Functions and Their Inverses Kenneth Williams Evaluation of Trigonometric Functions and Their Inverses Kenneth Williams bstract This paper shows that finding trig functions without a calculator is entirely possible especially when high accuracy is

More information

Outline. Number Theory and Modular Arithmetic. p-1. Definition: Modular equivalence a b [mod n] (a mod n) = (b mod n) n (a-b)

Outline. Number Theory and Modular Arithmetic. p-1. Definition: Modular equivalence a b [mod n] (a mod n) = (b mod n) n (a-b) Great Theoretical Ideas In CS Victor Adamchik CS - Lecture Carnegie Mellon University Outline Number Theory and Modular Arithmetic p- p Working modulo integer n Definitions of Z n, Z n Fundamental lemmas

More information

Exam 2 Review Chapters 4-5

Exam 2 Review Chapters 4-5 Math 365 Lecture Notes S. Nite 8/18/2012 Page 1 of 9 Integers and Number Theory Exam 2 Review Chapters 4-5 Divisibility Theorem 4-1 If d a, n I, then d (a n) Theorem 4-2 If d a, and d b, then d (a+b).

More information

The Tychonoff Theorem

The Tychonoff Theorem Requirement for Department of Mathematics Lovely Professional University Punjab, India February 7, 2014 Outline Ordered Sets Requirement for 1 Ordered Sets Outline Ordered Sets Requirement for 1 Ordered

More information

2015 Canadian Intermediate Mathematics Contest

2015 Canadian Intermediate Mathematics Contest The CENTRE for EDUCATION in MATHEMATICS and COMPUTING cemc.uwaterloo.ca 015 Canadian Intermediate Mathematics Contest Wednesday, November 5, 015 (in North America and South America) Thursday, November

More information

Official Solutions 2014 Sun Life Financial CMO Qualifying Rêpechage 1

Official Solutions 2014 Sun Life Financial CMO Qualifying Rêpechage 1 Official s 2014 Sun Life Financial CMO Qualifying Rêpechage 1 1. Let f : Z Z + be a function, and define h : Z Z Z + by h(x, y) = gcd(f(x), f(y)). If h(x, y) is a two-variable polynomial in x and y, prove

More information

A number that can be written as, where p and q are integers and q Number.

A number that can be written as, where p and q are integers and q Number. RATIONAL NUMBERS 1.1 Definition of Rational Numbers: What are rational numbers? A number that can be written as, where p and q are integers and q Number. 0, is known as Rational Example:, 12, -18 etc.

More information

x 9 or x > 10 Name: Class: Date: 1 How many natural numbers are between 1.5 and 4.5 on the number line?

x 9 or x > 10 Name: Class: Date: 1 How many natural numbers are between 1.5 and 4.5 on the number line? 1 How many natural numbers are between 1.5 and 4.5 on the number line? 2 How many composite numbers are between 7 and 13 on the number line? 3 How many prime numbers are between 7 and 20 on the number

More information

#G03 INTEGERS 10 (2010), MIN, A COMBINATORIAL GAME HAVING A CONNECTION WITH PRIME NUMBERS

#G03 INTEGERS 10 (2010), MIN, A COMBINATORIAL GAME HAVING A CONNECTION WITH PRIME NUMBERS #G03 INTEGERS 10 (2010), 765-770 MIN, A COMBINATORIAL GAME HAVING A CONNECTION WITH PRIME NUMBERS Grant Cairns Department of Mathematics, La Trobe University, Melbourne, Australia G.Cairns@latrobe.edu.au

More information

Generalization of Pythagorean triplets, Quadruple Prof. K. Raja Rama Gandhi 1 and D.Narasimha murty 2

Generalization of Pythagorean triplets, Quadruple Prof. K. Raja Rama Gandhi 1 and D.Narasimha murty 2 The Bulletin of Society for Mathematical Services and Standards Online: 2012-03-01 ISSN: 2277-8020, Vol. 1, pp 40-45 doi:10.18052/www.scipress.com/bsmass.1.40 2012 SciPress Ltd., Switzerland Generalization

More information

p and q are two different primes greater than 25. Pass on the least possible value of p + q.

p and q are two different primes greater than 25. Pass on the least possible value of p + q. A1 p and q are two different primes greater than 25. Pass on the least possible value of p + q. A3 A circle has an area of Tπ. Pass on the area of the largest square which can be drawn inside the circle.

More information

Discrete Mathematics and Probability Theory Fall 2018 Alistair Sinclair and Yun Song Note 6

Discrete Mathematics and Probability Theory Fall 2018 Alistair Sinclair and Yun Song Note 6 CS 70 Discrete Mathematics and Probability Theory Fall 2018 Alistair Sinclair and Yun Song Note 6 1 Modular Arithmetic In several settings, such as error-correcting codes and cryptography, we sometimes

More information

Further development & updating of paper for Mystery of Fermat Number

Further development & updating of paper for Mystery of Fermat Number International Journal of Scientific & Engineering Research, Volume 6, Issue 9, September-015 ISSN 9-5518 Further development & updating of paper for Mystery of Fermat Number Author: Debajit Das ABSTRACT

More information

We say that a polynomial is in the standard form if it is written in the order of decreasing exponents of x. Operations on polynomials:

We say that a polynomial is in the standard form if it is written in the order of decreasing exponents of x. Operations on polynomials: R.4 Polynomials in one variable A monomial: an algebraic expression of the form ax n, where a is a real number, x is a variable and n is a nonnegative integer. : x,, 7 A binomial is the sum (or difference)

More information

The following is an informal description of Euclid s algorithm for finding the greatest common divisor of a pair of numbers:

The following is an informal description of Euclid s algorithm for finding the greatest common divisor of a pair of numbers: Divisibility Euclid s algorithm The following is an informal description of Euclid s algorithm for finding the greatest common divisor of a pair of numbers: Divide the smaller number into the larger, and

More information

Contents Ordered Fields... 2 Ordered sets and fields... 2 Construction of the Reals 1: Dedekind Cuts... 2 Metric Spaces... 3

Contents Ordered Fields... 2 Ordered sets and fields... 2 Construction of the Reals 1: Dedekind Cuts... 2 Metric Spaces... 3 Analysis Math Notes Study Guide Real Analysis Contents Ordered Fields 2 Ordered sets and fields 2 Construction of the Reals 1: Dedekind Cuts 2 Metric Spaces 3 Metric Spaces 3 Definitions 4 Separability

More information

Fixed Point Theorems for a Family of Self-Map on Rings

Fixed Point Theorems for a Family of Self-Map on Rings International Journal of Scientific and Innovative Mathematical Research (IJSIMR) Volume 2, Issue 9, September 2014, PP 750-756 ISSN 2347-307X (Print) & ISSN 2347-3142 (Online) www.arcjournals.org Fixed

More information

Finite Fields. Mike Reiter

Finite Fields. Mike Reiter 1 Finite Fields Mike Reiter reiter@cs.unc.edu Based on Chapter 4 of: W. Stallings. Cryptography and Network Security, Principles and Practices. 3 rd Edition, 2003. Groups 2 A group G, is a set G of elements

More information

Introduction to Cryptography CS 355 Lecture 3

Introduction to Cryptography CS 355 Lecture 3 Introduction to Cryptography CS 355 Lecture 3 Elementary Number Theory (1) CS 355 Fall 2005/Lecture 3 1 Review of Last Lecture Ciphertext-only attack: Known-plaintext attack: Chosen-plaintext: Chosen-ciphertext:

More information

Rohit Garg Roll no Dr. Deepak Gumber

Rohit Garg Roll no Dr. Deepak Gumber FINITE -GROUPS IN WHICH EACH CENTRAL AUTOMORPHISM FIXES THE CENTER ELEMENTWISE Thesis submitted in partial fulfillment of the requirement for the award of the degree of Masters of Science In Mathematics

More information

Some Basic Logic. Henry Liu, 25 October 2010

Some Basic Logic. Henry Liu, 25 October 2010 Some Basic Logic Henry Liu, 25 October 2010 In the solution to almost every olympiad style mathematical problem, a very important part is existence of accurate proofs. Therefore, the student should be

More information

CSE 20 DISCRETE MATH. Winter

CSE 20 DISCRETE MATH. Winter CSE 20 DISCRETE MATH Winter 2017 http://cseweb.ucsd.edu/classes/wi17/cse20-ab/ Today's learning goals Determine whether a relation is an equivalence relation by determining whether it is Reflexive Symmetric

More information

Core Mathematics 3 Algebra

Core Mathematics 3 Algebra http://kumarmathsweeblycom/ Core Mathematics 3 Algebra Edited by K V Kumaran Core Maths 3 Algebra Page Algebra fractions C3 The specifications suggest that you should be able to do the following: Simplify

More information

MTH 346: The Chinese Remainder Theorem

MTH 346: The Chinese Remainder Theorem MTH 346: The Chinese Remainder Theorem March 3, 2014 1 Introduction In this lab we are studying the Chinese Remainder Theorem. We are going to study how to solve two congruences, find what conditions are

More information

Hanoi Open Mathematical Competition 2017

Hanoi Open Mathematical Competition 2017 Hanoi Open Mathematical Competition 2017 Junior Section Saturday, 4 March 2017 08h30-11h30 Important: Answer to all 15 questions. Write your answers on the answer sheets provided. For the multiple choice

More information

Chapter 1 A Survey of Divisibility 14

Chapter 1 A Survey of Divisibility 14 Chapter 1 A Survey of Divisibility 14 SECTION C Euclidean Algorithm By the end of this section you will be able to use properties of the greatest common divisor (gcd) obtain the gcd using the Euclidean

More information

CSC B36 Additional Notes sample induction and well-ordering proofs. c Nick Cheng

CSC B36 Additional Notes sample induction and well-ordering proofs. c Nick Cheng CSC B36 Additional Notes sample induction and well-ordering proofs c Nick Cheng Introduction We present examples of induction proofs here in hope that they can be used as models when you write your own

More information

Math Day at the Beach 2017

Math Day at the Beach 2017 Math Day at the Beach 017 Multiple Choice Write your name and school and mark your answers on the answer sheet. You have 0 minutes to work on these problems. No calculator is allowed. 1. How many integers

More information

Math 131 notes. Jason Riedy. 6 October, Linear Diophantine equations : Likely delayed 6

Math 131 notes. Jason Riedy. 6 October, Linear Diophantine equations : Likely delayed 6 Math 131 notes Jason Riedy 6 October, 2008 Contents 1 Modular arithmetic 2 2 Divisibility rules 3 3 Greatest common divisor 4 4 Least common multiple 4 5 Euclidean GCD algorithm 5 6 Linear Diophantine

More information

COT 3100 Applications of Discrete Structures Dr. Michael P. Frank

COT 3100 Applications of Discrete Structures Dr. Michael P. Frank University of Florida Dept. of Computer & Information Science & Engineering COT 3100 Applications of Discrete Structures Dr. Michael P. Frank Slides for a Course Based on the Text Discrete Mathematics

More information

FILE NAME: PYTHAGOREAN_TRIPLES_012-( WED).DOCX AUTHOR: DOUG JONES

FILE NAME: PYTHAGOREAN_TRIPLES_012-( WED).DOCX AUTHOR: DOUG JONES FILE NAME: PYTHAGOREAN_TRIPLES_01-(0090107WED.DOCX AUTHOR: DOUG JONES A. BACKGROUND & PURPOSE THE SEARCH FOR PYTHAGOREAN TRIPLES 1. Three positive whole numbers ( a,b,c which are such that a + b = c are

More information

Example: This theorem is the easiest way to test an ideal (or an element) is prime. Z[x] (x)

Example: This theorem is the easiest way to test an ideal (or an element) is prime. Z[x] (x) Math 4010/5530 Factorization Theory January 2016 Let R be an integral domain. Recall that s, t R are called associates if they differ by a unit (i.e. there is some c R such that s = ct). Let R be a commutative

More information

HIGH SCHOOL - PROBLEMS

HIGH SCHOOL - PROBLEMS PURPLE COMET! MATH MEET April 2017 HIGH SCHOOL - PROBLEMS Copyright c Titu Andreescu and Jonathan Kane Problem 1 Paul starts at 1 and counts by threes: 1, 4, 7, 10,.... At the same time and at the same

More information

EDULABZ INTERNATIONAL NUMBER SYSTEM

EDULABZ INTERNATIONAL NUMBER SYSTEM NUMBER SYSTEM 1. Find the product of the place value of 8 and the face value of 7 in the number 7801. Ans. Place value of 8 in 7801 = 800, Face value of 7 in 7801 = 7 Required product = 800 7 = 00. How

More information

JUST THE MATHS UNIT NUMBER 1.5. ALGEBRA 5 (Manipulation of algebraic expressions) A.J.Hobson

JUST THE MATHS UNIT NUMBER 1.5. ALGEBRA 5 (Manipulation of algebraic expressions) A.J.Hobson JUST THE MATHS UNIT NUMBER 1.5 ALGEBRA 5 (Manipulation of algebraic expressions) by A.J.Hobson 1.5.1 Simplification of expressions 1.5.2 Factorisation 1.5.3 Completing the square in a quadratic expression

More information

Math 312/ AMS 351 (Fall 17) Sample Questions for Final

Math 312/ AMS 351 (Fall 17) Sample Questions for Final Math 312/ AMS 351 (Fall 17) Sample Questions for Final 1. Solve the system of equations 2x 1 mod 3 x 2 mod 7 x 7 mod 8 First note that the inverse of 2 is 2 mod 3. Thus, the first equation becomes (multiply

More information

Arithmetic Problems. Chapter Reconstruction of division problems AMM E1 This is Problem E1 of the AMERICAN MATHEMATICAL MONTHLY: x x x x

Arithmetic Problems. Chapter Reconstruction of division problems AMM E1 This is Problem E1 of the AMERICAN MATHEMATICAL MONTHLY: x x x x Chapter 1 Arithmetic Problems 1.1 Reconstruction of division problems 1.1.1 AMM E1 This is Problem E1 of the AMERICAN MATHEMATICAL MONTHLY: x 7 ) Clearly, the last second digit of the quotient is 0. Let

More information

Factoring. Number Theory # 2

Factoring. Number Theory # 2 1 Number Theory # 2 Factoring In the last homework problem, it takes many steps of the Euclidean algorithm to find that the gcd of the two numbers is 1. However, if we had initially observed that 11384623=5393*2111,

More information

Solutions 2016 AB Exam

Solutions 2016 AB Exam Solutions 206 AB Exam Texas A&M High School Math Contest October 22, 206. If (x, y) is a point on the circle x 2 + y 2 = and the distance from (x, y) to (0, ) is 6 5, what is the value of y? ANSWER: 7

More information

Matrix notation. A nm : n m : size of the matrix. m : no of columns, n: no of rows. Row matrix n=1 [b 1, b 2, b 3,. b m ] Column matrix m=1

Matrix notation. A nm : n m : size of the matrix. m : no of columns, n: no of rows. Row matrix n=1 [b 1, b 2, b 3,. b m ] Column matrix m=1 Matrix notation A nm : n m : size of the matrix m : no of columns, n: no of rows Row matrix n=1 [b 1, b 2, b 3,. b m ] Column matrix m=1 n = m square matrix Symmetric matrix Upper triangular matrix: matrix

More information