Chapter 1: Q24E (page 49)
If p is prime, how many elements of have an inverse modulo ?
Short Answer
The total number of inverses is .
Chapter 1: Q24E (page 49)
If p is prime, how many elements of have an inverse modulo ?
The total number of inverses is .
All the tools & learning materials you need for study success - in one app.
Get started for freeSuppose you want to compute the nth Fibonacci number , modulo an integer . Can you find an efficient way to do this?
On page 38, we claimed that since about a fraction of n-bit numbers are prime, on average it is sufficient to draw random n -bit numbers before hitting a prime. We now justify this rigorously. Suppose a particular coin has a probability p of coming up heads. How many times must you toss it, on average, before it comes up heads? (Hint: Method 1: start by showing that the correct expression is . Method 2: if E is the average number of coin tosses, show that ).
1.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?
What is ?
Digital signatures, continued.Consider the signature scheme of Exercise .
(a) Signing involves decryption, and is therefore risky. Show that if Bob agrees to sign anything he is asked to, Eve can take advantage of this and decrypt any message sent by Alice to Bob.
(b) Suppose that Bob is more careful, and refuses to sign messages if their signatures look suspiciously like text. (We assume that a randomly chosen messagethat is, a random number in the range is very unlikely to look like text.) Describe a way in which Eve can nevertheless still decrypt messages from Alice to Bob, by getting Bob to sign messages whose signatures look random.
What do you think about this solution?
We value your feedback to improve our textbook solutions.