By the end of this section you will be able to prove the Chinese Remainder Theorem apply this theorem to solve simultaneous linear congruences

Similar documents
Chapter 3: Theory of Modular Arithmetic 38

MATH Midterm Solutions

BINOMIAL THEOREM An expression consisting of two terms, connected by + or sign is called a

= 5! 3! 2! = 5! 3! (5 3)!. In general, the number of different groups of r items out of n items (when the order is ignored) is given by n!

BINOMIAL THEOREM NCERT An expression consisting of two terms, connected by + or sign is called a

CHAPTER 5 : SERIES. 5.2 The Sum of a Series Sum of Power of n Positive Integers Sum of Series of Partial Fraction Difference Method

MATH /19: problems for supervision in week 08 SOLUTIONS

THE ANALYTIC LARGE SIEVE

a) The average (mean) of the two fractions is halfway between them: b) The answer is yes. Assume without loss of generality that p < r.

2012 GCE A Level H2 Maths Solution Paper Let x,

The Pigeonhole Principle 3.4 Binomial Coefficients

( ) ( ) ( ) ( ) Solved Examples. JEE Main/Boards = The total number of terms in the expansion are 8.

Auchmuty High School Mathematics Department Sequences & Series Notes Teacher Version

I PUC MATHEMATICS CHAPTER - 08 Binomial Theorem. x 1. Expand x + using binomial theorem and hence find the coefficient of

Progression. CATsyllabus.com. CATsyllabus.com. Sequence & Series. Arithmetic Progression (A.P.) n th term of an A.P.

SOME ARITHMETIC PROPERTIES OF OVERPARTITION K -TUPLES

Conditional Convergence of Infinite Products

The Structure of Z p when p is Prime

Lecture 6: October 16, 2017

Ch 3.4 Binomial Coefficients. Pascal's Identit y and Triangle. Chapter 3.2 & 3.4. South China University of Technology

Counting Functions and Subsets

DANIEL YAQUBI, MADJID MIRZAVAZIRI AND YASIN SAEEDNEZHAD

EXAMPLES. Leader in CBSE Coaching. Solutions of BINOMIAL THEOREM A.V.T.E. by AVTE (avte.in) Class XI

EDEXCEL NATIONAL CERTIFICATE UNIT 28 FURTHER MATHEMATICS FOR TECHNICIANS OUTCOME 2- ALGEBRAIC TECHNIQUES TUTORIAL 1 - PROGRESSIONS

Greatest term (numerically) in the expansion of (1 + x) Method 1 Let T

FIXED POINT AND HYERS-ULAM-RASSIAS STABILITY OF A QUADRATIC FUNCTIONAL EQUATION IN BANACH SPACES

Lecture 24: Observability and Constructibility

EVALUATION OF SUMS INVOLVING GAUSSIAN q-binomial COEFFICIENTS WITH RATIONAL WEIGHT FUNCTIONS

9.1 The multiplicative group of a finite field. Theorem 9.1. The multiplicative group F of a finite field is cyclic.

Einstein Classes, Unit No. 102, 103, Vardhman Ring Road Plaza, Vikas Puri Extn., Outer Ring Road New Delhi , Ph. : ,

Multivector Functions

Zero Level Binomial Theorem 04

On a Problem of Littlewood

Finite q-identities related to well-known theorems of Euler and Gauss. Johann Cigler

Range Symmetric Matrices in Minkowski Space

CfE Advanced Higher Mathematics Course materials Topic 5: Binomial theorem

Math 166 Week-in-Review - S. Nite 11/10/2012 Page 1 of 5 WIR #9 = 1+ r eff. , where r. is the effective interest rate, r is the annual

Generalized Fibonacci-Lucas Sequence

Introduction Common Divisors. Discrete Mathematics Andrei Bulatov

ON EUCLID S AND EULER S PROOF THAT THE NUMBER OF PRIMES IS INFINITE AND SOME APPLICATIONS

