Fill This Form To Receive Instant Help
Homework answers / question archive / Consider Euclid GCD for consecutive Fibonacci numbers (Fib(m),Fib(m - 1))
Consider Euclid GCD for consecutive Fibonacci numbers (Fib(m),Fib(m - 1)). a) [6pts] Compute the number of iterations T performed in terms of m.
b) [12pts] Using Mathematical Induction (strong form) prove that 1.5m < Fib(m) < 2m for all m ≥ 11.
c) [7pts] Now let n be the input size, i.e., the number of binary digits of Fib(m). From PSN exercise we know that n ≈ log2Fib(m). For convenience, you may take n = log2Fib(m). Obtain bounds for the number of iterations T performed in terms of the input size n.
Answer:
a) the binary of 0*128 is
1* 162 + 2 * 161+ 8 * 160
=256+32+8
=296
b)the binary of 0*127 is
1* 162 + 2* 161 + 7* 160
=512+32+7
=551
c) the binary of 0 * 680 is
6 * 162 +8 *161 +0* 160
=1536 + 128 + 0
=1664