What time does a 24 hour clock read
100 hours after it reads 2:00?
(100 + 2) mod 24 = 6:00
50 hours before it reads 12:00?
(12 − 50) mod 24 = −38 mod 24 = 10 mod 24 = 10:00
268 hours after it reads 15:00?
(268 + 15) mod 24 = 19:00
Suppose that a and b are integers where a ≡ 11 (mod 19) and b ≡ 3 (mod 19). What is the value of integer c where 0 ≤ c ≤ 18 and
c ≡ 12a (mod 19)
(12)(11) mod 19 = 132 mod 19 = 18
You can compute 132 mod 19 on a calculator as follows.
If you don't get an integer, you made a mistake.
c ≡ a + b (mod 19)
(11 + 3) mod 19 = 14
c ≡ a2 + b2 (mod 19)
112 mod 19 | = | 7 |
32 mod 19 | = | 9 |
(7 + 9) mod 19 | = | 16 |
c ≡ a12 (mod 19)
122 mod 19 | = | 144 mod 19 | = | 11 |
124 mod 19 | = | (112 mod 19) |
= | 7 | |
128 mod 19 | = | (72 mod 19) |
= | 11 | |
1212 mod 19 | = | (128 mod 19)(124 mod 19) mod 19 |
= | (11)(7) mod 19 | |
= | 1 |
Suppose that a and d are integers where d > 1. Show that the quotient q and remainder r when a is divided by d are q = ⌊a/d⌋ and r = a − d ⌊a/d⌋.
It is clear that q and r are integers.
The first requirement of the division theorem is that dq + r = a. Notice that
dq + r | = | d ⌊a/d⌋ + a − d ⌊a/d⌋ |
= | a | |
The second requirement of the division theorem is that 0 ≤ r < d. First, let's show that r ≥ 0.
d ⌊a/d⌋ | ≤ | d(a/d) |
= | a |
so
r | = | a − d ⌊a/d⌋ |
≥ | 0 |
Now let's show that r < d.
so
r | = | a − d ⌊a/d⌋ |
< | a − d(a/d − 1) | |
= | d |
144 mod 7
4−17 mod 4
3−101 mod 17
1
101 ≡ 16 (mod 17)
−101 | ≡ | −16 | (mod 17) |
≡ | 17 − 16 | (mod 17) | |
≡ | 1 | (mod 17) |
List 5 integers that are congruent to 5 mod 12.
5, 17, 29, 41, 53
10111
23
110110110
438
1010110101
693
123
0001,0010,0011BADDFACEDD
1011,1010,1101,1101,1111,1010,1110,1110,1101,1101
45
101101
1234
10011010010
777
1100001001