Chapter 1: Q14E (page 49)
Suppose you want to compute the nth Fibonacci number , modulo an integer . Can you find an efficient way to do this?
Short Answer
The final running time after computing each step of is
Chapter 1: Q14E (page 49)
Suppose you want to compute the nth Fibonacci number , modulo an integer . Can you find an efficient way to do this?
The final running time after computing each step of is
All the tools & learning materials you need for study success - in one app.
Get started for freeWilson's theorem says that a numberis prime if and only if
.
(a) If is prime, then we know every number is invertible modulo . Which of thesenumbers is their own inverse?
(b) By pairing up multiplicative inverses, show thatrole="math" localid="1658725109805" for prime p.
(c) Show that if N is not prime, then .(Hint: Consider
(d) Unlike Fermat's Little Theorem, Wilson's theorem is an if-and-only-if condition for primality. Why can't we immediately base a primality test on this rule?
Show that if a has a multiplicative inverse modulo N, then this inverse is unique (modulo N).
In an RSA cryptosystem, p = 7and q = 11(as in Figure 1.9). Find appropriate exponents and .
Quadratic residues. Fix a positive integer N. We say that a is a quadratic residue modulo N ifthere exists a such that .
(a) Let N be an odd prime and be a non-zero quadratic residue modulo N. Show that there are exactly two values in satisfying .
(b) Show that if N is an odd prime, there are exactly quadratic residues in .
(c) Give an example of positive integers a and N such thathas more than two solutions in .
Calculate using any method you choose. (Hint: 127 is prime.)
What do you think about this solution?
We value your feedback to improve our textbook solutions.