Chapter 1: Q23E (page 49)
Show that if a has a multiplicative inverse modulo N, then this inverse is unique (modulo N).
Short Answer
It is proved that the inverse multiplicative modulo is N a distinct modulo.
Chapter 1: Q23E (page 49)
Show that if a has a multiplicative inverse modulo N, then this inverse is unique (modulo N).
It is proved that the inverse multiplicative modulo is N a distinct modulo.
All the tools & learning materials you need for study success - in one app.
Get started for freeGive a polynomial-time algorithm for computing, given a,b,c, and prime p.
The grade-school algorithm for multiplying two n-bit binary numbers x and y consist of addingtogethern copies of r, each appropriately left-shifted. Each copy, when shifted, is at most 2n bits long.
In this problem, we will examine a scheme for adding n binary numbers, each m bits long, using a circuit or a parallel architecture. The main parameter of interest in this question is therefore the depth of the circuit or the longest path from the input to the output of the circuit. This determines the total time taken for computing the function.
To add two m-bit binary numbers naively, we must wait for the carry bit from position i-1before we can figure out the ith bit of the answer. This leads to a circuit of depth. However, carry-lookahead circuits (seewikipedia.comif you want to know more about this) can add indepth.
Suppose 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 ).
Show that if is a nontrivial square root of 1 modulo N , that is if but , then must be composite. (For instance,; thus 4 is a nontrivial square root of 1 modulo 15.)
What do you think about this solution?
We value your feedback to improve our textbook solutions.