9.7 Pascal s Formula and the Binomial Theorem

Some Integral Mean Estimates for Polynomials

Advanced Higher Formula List

On ARMA(1,q) models with bounded and periodically correlated solutions

MATHS FOR ENGINEERS ALGEBRA TUTORIAL 8 MATHEMATICAL PROGRESSIONS AND SERIES

( ) 1 Comparison Functions. α is strictly increasing since ( r) ( r ) α = for any positive real number c. = 0. It is said to belong to

Chapter Vectors

KEY. Math 334 Midterm II Fall 2007 section 004 Instructor: Scott Glasgow

NICK DUFRESNE. 1 1 p(x). To determine some formulas for the generating function of the Schröder numbers, r(x) = a(x) =

Consider unordered sample of size r. This sample can be used to make r! Ordered samples (r! permutations). unordered sample

Disjoint Sets { 9} { 1} { 11} Disjoint Sets (cont) Operations. Disjoint Sets (cont) Disjoint Sets (cont) n elements

PROGRESSION AND SERIES

The number of r element subsets of a set with n r elements

Using Counting Techniques to Determine Probabilities

Properties and Tests of Zeros of Polynomial Functions

In algebra one spends much time finding common denominators and thus simplifying rational expressions. For example:

Sect 5.3 Proportions

Using Difference Equations to Generalize Results for Periodic Nested Radicals

On randomly generated non-trivially intersecting hypergraphs

Advanced Physical Geodesy

Technical Report: Bessel Filter Analysis

Modular Spaces Topology

[ 11 ] z of degree 2 as both degree 2 each. The degree of a polynomial in n variables is the maximum of the degrees of its terms.

Discussion 02 Solutions

3.2 Properties of Division 3.3 Zeros of Polynomials 3.4 Complex and Rational Zeros of Polynomials

6.3 Testing Series With Positive Terms

Complementary Dual Subfield Linear Codes Over Finite Fields

The Binomial Theorem

Inverse Matrix. A meaning that matrix B is an inverse of matrix A.

A note on random minimum length spanning trees

APPENDIX F Complex Numbers

MATH 304: MIDTERM EXAM SOLUTIONS

Definitions and Theorems. where x are the decision variables. c, b, and a are constant coefficients.

Problem 4: Evaluate ( k ) by negating (actually un-negating) its upper index. Binomial coefficient

LESSON 15: COMPOUND INTEREST

Topic 1 2: Sequences and Series. A sequence is an ordered list of numbers, e.g. 1, 2, 4, 8, 16, or

ICS141: Discrete Mathematics for Computer Science I

SHIFTED HARMONIC SUMS OF ORDER TWO

(n 1)n(n + 1)(n + 2) + 1 = (n 1)(n + 2)n(n + 1) + 1 = ( (n 2 + n 1) 1 )( (n 2 + n 1) + 1 ) + 1 = (n 2 + n 1) 2.

LESSON 2: SIMPLIFYING RADICALS

Chapter 2 Sampling distribution

Zeros of Polynomials

physicsandmathstutor.com

SOLVED EXAMPLES

September 2012 C1 Note. C1 Notes (Edexcel) Copyright - For AS, A2 notes and IGCSE / GCSE worksheets 1

PROBLEM SET 5 SOLUTIONS. Solution. We prove that the given congruence equation has no solutions. Suppose for contradiction that. (x 2) 2 1 (mod 7).

Some Properties of the K-Jacobsthal Lucas Sequence

Bertrand s Postulate

ANSWERS, HINTS & SOLUTIONS HALF COURSE TEST VII (Main)

Taylor Transformations into G 2

Sums of Involving the Harmonic Numbers and the Binomial Coefficients

Lower Bounds for Cover-Free Families

SNAP Centre Workshop. Basic Algebraic Manipulation

Joe Holbrook Memorial Math Competition

(3) If you replace row i of A by its sum with a multiple of another row, then the determinant is unchanged! Expand across the i th row:

