Introduction To Modular Arithmetic

2y ago
38 Views
2 Downloads
1.23 MB
12 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Giovanna Wyche
Transcription

Introduction To Modular ArithmeticFebruary 22, 2015Olga Radkoradko@math.ucla.eduOleg Gleizeroleg1140@gmail.comWarm Up ProblemProblem 2 It takes a grandfather’s clock 30 seconds to chime6 o’clock. How much time would it take the clock to chime 12?It takes a grandfather’sclock 30 seconds to chime 6 o’clock. Assuming that the time of eachchime is negligible compared to the time intervals between the chimes, how much time wouldit take the clock to chime 12?Clock Arithmetic or a Circle as a Number LineClock Arithmetic or a Circle as a Number LineOne way to turn a circle into a number line is to divide itOne way to turnintoa circleintoequala numberis tocase,divideinto istwelveequalparts. In this case,twelveparts. lineIn thisoneit stepusuallycalledone step is usuallycalledonehour.one hour.1223130122 111410221 9203 158471961851617Notice that 0 coincideswithwith12, 12.andTheas thehandmoves0 coincideshourhourhandmovesfromto0 theto 1,right,from 1 coincides with13, 2 with 14, s1 to 2, . from 11 to 12 just as it would have on the straight with numbersincreasing when numbermovingline.to theright on12aequalsnumberline.12 is itequivalentto 0 on thisHowever,0 onthisHowever,circle, so theregoescircle, which can be written as follows:12 0 (mod 12).21

This can be read as 12 is congruent to 0 modulo 12. The usual ” ” sign is reserved for thestraight number line; we use ” ” on the circle instead. The symbol “mod 12” tells us thatthe circle is divided into 12 equal parts, so that 12 coincides with 0, 13 with 1, etc. In thenew notation we have:12 0 (mod 12),1.2.13 1 (mod 12),.23 11 (mod 12)Please reduce the following numbers in modular arithmetic.(a)18 (mod 12)(b)25 (mod 12)(c)36 (mod 12)Recall that if you move to the left of 0 on a number line, you get negative numbers.Similarly, going in the opposite direction (counterclockwise) on the number circle, we getto negative numbers in modular arithmetic. For example,1 11 (mod 12),25 10 (mod 12).Use this to reduce the following numbers in mod 12 arithmetic (note that all answersmust be between 0 and 11).3.(a)2 (mod 12)(b)4 (mod 12)(c)19 (mod 12)We can also divide the clock into 60 equal parts. Depending on the situation, a unit stepis called either a minute or a second. All of the numbers living on this number circle areconsidered modulo 60. More specifically, 60 0 (mod 60), which corresponds to the factthat there are 60 minutes in an hour (or 60 seconds in a minute).Reduce the following numbers in mod 60 arithmetic.(mod 60)(a)72 (b)135 (mod 60)(c)15 (mod 60)(d)80 (mod 60)2

2404.59 (mod 60)6 What is the time, in hours, minutes, and seconds,What is the time,Problemin hours,minutes, and seconds, on the clock below?on the clock below?055511 12 15010454093847635 1023051520255Notice that since 60 12 5, the same markscan be used to indicate a whole numberof hours and a number of minutes which is a multiple of 5. (For example, the 4 hourmark is theTheresame asminutearethe24 20hoursin a mark).day, so one more standard way toturn a cricle into a number line is to divide it into 24 equalThe 24-HourClockparts.The US military use the 24-hour clock. The following isa photograph of the 24-hour clock from the USS (United StatesThere are 24 hours in a day, so one more standard way to turn a circle into a number lineShip) Mullinnix, the last “all gun” US Navy destroyer in theis to divide it into 24 equal parts. The US militaryuses the 24 hour clock. The followingPacific, decommissioned in 1982.1is a photograph of the 24 hour clock from the USS (United States Ship) Mullinex.USS Mullinnix 24-hour clock.212See its homepage at http://www.ussmullinnix.org/Downloaded from http://www.ussmullinnix.org/MuxMemorabilia.html36

