Chapter 1: Q25E (page 49)
Calculate using any method you choose. (Hint: 127 is prime.)
Short Answer
is equal to
Chapter 1: Q25E (page 49)
Calculate using any method you choose. (Hint: 127 is prime.)
is equal to
All the tools & learning materials you need for study success - in one app.
Get started for free1.37. The Chinese remainder theorem.
(a) Make a table with three columns. The first column is all numbers from 0 to 14. The second is the residues of these numbers modulo 3; the third column is the residues modulo 5. What do we observe?
(b) Prove that if p and q are distinct primes, then for every pair (j, k) with and , there is a unique integer such that and. (Hint:
Prove that no two different i's in this range can have the same (j, k), and then count.)
(c) In this one-to-one correspondence between integers and pairs, it is easy to go from i to (j, k). Prove that the following formula takes we the other way:
(d) Can we generalize parts (b) and (c) to more than two primes?
How many integers modulo have inverses?
Letdenote the set. For each of the following families of hash functions, say whether or not it is universal, and determine how many random bits are needed to choose a function from the family.
(a) , whereis a fixed prime and
Notice that each of these functions has signaturethat is, it maps a pair of integers into a single integer in.
(b) is as before, except that nowis some fixed power of.
(c) is the set of all functions.
1.38. To see if a number, say , is divisible by , you just add up the digits of its decimalrepresentation, and see if the result is divisible by role="math" localid="1658402816137" .
( , so it is not divisible by ).
To see if the same number is divisible by , you can do this: subdivide the number into pairs ofdigits, from the right-hand end , add these numbers and see if the sum is divisible by (if it's too big, repeat).
How about ? To see if the number is divisible by , subdivide it into triples from the end add these up, and see if the sum is divisible by .
This is true for any prime other than and . That is, for any prime , there is an integer such that in order to see if divides a decimal number , we break into -tuples of decimal digits (starting from the right-hand end), add up these -tuples, and check if the sum is divisible by .
(a) What is the smallest such for ? For ?
(b) Show that is a divisor of .
Show that if a has a multiplicative inverse modulo N, then this inverse is unique (modulo N).
What do you think about this solution?
We value your feedback to improve our textbook solutions.