Auchmuty High School Mathematics Department Advanced Higher Notes Teacher Version

working pages for Paul Richards class notes; do not copy or circulate without permission from PGR 2004/11/3 10:50

Student s Name : Class Roll No. ADDRESS: R-1, Opp. Raiway Track, New Corner Glass Building, Zone-2, M.P. NAGAR, Bhopal

COUNTING SUBSET SUMS OF FINITE ABELIAN GROUPS

Chapter Eight Notes N P U1C8S4-6

Transcription:

Chapte : Theoy of Modula Aithmetic 8 Sectio D Chiese Remaide Theoem By the ed of this sectio you will be able to pove the Chiese Remaide Theoem apply this theoem to solve simultaeous liea cogueces The Chiese Remaide Theoem helps us to solve the followig poblem: Suppose you ae i chage of a amy ad you eed to cout the umbe of soldies you have. You ca cout them oe by oe but this is a tedious tas ad is poe to eos. A easie way to cout them is to goup them ito ows. Suppose the followig: If you place them i ows of soldies the 2 soldies ae left ove. If you place them i ows of 5 soldies the soldies ae left ove. If you place them i ows of 7 soldies the 2 soldies ae left ove. We ca covet this poblem ito modula aithmetic which meas we eed to solve the followig simultaeous liea cogueces fo the umbe of soldies which satisfies: 2 mod [Dividig by leaves emaide 2] mod 5 [Dividig by 5 leaves emaide ] 2 mod 7 [Dividig by 7 leaves emaide 2] The umbe of soldies eeds to satisfy all thee of these equatios. This poblem is equivalet to the followig: Fid the itege which leaves a emaide of 2 whe divided by, leaves a emaide of whe divided by 5 ad leaves a emaide of 2 whe divided by 7. We will solve this poblem late i this sectio. D Solvig Simultaeous Liea Cogueces Up to ow we have solved a sigle liea coguece such as a b mod I this sectio we eamie solvig a set of simultaeous liea cogueces. We ll begi by looig at a eample befoe goig o to develop the geeal method. Eample 2 Fid the value of which satisfies both the followig equatios:

Chapte : Theoy of Modula Aithmetic 9 mod 5 4 mod 7 2 Note that we have oe uow which satisfies both [() ad (2)] coguet equatios. Solutio We eed to fid a value of such that equatios () ad (2) ae tue. Let us fist use bute foce to esolve these equatios. Ceatig a table of values: 4 5 6 7 8 9 0 2 4 5 mod 5 4 0 4 0 4 0 mod 7 4 5 6 0 4 5 6 0 Table Shows the juctios of mod 5 ad mod 7 We ca see i the table that the oly value of that will satisfy both ou equatios is : ad 4 mod 7 mod 5 Of couse we ca apply bute foce fo simple itege values. Howeve we eed a systematic appoach to solve these because modulus may be a lage umbe ad we just do ot have the time o willpowe to ceate a table fo lage. Say if 70 the this would mea we would have to ceate a table with 70 colums. What does the fist equatio mod 5 i the above eample mea? This meas that is a multiple of 5 o 5 fo some itege. Reaagig this we have 5. Similaly the othe equatio 4 mod 7 meas 4 7c fo some itege c ad so 4 7c. Equatig these two equatios, 5 ad 4 7c, gives 5 4 7c 7c 5 Sice is a itege we eed 7c to be a multiple of 5. If c the 7 0 7c 7 0 ad 2. 5 5 Substitutig this, c, ito 4 7c gives 4 7 This is ou solutio fom the pevious eample.

