Question

Recall from class that the Fibonacci numbers are defined as follows: fo = 0,fi-1 and for all n fn-n-1+fn-2- 2, (a) Let nEN,n

0 0
Add a comment Improve this question Transcribed image text
Answer #1

(a) Recall that for any two integers a and b, if we can get integers q and r with 0 \le r \le b-1 ,such that a=bq+r, then q is the quotient and r is the remainder, when a is divided by b. Compare f_n=f_{n-1}+f_{n-2} , with a=bq+r, here 0 \le f_{n-2} \le f_{n-1} , hence we get q=1 and r=f_{n-2}, that is the desired quotient and remainder.

(b) Recall the Euclidean algorithm, to compute gcd(a,b), for any two non negative integers. If a=b then gcd(a,b)=a. If a\not= b, then we can assume (without loosing any generality ) that a>b. Then get q,r>0 with 0\le r\le b-1<b, such that a=bq+r, Now repeating the process for the pair (b,r) and for that we will get a remainder less than r, then again repeat the process on r and the new remainder and repeat again until the remainder gets 0. This is the algorithm.

So for calculating gcd (f_n,f_{n-1}) , where  f_n=f_{n-1}+f_{n-2}, for the initial step we get f_{n-2}, similarly using the fact f_{n-1}=f_{n-2} + f_{n-3} , in the first step we will get f_{n-3} and so on.

Note that this process will stop when the remainder gets to zero. And each cases the remainder is of the form f_{n-k} for some k, and this term is zero when n-k is zero.

So in the zero-th step we got f_{n-2}, in the first step we get f_{n-3} . Thus doing this on recursively we get at the i-th stage we will get the remainder f_{n-2-i}, and for the remainder to get zero we have {n-2-i}=0 that is i=n-2.

Thus at the n-2 th stage the Euclidean algorithm will stop.

Feel free to put a comment if you have any doubts. Cheers!

Add a comment
Know the answer?
Add Answer to:
Recall from class that the Fibonacci numbers are defined as follows: fo = 0,fi-1 and for all n fn...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 2. The Fibonacci numbers are defined recursively as follows: fo = 0, fi = 1 and...

    2. The Fibonacci numbers are defined recursively as follows: fo = 0, fi = 1 and fn fn-l fn-2 for all n > 2. Prove that for all non-negative integers n: fnfn+2= (fn+1)2 - (-1)" 2. The Fibonacci numbers are defined recursively as follows: fo = 0, fi = 1 and fn fn-l fn-2 for all n > 2. Prove that for all non-negative integers n: fnfn+2= (fn+1)2 - (-1)"

  • The Fibonacci numbers are defined as follows, f1=1, f2=1 and fn+2=fn+fn+1 whenever n>= 1. (a) Characterize...

    The Fibonacci numbers are defined as follows, f1=1, f2=1 and fn+2=fn+fn+1 whenever n>= 1. (a) Characterize the set of integers n for which fn is even and prove your answer using induction (b) Please do b as well. The Fibonacci numbers are defined as follows: fi -1, f21, and fn+2 nfn+1 whenever n 21. (a) Characterize the set of integers n for which fn is even and prove your answer using induction. (b) Use induction to prove that Σ. 1...

  • 14. (15 points) Recall that Fibonacci numbers are defined recursively as follows: fnIn-1 +In-2 (for n...

    14. (15 points) Recall that Fibonacci numbers are defined recursively as follows: fnIn-1 +In-2 (for n 2 2), with fo 0, fi-1 Show using induction that fi +f 2.+fn In+2-1. Make sure to indicate whether you are using strong or weak induction, and show all work. Any proof that does not use induction wil ree or no credit.

  • Problem 2, Let fn denote the nth Fibonacci number. (Recall: fi = 1,f2-1 and fi- fn...

    Problem 2, Let fn denote the nth Fibonacci number. (Recall: fi = 1,f2-1 and fi- fn ifn 2, n 3) Prove the following using strong mathematical induction fr T&

  • 3. The sequence (Fn) of Fibonacci numbers is defined by the recursive relation Fn+2 Fn+1+ F...

    3. The sequence (Fn) of Fibonacci numbers is defined by the recursive relation Fn+2 Fn+1+ F for all n E N and with Fi = F2= 1. to find a recursive relation for the sequence of ratios (a) Use the recursive relation for (F) Fn+ Fn an Hint: Divide by Fn+1 N (b) Show by induction that an 1 for all n (c) Given that the limit l = lim,0 an exists (so you do not need to prove that...

  • (5) Fibonacci sequences in groups. The Fibonacci numbers Fn are defined recursively by Fo 0, F1...

    (5) Fibonacci sequences in groups. The Fibonacci numbers Fn are defined recursively by Fo 0, F1 -1, and Fn - Fn-1+Fn-2 forn 2 2. The definition of this sequence only depends on a binary operation. Since every group comes with a binary operation, we can define Fibonacci- type sequences in any group. Let G be a group, and define the sequence {fn in G as follows: Let ao, a1 be elements of G, and define fo-ao, fi-a1, and fn-an-1an-2 forn...

  • Exercise 6. Let En be the sequence of Fibonacci numbers: Fo = 0, F1 = 1,...

    Exercise 6. Let En be the sequence of Fibonacci numbers: Fo = 0, F1 = 1, and Fn+2 = Fn+1 + Fn for all natural numbers n. For example, F2 = Fi + Fo=1+0=1 and F3 = F2 + F1 = 1+1 = 2. Prove that Fn = Fla" – BM) for all natural numbers n, where 1 + a=1+ V5 B-1-15 =- 2 Hint: Use strong induction. Notice that a +1 = a and +1 = B2!

  • Can someone tell me how to deal with (b)?? Let Fn be the n-th Fibonacci number,...

    Can someone tell me how to deal with (b)?? Let Fn be the n-th Fibonacci number, defined recursively by F() = 0.FI = 1 and fn Fn-1 F-2 for n 2 2. Prove the following by induction (or strong induction): (a) For all n 20, F+1 s (Z). (b) Let Gn be the number of tilings of a 2 x n grid using domino pieces (i.e. 2 x 1 or 1 x 2 pieces). Then Gn- Fn

  • Problem 7.8 (Explore: Fibonacci Identities). The Fibonacci numbers are a famous integer sequence:...

    discrete math Problem 7.8 (Explore: Fibonacci Identities). The Fibonacci numbers are a famous integer sequence: Fn) o 0, 1, 1,2,3, 5, 8, 13, 21, 34, 55, 89,... defined recursively by Fo 0, F1, and F F Fn-2 for n2 2. (a) Find the partial sums Fo+Fi +F2, Fo+ Fi +F2Fs, Fo + Fi + F2+Fs +F, FoF1+F2+ Fs+F4F (b) Compare your partial sums above with the terms of the Fibonacci sequence. Do you see any patterns? Make a conjecture for...

  • Fibonacci num Fn are defined as follow. F0 is 1, F1 is 1, and Fi+2 =...

    Fibonacci num Fn are defined as follow. F0 is 1, F1 is 1, and Fi+2 = Fi + Fi+1, where i = 0, 1, 2, . . . . In other words, each number is the sum of the previous two numbers. Write a recursive function definition in C++ that has one parameter n of type int and that returns the n-th Fibonacci number. You can call this function inside the main function to print the Fibonacci numbers. Sample Input...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT