1.2 Modular Arithmetic and Check Digit Schemes Recall Long Division

Total Page:16

File Type:pdf, Size:1020Kb

1.2 Modular Arithmetic and Check Digit Schemes Recall Long Division 1.2 Modular Arithmetic and Check Digit Schemes Recall Long Division: a = mq + r and 0 ≤ r < m (division algorithm) Dividend = a Divisor = m Quotient = q Remainder = r If r = 0, "m divides a" and we write m a Example: a) Given a = 543 and m= 13, find q and r: b) Use a calculator to divide 543 ÷ 13 to determine q and r. Procedure for finding r with calculator: 1. Divide a÷m. The whole number portion is q. 2. Multiply the decimal portion of the above result by m to approximate r. 3. Round r to the nearest whole number. Example: Use a calculator to find q and r for -359÷7 Congruence Modulo m The difference between two numbers is divisible by m: m≥2. a is congruent to b modulo m is: a≡b mod m and this means that m evenly divides (a­b): or m (a­b) "m" is called the modulus. If the modulus is obvious, we can write a≡b (Check out the patterns in table 1.5 on page 23) Examples: 1. Verify the congruences a) 66≡38 mod7 b) 3422≡-153 mod13 c) -34≡ -89 mod5 2. a) Determine the integer r that is congruent to 132 mod5 such that r ≡ 132 mod5 b) List all the integers that are congruent to 132 modulo 5 Modular Arithmetic (See Theorem page 25) Let m≥2 be a fixed integer and let a, b, c, and d be arbitrary integers. Then the following are true: 1. a ≡ a mod m 2. If a≡b mod m, then b≡a mod m. 3. If a≡b mod m and b≡c mod m, then a≡c mod m. 4. If a≡b mod m and c≡d mod m, then a+c≡b+d mod m. 5. If a≡b mod m and c≡d mod m, then axc≡bxd mod m. 6. If a≡b mod m, then ak ≡bk mod m, for any positive integer k. Practice: Verify that 16x31 ≡ 6 mod 7 1) Use definition: 2) Use #5 above: 3) find "r" for r≡210 mod 7 (use property #5) 4) Compute 2300 modulo 7 (use property #6) Mod 9 Check Digit Scheme: the check digit is the whole number from 0 to 8 that is congruent to the ID number modulo 9. (see p. 26 for the formal definition) Examples: 1. Determine the check digit (in the fifth position) for 5368_ 2. Find the missing digit: 73_11 Another Example: ("casting out nines") Suppose a U.S. Post Office money order is identified by the 10­digit number 2995709918_. What should be the check digit in the 11th position? Now work with a partner or two...read the rest of pp. 28 and 29 and work out the Examples. Be prepared to explain! Summary and Table 1.7 (VIN numbers).
Recommended publications
  • Squaring, Cubing, and Cube Rooting Arthur T
    Squaring, Cubing, and Cube Rooting Arthur T. Benjamin Arthur T. Benjamin ([email protected]) has taught at Harvey Mudd College since 1989, after earning his Ph.D. from Johns Hopkins in Mathematical Sciences. He has served MAA as past editor of Math Horizons and the Spectrum Book Series, has written two books for MAA, and served as Polya Lecturer from 2006 to 2008. He frequently performs as a mathemagician, a term popularized by Martin Gardner. I still recall the thrill and simultaneous disappointment I felt when I first read Math- ematical Carnival [4] by Martin Gardner. I was thrilled because, as my high school teacher had told me, mathematics was presented there in a playful way that I had never seen before. I was disappointed because Gardner quoted a formula that I thought I had “invented” a few years earlier. I have always had a passion for mental calculation, and the formula (1) below appears in Gardner’s chapter on “Lightning Calculators.” It was used by the mathematician A. C. Aitken to square large numbers mentally. Squaring Aitken took advantage of the following algebraic identity. A2 (A d)(A d) d2. (1) = − + + Naturally, this formula works for any value of d, but we should choose d to be the distance to a number close to A that is easy to multiply. Examples. To square the number 23, we let d 3 to get = 232 20 26 32 520 9 529. = × + = + = To square 48, let d 2 to get = 482 50 46 22 2300 4 2304. = × + = + = With just a little practice, it’s possible to square any two-digit number in a matter of seconds.
    [Show full text]
  • Divisibility Rules by James D
    DIVISIBILITY RULES BY JAMES D. NICKEL Up to this point in our study, we have explored addition, subtraction, and multiplication of whole num- bers. Recall that, on average, out of every 100 arithmetical problems you encounter 70 will require addition, 20 will require multiplication, 5 will require subtraction, and 5 will require division. Although least used, di- vision is a part of everyday life. Parents, in providing inheritances for their children, generally seek to divide the estate equally between their children. When four people play with a deck of 52 cards, they seek to divide the cards equally to each player. We are now ready to explore the nature of division and, to speak truthfully, division is one of the hard- est processes for a student to master because it is the most complicated of all the arithmetical operations. Note what was said about it in 1600: Division is esteemed one of the busiest operations of Arithmetick, and such as requireth a mynde not wandering, or setled uppon other matters.1 So, we shall tread this division ground lightly before we start digging. We shall provide a few lessons of “interlude” first that I think you will find very enjoyable. The ancient Greeks of the Classical era (ca. 600–300 BC) were fascinated with the structure of number, especially the natural numbers. For the = 2 = 1 philosophers of this period, the study of the structure of natural numbers = 4 = 3 was a favorite “thought” hobby. We have already seen one example of this in the classification of even and odd numbers.
    [Show full text]
  • Cool Math Essay May 2013: DIVISIBILITY
    WILD COOL MATH! CURIOUS MATHEMATICS FOR FUN AND JOY MAY 2013 PROMOTIONAL CORNER: PUZZLER: Here’s a delight for dividing Have you an event, a workshop, a website, by nine. To compute 12401÷ 9 , for some materials you would like to share with example, just read form left to right and the world? Let me know! If the work is about record partial sums. The partial sums give deep and joyous and real mathematical the quotient and the remainder! doing I would be delighted to mention it here. *** Are you in the DC/Maryland are looking for an exciting, rich and challenging summer- course experience for students? The Institute for Academic Challenge is offering a really cool course on The puzzle is: Why does this work? Combinatorics, August 12-23. Check out www.academicchallenge.org/classes.html . COMMENT: If we didn’t carry digits in our arithmetic system, this method would always hold. For instance, 3282÷ 9 = 3|5|13remainder 15 is mathematically correct! © James Tanton 2013 26+ 78 = 104! That is, DIVIDING BY 97 6 AND OTHER SUCH QUANTITIES 1378÷ 98 = 14 . 98 Quick! What’s 602÷ 97 ? Qu ery : Look at the picture on the left. Can Well… you use it to see that 602÷ 103 equals 6 602 is basically 600 , with a remainder of −16 , a negative 97 is essentially 100 , and −16 remainder? So 602÷ 103 = 6 . What is 600÷ 100 = 6 . 103 approximate decimal value of this? So 602÷ 97 is basically 6 . How far off is this answer? What is 598÷ 103 ? A picture of 602 dots shows that each COMMENT : If x= y and z= y , then group of 100 is off from being a group of surely it is true that x= z .
    [Show full text]
  • Notes on Arithmetic of Some Commutative Rings and Fields October 1993 G.R. Blakley 0
    Notes on Arithmetic of Some Commutative Rings and Fields October 1993 G.R. Blakley 0 INDEX 1. MODULAR ARITHMETIC 11 2. CASTING OUT NINES, TENS AND ELEVENS 21 3. MULTIPLE PRECISION ARITHMETIC 31 4. THE BINARY METHOD OF RAISING A BASE TO A POWER 41 5. A FIRST CUT AT NUMBER THEORY: PRIMES, COMPOSITES, ϕ, λ FERMAT’S, EULER’S AND CARMICHAEL’S THEOREMS 51 6. THE EUCLIDEAN ALGORITHM FOR INTEGERS 61 7. THE ARITHMETIC OF POLYNOMIALS 71 8. THE EUCLIDEAN ALGORITHM FOR POLYNOMIALS. FIRST CUT 81 9. THE ARITHMETIC OF POLYNOMIALS WHOSE COEFFICIENT ARITHMETIC IS MODULO 2 ARITHMETIC 91 10. THE EUCLIDEAN ALGORITHM FOR POLYNOMIALS. SECOND CUT 101 11. FINDING RECIPROCALS MODULO m 111 12. A SECOND CUT AT NUMBER THEORY: THE DISTRIBUTION OF PRIMES 121 13. REDUCIBILITY AND IRREDUCIBILITY 131 14. FIELDS. ESPECIALLY GALOIS FIELDS 141 15. SMART DISPLAYS OF TABLES FOR SMALL GALOIS FIELDS 151 16. GALOIS FIELDS. 161 0 1. MODULAR ARITHMETIC. 9 hours after 8 PM isn’t 17 PM. It’s 5 AM. This is an example of modulo 12 arithmetic. 9 + 8 = 17 = 12 + 5. So we write 9 + 8 5 mod 12. ≡ Definition 11. More generally a b mod m means that b a is a multiple of m.Equiv- ≡ − alently, a b mod m means that b and a leave the same remainder upon division by m. ≡ The expression a b mod m is sometimes abbreviated a b. ≡ ≡m Lemma 11. Congruence modulo a positive integer m has three properties. REFLEXIVE. a, a a mod m ∀ ≡ SYMMETRIC. a, b, a b mod m if b a mod m ∀ ∀ ≡ ≡ TRANSITIVE.
    [Show full text]
  • Single Digits
    ...................................single digits ...................................single digits In Praise of Small Numbers MARC CHAMBERLAND Princeton University Press Princeton & Oxford Copyright c 2015 by Princeton University Press Published by Princeton University Press, 41 William Street, Princeton, New Jersey 08540 In the United Kingdom: Princeton University Press, 6 Oxford Street, Woodstock, Oxfordshire OX20 1TW press.princeton.edu All Rights Reserved The second epigraph by Paul McCartney on page 111 is taken from The Beatles and is reproduced with permission of Curtis Brown Group Ltd., London on behalf of The Beneficiaries of the Estate of Hunter Davies. Copyright c Hunter Davies 2009. The epigraph on page 170 is taken from Harry Potter and the Half Blood Prince:Copyrightc J.K. Rowling 2005 The epigraphs on page 205 are reprinted wiht the permission of the Free Press, a Division of Simon & Schuster, Inc., from Born on a Blue Day: Inside the Extraordinary Mind of an Austistic Savant by Daniel Tammet. Copyright c 2006 by Daniel Tammet. Originally published in Great Britain in 2006 by Hodder & Stoughton. All rights reserved. Library of Congress Cataloging-in-Publication Data Chamberland, Marc, 1964– Single digits : in praise of small numbers / Marc Chamberland. pages cm Includes bibliographical references and index. ISBN 978-0-691-16114-3 (hardcover : alk. paper) 1. Mathematical analysis. 2. Sequences (Mathematics) 3. Combinatorial analysis. 4. Mathematics–Miscellanea. I. Title. QA300.C4412 2015 510—dc23 2014047680 British Library
    [Show full text]
  • Historical Methods for Multiplication
    235 HISTORICAL METHODS FOR MULTIPLICATION Bjorn SMESTAD Konstantinos NIKOLANTONAKIS Oslo University College University of Western Macedonia Oslo, Norway Florina, Greece [email protected] [email protected] ABSTRACT This paper summarizes the contents of our workshop. In this workshop, we presented and discussed the “Greek” multiplication, given by Eutokios of Ascalon in his commentary on The Measurement of a Circle. We discussed part of the text from the treatise of Eutokios. Our basic thesis is that we think that this historical method for multiplication is part of the algorithms friendly to the user (based on the ideas that the children use in their informal mental strategies). The important idea is that the place value of numbers is maintained and the students act with quantities and not with isolated symbols as it happens with the classic algorithm. This helps students to control their thought at every stage of calculation. We also discussed the Russian method and the method by the cross (basically the same as “Casting out nines”) to control the execution of the operations. 1 Theoretical basis During the University studies for the future teachers of mathematics of Primary (but also of Secondary) education it is very important to develop a multidimensional scientific- mathematical culture (Kaldrymidou & als, 1991). The dimensions to work on could be: - The knowledge, which includes the global apprenticing of mathematical notions and theories, one approach of school mathematics and in parallel one pedagogical and psychological approach of mathematics education, - The knowledge about the knowledge, the understanding of the role, of the dynamic and the nature of mathematics, - The knowledge for the action, the theoretical context of the organization and the approach of school mathematics and via this the evaluation of the work in the classes, - The action, the praxis and the experience of mathematics education.
    [Show full text]
  • Divisibility Tests. By- Foley, Jack L
    REPORT RESUMES ED 020 893 SE 004 516 DIVISIBILITY TESTS. BY- FOLEY, JACK L. PUB DATE AUG 67 FORS PRICE MF-$0.25 HC-$1.44 34P. DESCRIPTORS- *ARITHMETIC, ''ELEMENTARY SCHOOLMATHEMATICS, *MATHEMATICS, DIVISION, INSTRUCTIONAL MATERIALS, LOWABILITY STUUENTS, STUDENT ACTIVITIES, ESEA TITLE 3, THIS BOOKLET, ONE OF A SERIES, HAS BEEN DEVELOPEDFOR THE PROJECT, A PROGRAM FOR MATHEMATICALLYUNDERDEVELOPED PUPILS. A PROJECT TEAM, INCLUDING INSERVICETEACHERS, IS BEING USED TO WRITE AND DEVELOP THE MATERIALSFOR THIS PROGRAM. THE MATERIALS DEVELOPED IN THIS BOOKLETINCLUDE SUCH CONCEPTS AS (1) DIVISIBILITY TESTS,(2) CHECKING THE FUNDAMENTAL OPERATIONS BY CASTING OUT NINES ANDELEVENS, AND (3) APPLICATION OF DIVISIBILITY. ACCOMPANYINGTHESE BOOKLETS WILL BE A "TEACHING STRATEGY BOOKLET" WHICHWILL INCLUDE A DESCRIPTION OF TEACHER TECHNIQUES, METHODS, SUGGESTED SEQUENCES, ACADEMIC GAMES, AND SUGGESTED VISUALMATERIALS. (RP) U.S. DEPARTMENT OF HEALTH, EDUCATION &WELFARE OFFICE OF EDUCATION THIS DOCUMENT HAS BEEN REPRODUCED EXACTLYAS RECEIVED FROM THE PERSON OR ORGANIZATION ORIGINATING IT.POINTS OF VIEW OR OPINIONS STATED DO NOT NECESSARILY REPRESENT OFFICIALOFFICE OF EDUCATION POSITION CR POLICY. 0 t 0 4 6 Cu 41I rfe4OM: :3 4004,e* (1Zire* ESEA Titleau PROJECT MATHEMATICS Project Team Dr. Jack L. Foley, Director Elizabeth Basten, Administrative Assistant Ruth Bower, Assistant Coordinator Wayne Jacobs, Assistant Coordinator Gerald Burke, Assistant Coordinator Leroy B. Smith, Mathematics Coordinator for Palm Beach County Graduate and Student Assistants Secretaries Jean Cruise Novis Kay Smith Kathleen Whittier Dianah Hills Jeanne Hullihan Juanita Wyne Barbara Miller Larry Hood Donnie Anderson Connie Speaker Ambie Vought Dale McClung TEACHERS Sister Margaret Artuar Mrs. Christine Maynor Mr. John Atkins, Jr. Mr. Ladell Morgan Mr. Lawrence Bernier Mr.
    [Show full text]
  • 3763 Casting out Nines
    3763 Casting Out Nines You must have heard of the great mathematician Leonardo da Pisa Fibonacci (1170-1240). Among the many algorithms that he described in his Liber Abaci book, (which was first published in 1202,) Fibonacci described the Casting Out Nines procedure for checking out addition, subtraction, and mul- tiplication. According to historians, the procedure was transmitted to Europe by the Arabs, but was probably developed somewhere on the Indian subcontinent and is therefore sometimes also called “the Hindu check.” “Casting out nines” is an elementary check of a multiplication which makes use of the congruence 10x ≡ 1 (mod 9). Remember that when writing x ≡ y (mod z) we’re actually saying that (x mod z) is equal to (y mod z). Let a, b be natural numbers whose product is c. Let the sums of the digits of these numbers be a, b, and c. Then a ≡ a(mod9), b ≡ b(mod9), and c ≡ c(mod9). Furthermore a × b ≡ a × b(mod9), and so a × b ≡ c(mod9). So if c and a × b are incongruent (mod9), the multiplication has been done incorrectly. For example, 12345 × 67890 = 838102050. The sum-of-digits of 12345 and 67890 are 15 and 30, respectively, and the product of these is 450. Similarly, the sum-of-digits of 838102050 is 27. And since 450 ≡ 27 ≡ 0 (mod 9), so the Hindu Check shows agreement. As another example, say someone incorrectly calculates 13579 × 24680 = 334129720. Since a × b = 25 × 20 = 500 ≡ 5(mod9) whereas c = 31 ≡ 4(mod9). So the multiplication is definitely incorrect.
    [Show full text]
  • International Mathematical Talent Search
    TALENT SEARCH PROBLEMS FOR ELEMENTARY CHILDREN Ed Barbeau Department of Mathematics University of Toronto Toronto, ON M5S 3G3 [email protected] The problems that follow are from the International Mathematics Talent Search, a regular program initiated about two decades ago in the United States by the mathematician George Berzsenyi, then at Rose- Hulman Institute of Technology. It has now become an international venture, with participants in many countries, including Canada. While the problems are designed for secondary students, they vary considerably in difficulty and background required, and it seems to me that many of them are suitable for more junior student. In some cases, they are posed in a language that would be strange to elementary children, especially in their use of algebraic notation, and so would need to be adapted. Listed below, roughly in order of suitability, problems that could be used for students in the Grade 5-8 range. I have commented on some of them. Where the wording seems a little opaque, a different formulation has been suggested. I would like teachers to try these out on their students. Sometimes the appropriate setting might be as individual problems posed for students to look at after hours, sometimes as group problems in class, and perhaps occasionally incorporated into the curriculum as part of the regular program. I hope that you will try out the problems yourself before looking at the comments, as this will give you a better sense as to what might be involved and where the children might go with them. It would be very helpful to hear from teachers who have used any of these problems.
    [Show full text]
  • Numbers 1 to 100
    Numbers 1 to 100 PDF generated using the open source mwlib toolkit. See http://code.pediapress.com/ for more information. PDF generated at: Tue, 30 Nov 2010 02:36:24 UTC Contents Articles −1 (number) 1 0 (number) 3 1 (number) 12 2 (number) 17 3 (number) 23 4 (number) 32 5 (number) 42 6 (number) 50 7 (number) 58 8 (number) 73 9 (number) 77 10 (number) 82 11 (number) 88 12 (number) 94 13 (number) 102 14 (number) 107 15 (number) 111 16 (number) 114 17 (number) 118 18 (number) 124 19 (number) 127 20 (number) 132 21 (number) 136 22 (number) 140 23 (number) 144 24 (number) 148 25 (number) 152 26 (number) 155 27 (number) 158 28 (number) 162 29 (number) 165 30 (number) 168 31 (number) 172 32 (number) 175 33 (number) 179 34 (number) 182 35 (number) 185 36 (number) 188 37 (number) 191 38 (number) 193 39 (number) 196 40 (number) 199 41 (number) 204 42 (number) 207 43 (number) 214 44 (number) 217 45 (number) 220 46 (number) 222 47 (number) 225 48 (number) 229 49 (number) 232 50 (number) 235 51 (number) 238 52 (number) 241 53 (number) 243 54 (number) 246 55 (number) 248 56 (number) 251 57 (number) 255 58 (number) 258 59 (number) 260 60 (number) 263 61 (number) 267 62 (number) 270 63 (number) 272 64 (number) 274 66 (number) 277 67 (number) 280 68 (number) 282 69 (number) 284 70 (number) 286 71 (number) 289 72 (number) 292 73 (number) 296 74 (number) 298 75 (number) 301 77 (number) 302 78 (number) 305 79 (number) 307 80 (number) 309 81 (number) 311 82 (number) 313 83 (number) 315 84 (number) 318 85 (number) 320 86 (number) 323 87 (number) 326 88 (number)
    [Show full text]
  • A Course in Mathematics Appreciation
    Rowan University Rowan Digital Works Theses and Dissertations 5-1-1995 A course in mathematics appreciation Daniel J. Kraft Rowan College of New Jersey Follow this and additional works at: https://rdw.rowan.edu/etd Part of the Science and Mathematics Education Commons Recommended Citation Kraft, Daniel J., "A course in mathematics appreciation" (1995). Theses and Dissertations. 2256. https://rdw.rowan.edu/etd/2256 This Thesis is brought to you for free and open access by Rowan Digital Works. It has been accepted for inclusion in Theses and Dissertations by an authorized administrator of Rowan Digital Works. For more information, please contact [email protected]. A COURSE IN MATHEMATICS APPRECATION by Daniel J. Kraft A Thesis Submitted in partial fulfillent of the requirements of the Master of Arts Degree in the Craduate Division of Rowan College in Mathematics Educarion 1995 ''CC'~'"AnnmTrl hv J. Sooy tlntp A nnrnveA .h• Yw E AFM= f W ABSTRACT Daniel I. Kraft, A Course in Mathematics Appreciation, 1995, J. Sooy, Mathematics Education. The purpose of this study is to create a mini-corse in mathematics appreciation at the senior high school level. The mathematics appreciation course would be offered as an elective to students in the lth or 12th grade, who are concurrently enrolled in trigonometry or calculus. The topics covered in the mathematics appreciation course include: systems of numeration, congrunces, Diophantine equations, Fibonacci sequences, the golden section, imaginary numbers, the exponential function, pi, perfect numbers, numbers with shape, ciphers, magic squares, and root extraction techniques. In this study, the student is exposed to mathematical proofs, where appropriate, and is encouraged to create practice problems for other members of the class to solve.
    [Show full text]
  • Divisibility
    This column is for your mathematical amusement. Its author is very happy to correspond with readers about mathematical matters, and hopes that the column will turn out to be a dialogue with readers of the Frontenac News. His email address is [email protected]. Divisibility Those of you who make a hobby of mental arithmetic will know some divisibility tests, that is ways of telling whether a given whole number is divisible by some integer. The simplest of these is the test for divisibility by 2; a number is divisible by 2 exactly when its last digit is even. This can be generalized. To check for divisibility by 4, we just need to determine whether the number formed by its last two digits is divisible by 4. A number is divisible by 8 exactly when the number formed by its last three digits is divisible by 8. Your teen-aged child or grandchild might be able to explain to you why this is so. Another simple test is for divisibility by 5 { just check whether the last digit is 5 or 0. For divisibiity by 25, we need the last two digits to be 00, 25, 50 or 75. Next we turn to divisibility by 3, 6 or 9. The older among the readers of this column may have learned the technique of casting out nines when they were in public school. To perform this, we take a given number and determine its digital sum. This involves adding its digits, then adding the digits of the total and repeating this until you get a single digit answer.
    [Show full text]