270 likes | 395 Views
M ODULAR A RITHMETIC. Spokane Math Circle May 5 th 2012 DG Kim. Intro To Modular Arithmetic. We usually think of numbers as they appear on a number line – stretching out infinitely in each direction…. Introduction Continued.
E N D
MODULAR ARITHMETIC Spokane Math Circle May 5th 2012 DG Kim
Intro To Modular Arithmetic We usually think of numbers as they appear on a number line – stretching out infinitely in each direction…
Introduction Continued Modular arithmetic is thinking of numbers as repeating in cycles. Now we are going to develop a system of arithmetic around this kind of cyclical number system. Modular 7
Modular Arithmetic Examples 14 ≡ ? (mod 7) ? ≡ 0 (mod 7) 26 ≡ ? (mod 7) ? ≡ 5 (mod 7) 11 ≡ ? (mod 7) ? ≡ 4
30 ≡ ? (mod 8) ? ≡ 6
26 ≡ ? (mod 5) ? ≡ 1
17 ≡ ? (mod 12) ? ≡ 5
36 ≡ ? (mod 4) ? ≡ 0
22 ≡ ? (mod 3) ? ≡ 1
Residues Quick definition: We say that r is the modulo m residue of n when n ≡ r (mod m) and 0 ≤ r < m. In that last section, all we were doing was calculating residues for given numbers and modulos. “Residue” is just the technical term.
More Properties If:
63 + 91 ≡ ? (mod 6) 3 + 1 ≡ 4 (mod 6)
141 - 78 ≡ ? (mod 6) 3 - 0 ≡ 3 (mod 6)
43 × 32 ≡ ? (mod 6) 1 × 2 ≡ 2 (mod 6)
59 × 159 ≡ ? (mod 6) 5 × 3 ≡ 15 ≡ 3 (mod 6)
≡ ? (mod 6) ≡ 64 ≡ 4 (mod 6)
Practical Usage Is a multiple of 11?
Solution We definitely don’t want to multiply out the exponentials, so we will use modular arithmetic. Now lets see how that applies in the equation: Since the residue results in 0 in mod 11, we can say that the exponents subtract to a multiple of 11.
Units Digit Mathematics Notice that the residues of anything in mod 10 is the units digit for the number: Similarly, the residues of anything in mod 100 will result in the last two digits of the number.
Example Find the units digit of 63 × 92. Solution Take the number in mod 10.
Example Find the last two digits of . Solution Take the number in mod 100:
Example Find the last two digits of Solution Take the number in mod 100.