Chapte : Theoy of Modula Aithmetic 40 Eample 22 Solve the simultaeous equatios: Solutio mod 49 6 mod 20 Fom these equatios ad defiitio of coguece we have 49 implies 49 6 20c implies 6 20c whee ad c ae iteges. Equatig these last two equatios because both ae equal to gives the Diophatie equatio: 25 49 6 20c 49 implies c 20 Sice we wat itege solutios so we ty values of such that the umeato 25 49 is a multiple of 20. (Multiplyig 49 by multiples of 5 will give esults edig i 5 o 0. Oly esults edig i 5 will be divisible by 20 afte addig 25.) Hece we tial multiples of 5 fo, that is 5, 0, 5,. Note that 5, 0 does ot give a multiple of 20 but 5 does because 25 49 5 c 8 20 Substitutig c 8 ito 6 20c 6 20 8 766. Chec that this 766 gives satisfies both the give equatios: mod 49 766 mod 49 6 mod 20 766 6 mod 20 Eample 2 Fid a itege such that whe divided by 2, ad 5 the emaide is. Solutio We ca wite the itege satisfies the followig coguece equatios: What does this mea? Meas that mod 2 Dividig by 2 with emaide mod Dividig by with emaide mod 5 Dividig by 5 with emaide is a multiple of 2, ad 5 which we ca wite as:

Chapte : Theoy of Modula Aithmetic 4 2, c ad 5m whee, c ad m ae iteges Which umbe is a multiple of 2, ad 5? Sice gcd2, gcd, 5 gcd2, 5 so the smallest umbe which is a multiple of 2, ad 5 is This meas that 2 5 0 [LCM of 2, ad 5 is 0] is a multiple of 0 o 0 implies 0 The geeal solutio of the give thee equatios is 0. Puttig i vaious values of such as, 2,, ito 0 gives 0, 02 6, 0 9, Ou solutio is a multiple of 0 plus. You may chec that each of these solutios satisfies the give equatios: mod 2, mod ad mod 5 We ca also wite the solutios, 6, 9, satisfies mod 0 i modula aithmetic as whee 0 2 5 is the LCM of 2, ad 5 which ae the give moduli. I the et subsectio we ecoute the Chiese Remaide Theoem which povides us with a stuctued way of solvig simultaeous coguece equatios. D2 Poof of the Chiese Remaide Theoem I the above eample we say the umbes 2, ad 5 ae paiwise pime. What does paiwise pime mea? It meas that the oly facto i commo betwee ay pai of umbes is : gcd 2,, gcd2, 5 ad We say iteges 2, ad 5 ae paiwise pime. Be caeful it is ot good eough just to say if gcd,, Fo eample gcd2,, 4 but paiwise pime. Defiitio (.2). gcd, 5 a b c the a, b ad c ae paiwise pime gcd 2, 4 2. The iteges 2, ad 4 ae ot

Chapte : Theoy of Modula Aithmetic 42 Let,,,, a commo facto apat fom, that is be iteges such that ay two of these umbes do ot have gcd, fo i j This meas that evey pai of umbes ae elatively pime. We say this list of iteges,,,, ae paiwise pime. Fo eample the umbes 25, 26 ad 27 ae paiwise pime because gcd 25, 26 i j, gcd26, 27 ad gcd 25, 27 Chiese Remaide Theoem (.22): Let,,,, The the simultaeous liea cogueces be positive iteges which ae paiwise pime. a mod a mod 2 2 a mod has a solutio satisfyig all these equatios. Moeove the solutio is uique modulo 2. How do we pove this esult? We eed to show two thigs () eistece of solutio ad (2) uiqueess of solutio. Poof. () Eistece. Fo each itege, 2,,,, let Let N This meas that 2 Cacellig out 2 We ae give that i j gcd, Why? N is the poduct of all the moduli with the umbe i gcd, fo i j which implies that N whee N 2 Because by poblem 6(ii) of Eecise (c) we have: If gcd a, gcd a, 2 gcd a, the a 2 missig. gcd,.