13:00 (thirtheen hundred) hours, plain and simple.Problem 7 What time does the USS Mullinnix clock show?Since 60 is not a multiple of 24, we can’t use the same marks on the face of a 24 hourclock for minutes and hours (look at the minute marks on the face of the 24 hour clock).5.What time does the USS Mullinex clock show on the previous page?6.What is the time on the clock shown below?Problem 8 What is the time on the clock below?055511 12 15010102Suppose that this is the time P.M. How would the military4593 15call it?8440207 6 5353025If this time is in P.M, how would the military call this time?77.Problem 9 On the left, draw the civilian clock showing 1:45.On the right, draw the military clock showing the same timeOn theP.M.left, draw the 12 hour clock showing 7 : 15 P.M. On the right, draw the militaryclock showing the same time.4

Modular ArithmeticIn addition to clock analogy, one can view modular arithmetic as arithmetic of remainders.For example, in mod 12 arithmetic, all the multiples of 12 (i.e., all the numbers that giveremainder 0 when divided by 12) are equivalent to 0. In the modular arithmetic notation,this can be written as12 n 0 (mod 12) for any whole number n.Similarly, all numbers that give remainder 1 when divided by 12 are equivalent to 1. Inother words,12 n 1 1 (mod 12) for any whole number n.Recall that any whole number a can be uniquely written in the forma 12 n rwhere r is one of the numbers 0, 1, ., 11. Notice that r is the remainder of the divisionof a by 12. Therefore, a r (mod 12). For example,50 5 12 10, which implies50 10 (mod 12),40 3 12 4, which means 40 4 (mod 12).8.Write the following numbers in the form a 12 n r. Use this to reduce the givennumbers in mod 12 arithmetic.(a)(b),45 12 45 (mod 12).80 (c)18 (d)61 5

9.Reduce the following negative numbers in mod 12 arithmetic.(a)11 (mod 12)(b)10 (mod 12)(c)9 (mod 12)(d)3 (mod 12)(e)2 (mod 12)(f)1 (mod 12)(g)What do you notice? If you are given a negative number betweendo you reduce it in mod 12 arithmetic? Why is this true?(h)Using your answer to part (g), complete the following formulawhere k 1, ., 11.10.12 and1, how(mod 12)k Similarly to how we used 12 and 60 as a modulus for modular arithmetic, any positiveinteger can be used. Moreover, we can define operations of addition and multiplicationin the modular arithmetic: To add two numbers in modular arithmetic, add them in the ordinary sense and thenreduce (if necessary) in modular arithmetic; To multiply two numbers in modular arithmetic, multiply them in the ordinary senseand then reduce (if necessary) in modular arithmetic;Fill in the addition and multiplication tables below in mod n, where n 4, n 5, and n 7. Be sure to reduce all the numbers in the appropriate mod arithmetic.6

(a)n 4 (b)12x30011223301231234n 5: (c)00123x400112233440n 7: 012012345673456

x0123456012345611.Addition and multiplication are straightforward operations. Solving problems involvingsubtraction can be a little more difficult. We know that subtraction is the operationopposite to addition. For example, in the ordinary arithmetic, to subtract 3 from 4means to find a number c such that 4 3 c. More generally,ab c means that a b .Subtraction in the modular arithmetic is defined in a similar way.Solve the following subtraction problems in modular arithmetic.(a)23 (mod 4)(b)36 (mod 7)(c)12 (mod 3)Now check your answers using addition in modular arithmetic.(a)2 3 (b)3 6 (c)1 2 (mod 4)(mod 7)( mod 3)8

12.Division is the operation opposite to multiplication. For example, in ordinary arithmetic,to divide 3 by 4 means to need to find a number c such that c 4 3. Similarly, inmodulo 7, to divide 3 by 4 means to find a number c such that:c 4 3 (mod 7).c must be equivalent to one of the numbers 0, 1, 2 ., 6 in mod 7. Using the multiplicationtable you made problem 10(c), we see that c 6 (mod 7). Thus, we write3 4 6 (mod 7)This is true because 6 4 3 (mod 7).Please solve the following division problems in modular arithmetic (remember to use thetables you made).(a)1 2 (mod 7)(b)1 4 (mod 7)(c)2 3 (mod 7)(d)4 5 (mod 7)(e)5 6 (mod 7)(f)1 3 (mod 5)(g)How could you solve part (f) without using the tables? (Hint: Use the fact that inmod arithmetic, 1 can be replaced by any number which gives remainder 1 whendivided by 5)9

Zero Divisors13.In regular arithmetic, we know that if a product of two numbers is zero, then at leastone of the numbers is zero. In modular arithmetic, this is not always the case.(a)Find two non-zero numbers in mod 4 arithmetic such that their product is 0.(b)Find two non-zero numbers in mod 6 arithmetic such that their product is 0.When the product of two non-zero numbers is equivalent to zero in modular arithmetic,these numbers are called zero divisors.14.If x and y are zero divisors in mod n, where x and y can be the numbers 0, ., nwhat can be said about the value of x y?15.Find all zero divisors in mod 12 arithmetic. Explain your answer.16.Are there any zero divisors in mod 7 arithmetic? Explain your answer.101,

More Problems17.If a biology experiment begins at 7 : 00 A.M and runs for 80 hours, at what time will itend?18.Cory’s birthday lies on a Monday this year. What day of the week will his birthday beon in 2016?19.Reduce the following numbers using modular arithmetic:(a)136283 192758237582389 (mod 2)(b)19342347328 1894837483 (mod 10)(c)1934232 1894837480 (mod 10)11

20.Suppose hot dog buns come in packages of 34, and hot dogs come in packages of 8.(a)What is the smallest number of packages of hot dogs and hot dog buns Ivy shouldbuy if she doesn’t want to have left-over hot dogs or left-over hot dog buns? (Assumethat hot dogs can’t be eaten without a bun, or vice versa).(b)Suppose that hot dog buns come in packages of 33. What is the smallest number ofpackages of hot dogs and hot dog buns Ivy should buy now?(c)Now assume hot dog buns come in packages of n. Write expressions that showhow many packages of hot dog buns Ivy should buy. Note that there will be twoexpressions: one where the reduced form of n in mod 8 is divisible by 8, and onewhere it is not.12

Modular Arithmetic In addition to clock analogy, one can view modular arithmetic as arithmetic of remain-ders. For example, in mod 12 arithmetic, all the multiples of 12 (i.e., all the numbers that give remainder 0 when divided by , this can be written as 12 n 0 (mod 12) for any whole .

Related Documents:

3.2 Arithmetic series: the sum of an arithmetic sequence Analysis, interpretation and prediction where a model is not perfectly arithmetic in real life. 7C 7D Arithmetic Sequence Arithmetic Series 6C 6D Arithmetic sequences Arithmetic series 3.1 3.2 Arithmetic sequence Arithmetic s

arithmetic sequence finds the nth term of an arithmetic sequence lists down the first few terms of an arithmetic sequence given the general term and vice-versa solves word problems involving arithmetic mean applies the concepts of mean and the nth term of an arithmetic sequence

Arithmetic Series: A series whose terms form an arithmetic sequence. 11 4 Arithmetic Series 7 April 27, 2009 Apr 21 4:18 PM. 11 4 Arithmetic Series 8 April 27, 2009 Apr 21 4:19 PM. 11 4 Arithmetic Series . Homework: page 622 (2 32 even, 37, 40) Title: 11-4 Arithmetic Series Subject: SMART Board Interactive Whiteboard Notes

Modular arithmetic (arithmetic modulo ) is a central theme in number theory and is crucial for generating random numbers from a computer (in fancy-lingo, "machine-implementing objects in probability theory"). . William Stein's SAGE worksheet on Modular Arithmetic for the purposes of linear congruential generators). If you want

arithmetic sequence are called arithmetic means. In the sequence below, 38 and 49 are the arithmetic means between 27 and 60. 5, 16, 27, 38 , 49 , 60 760 Chapter 12 Sequences and Series The n th term of an arithmetic sequence with first term a 1 and common difference d is given by a n a 1 (n 1) d . The n th Term of an Arithmetic Sequence .

2.2 Affine Arithmetic Themodeling tool in thispaper is a ne arithmetic, which is an e cient and recent variant of range arithmetic. In this section, we begin with introducing its predecessor, inter-val arithmetic, and then emphasize the advantage of a ne arithmetic. Interval arithmetic (IA), also known as interval analysis,

9 Modular Arithmetic 9.1 Modular Addition and Multiplication In arithmetic modulo n, when we add, subtract, or multiply two numbers, we take the answer mod n. For example, if we want the product of two numbers modulo n, then we multiply them normally and the answer is the remainder when the normal product is divided by n.

PERFORM SOME BALLET THEMES: Choose from the three themes on the Tchaikovsky Ballet Music sheet and perform on an instrument of your choice. Add in the left hand chords if you are playing on keyboard or piano. You could play either: Theme from the Dance of the Sugar Plum Fairies The Waltz from Sleeping Beauty The March from the .