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
/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none}
Learning Materials
Features
Discover
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 free
Consider an RSA key set with p = 17 , q = 23, N = 23 and e = 3 (as in Figure 1.9). What value of d should be used for the secret key? What is the encryption of the message M = 41 ?
Give a polynomial-time algorithm for computing, given a,b,c, and prime p.
The algorithm for computing by repeated squaring does not necessarily lead to the minimum number of multiplications. Give an example of where the exponentiation can be performed using fewer multiplications, by some other method.
Calculate using any method you choose. (Hint: 127 is prime.)
Is the difference of a multiple of ?
What do you think about this solution?
We value your feedback to improve our textbook solutions.