The proof for P(n): "sum from i = 0 to n of F(i) = F(n+2) - 1".
- At first I fell for the same trick as a previous TA of this course by thinking that the minimum base cases necessary for the proof were n = 0 and n = 1. After discussion with Danny, I realized that as attractive as this was, it was incorrect. Just because the fibonacci is defined as:
F(n) = n if n < 2 and F(n-2) + F(n-1) if n >= 2,
it does not mean that all inductive proofs on n require base cases n = 0 and n = 1. In this proof, it is completely irrelevant since the definition of F(n) is already set in stone, i.e. given. We can already use it (like in the IS), and we are not trying to prove the fib seq.
The final thing covered before today was how to translate a recursively defined sequence into closed form. I was crazy excited when Danny showed this because this was something that had crossed my mind many times before. He gave the example of how as the fib sequence grew, it increasingly became closer to a fixed ratio - through this ratio. He represented F(n) as approx. r^n, then the fibonacci sequence could be rewritten as r^n = r^n-1 + r^n-2. This could be written (oh so beautifully) as r^2 = r + 1, to find that solns phi = [1+- sqr(5)]/2. This phi is the golden ratio phi (how amazing is that!) and F(n) can be written in closed form as (phi^n - phibar^n)/sqr(5), where phi = [1 + sqr(5)]/2 and phibar = [1 - sqr(5)]/2.
No comments:
Post a Comment