Chapte : Theoy of Modula Aithmetic 4 Coside the liea coguece equatio N Does this equatio have ay solutios? gcd, N this equatio Sice has a uique solutio. Why? N mod mod Because by Coollay (.9) of the pevious sectio: Let a b mod has a uique solutio povided g a be the uique solutio of N mod N mod ( ) is the multiplicative ivese of mod. Note that gcd, fo each which meas that We eed to costuct a solutio which satisfies all the give simultaeous coguece equatios. The solutio we coside is a N a N a N a N ' 2 2 2 Let us see if this solutio ' satisfies the fist give equatio: a mod Taig the solutio ude cosideatio to modulus gives ' a N a N a N a N mod (*) By the above defiitio of 2 2 2 N : N [Poduct of s with 2 missig] The umbes N, N, N,, N ae multiplies of because is peset i the 2 4 poduct. Theefoe these umbes N, N, N,, N ae coguet to zeo 2 4 modulo that is N N N N 0 2 4 mod so we have 0 mod, 0 mod,, 0 mod a N a N a N 2 2 2 Substitutig this ito (*) gives ' a N 0 0 0 a N mod By the above ( ) we have N mod ' a N mod gives. Substitutig this ito the above

Chapte : Theoy of Modula Aithmetic 44 Hece ' a N a a mod ' satisfies the fist coguece equatio a mod vey simila lies we ca show that the solutio costucted '. Aguig alog satisfies the emaiig coguece equatios. Theefoe thee is a solutio to all the give cogueces, (2) Uiqueess '. Suppose thee is aothe solutio y which satisfies the give equatios. This meas we have a y mod Fom this coguece y mod y fo, 2,, ad fo, 2,, ad we have, y, y,, y 2 ( ) Remembe we ae give that the s ae paiwise pime - i j Applyig the esult of questio (ii) of Eecise(c): a c, a c,, a c If 2 To the above ( ) list gives with j a c the gcd, y This meas that y is a multiple of coguece we have y mod gcd, fo i j. a a a c. 2 so by the defiitio of Hece ad y ae the same solutio modulo 2. This completes ou poof. The poof gives us a systematic appoach o how to costuct the solutio of ay give liea simultaeous cogueces. I the poof the solutio we costucted was give by: a N a N a N a N (.2) 2 2 2 Note the vaious compoets of this fomula ae:. The a s ae the umbes o the ight-had-side of the give equatios a mod. 2. The lowe case s ae the give moduli i a mod.. The uppe casen s ae poduct of the give moduli with missig,

Chapte : Theoy of Modula Aithmetic 45 4. is the multiplicative ivese of N N 2 N modulo, that is satisfies mod We use this fomula (.2) to solve the emaiig eamples. D Applyig the Chiese Remaide Theoem Eample 24 Let us ow solve the soldies poblem stated at the begiig of this sectio. Remembe this poblem was equivalet to solvig the followig simultaeous equatios: 2 mod, mod 5 ad 2 mod 7 Fid the eact umbe of soldies give that you ow thee ae betwee 500 ad 600 soldies. Solutio How do we solve this poblem? We use the above fomula: a N a N a N a N (.2) 2 2 2 I this case because we ae give simultaeous equatios: a N a N a N (*) 2 2 2 We ca oly use this fomula if the give moduli, 5 ad 7 ae paiwise pime: gcd, 5, gcd, 7 ad gcd5, 7 Hece the give moduli, 5 ad 7 ae paiwise pime. Each of these N s is give by Theefoe whee is the poduct of the give moduli: 57 05 [Because we ae give moduli, 5 ad 7] N N N 2 57 5 missig i the poduct 5 7 2 5 5 missig i the poduct 57 5 7 7 missig i the poduct

