Chapter 4: Number Theory and Cryptography
Q3E
A parking lot has 31 visitor spaces, numbered from 0 to
30. Visitors are assigned parking spaces using the hashing
function, where k is the number formed
from the first three digits on a visitor’s license plate.
a) Which spaces are assigned by the hashing function to
cars that have these first three digits on their license
plates:?
b) Describe a procedure visitors should follow to find a
free parking space, when the space they are assigned
is occupied.
Q3E
Encrypt the message WATCH YOUR STEP by translating the letters into numbers, applying the given encryption function, and then translating the numbers back into letters.
a) f(p)=(p+14) mod 26
b) f(p)=(14 p+21) mod 26
c) f(p)=(-7 p+1) mod 26
Q3E
Prove that part\((ii)\)of Theorem\(1\)is true.
Q3E
Convert the binary expansion of each of these integers to a decimalexpansion.
- \({(1\;\;{\rm{1111)}}_2}\)
- \({(10{\rm{ 0000 0001)}}_2}\)
- \({(1{\rm{ 0101 0101)}}_2}\)
- \({(110{\rm{ 1001 0001 0000)}}_2}\)
Q3E
By inspection (as discussed prior to Example 1 ), find an inverse of 4 modulo 9 .
Q3E
Find the prime factorization of each of these integers.
a.) 88 b.) 126 c.) 729
d.) 1001 e.) 1111 f.) 909,090
Q3RE
Show that if , then .
Q3SE
Find four numbers congruent 5modulo 17.
Q40E
Find the two’s complement representations, using bit strings of length six, of the following integers.
a) 22 b) 31 c) −7 d) −19
Q40E
Using the method followed in Example 17, express the greatest common divisor of each of these pairs of integers as a linear combination of these integers.
a) 9,11 b) 33,44 c) 35,78 d) 21,55 e) 101,203 f)124,323 g) 2002,2339 h) 3457,4669 i) 10001,13422