Chapte : Theoy of Modula Aithmetic 46 We eed to fid the, 2 ad : s which ae give by N mod N N N 5 mod 2 mod 5 2 2 2 We ae equied to fid the umbe that 5 2 mod so we have: Similaly solvig the othe two equatios: Sice we ae give So the a s ae: 5 mod 7 fo which satisfies 5 mod 5 2 mod implies 2 2 mod 5 implies 2 2 2 Because 2 mod 5. Note 5 mod 7 implies Because 5 mod 7 2 mod, mod 5 ad 2 mod 7 [Because a mod a 2, a ad a 2 ] Substitutig a 2, a 2, a 2, N 5, N 2, N 5, 2, 2 2 ad We have 2 ito (*) gives 2 2 2 2 5 2 2 2 5 2 a N a N a N satisfyig all the give simultaeous equatios. Howeve thee may be a smalle umbe which also satisfies all the equatios. How ca we fid this umbe? I the poof we ae give that the solutio is uique modulo 2. I ou case we have 57 05 Hece 2 2 mod 05. The geeal solutio is give by 2 05t Theefoe, ou solutio is a multiple of 05 plus 2.

Chapte : Theoy of Modula Aithmetic 47 We ae give that thee ae betwee 500 ad 600 soldies so substitute t 5 2 05t : 2 055 548 We have 548 soldies i ou as. ito Net, we epad the Chiese Remaide Theoem to cove liea cogueces of the type a b mod because (.2) oly applies to cogueces lie b mod Popositio (.24). Let,,,, a s satisfy cogueces. be positive iteges which ae paiwise pime. Also iteges gcd a, fo, 2,,. The the simultaeous liea a b mod a b mod 2 2 2 a b mod has a solutio satisfyig all these equatios. Moeove, the solutio is uique modulo 2. Poof. See Eecise (d). Eample 25 Solve the followig simultaeous liea cogueces: Solutio 2 mod 5, 9 mod 6 ad 4 mod 7 This time we do ot have? mod m but a? mod m these? We covet them ito? mod m. How do we solve by fist multiplyig each of these equatios by a appopiate facto. Multiplyig the fist liea coguece 2 mod 5 by gives 6 mod 5 Because 6 mod 5

Chapte : Theoy of Modula Aithmetic 48 We ca simplify the secod 9 mod 6 because 9 mod 6 mod 6 By Popositio (.0): so we have ac bc mod a b mod g Applyig this to mod 6 with 6 mod whee g gcd c, g gcd, 6 meas dividig by : implies mod 2 We multiply the thid give equatio 4 mod 7 by 2: 8 2 mod 7 Because 8 mod 7 By combiig the above evaluatios we ow solve the equivalet system: mod 5, mod 2 ad 2 mod 7 Fist we chec that the moduli 2, 5 ad 7 ae paiwise pime: gcd2, 5 gcd2, 7 gcd5, 7 The solutio is give by usig fomula (.2): a N a N a N a N (.2) 2 2 2 Sice we ae give equatios so we use this fomula with : a N a N a N ( ) 2 2 2 The modulus is the poduct of all the give moduli theefoe 527 70 [We have moduli 5, 2 ad 7 ] Evaluatig N, N ad N 2 We eed to fid the, 2 ad : N gives 5 27 N 4 5 52 7 N 5 2 2 52 7 N 0 7 s which ae give by N mod fo 4 mod 5 [Remembe 5 ]

Chapte : Theoy of Modula Aithmetic 49 N N 2 2 2 5 mod 2 [Remembe 2 ] 2 0 mod 7 [Remembe 7 ] Simplifyig each of these cogueces ad solvig gives: 4 mod 5 implies 4 Because 44 mod 5 5 mod 2 implies 2 2 2 0 mod 7 implies 5 What othe igediets do we eed i ode to use ( )? The give a s ae a, a ad a 2 because we ae solvig mod 5, mod 2 ad 2 mod 7 Puttig all these umbes a, a, a 2, N 4, N 5, N 0, 4, ad 5 ito ( ) gives: 2 2 2 2 4 4 5 2 0 5 0 a N a N a N We wite this 0 i modulo 2 which i this case is 527 70. Theefoe 0 2 mod 70. Checig that 2 mod 70 22 mod 5, 2 9 mod 6 ad 42 mod 7 satisfied the thee give simultaeous equatios: Summay To solve simultaeous coguece equatios we apply the Chiese Remaide Theoem to esolve fo the uow.