Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

sicp exercise 13

Name: Anonymous 2009-07-04 13:30

sicp's exercise no. 13
what do i need to solve this? can i do it with mathematical induction?
i saw that last semester, but didn't quite get it. i'll review it if it's necessary.

Name: Anonymous 2009-07-04 21:13

φ = (1 + √5) / 2
ψ = (1 - √5) / 2

φ · φ = ((1 + √5) / 2) · ((1 + √5) / 2)
      = ((1 + √5) · (1 + √5)) / (2 · 2)
      = (1 · 1 + √5 · √5 + 1 · √5 + √5 · 1) / 4
      = (1 + 5 + 2 · √5) / 4
      = (2 + 2 · √5) / 4 + 4 / 4
      = (1 + √5) / 2 + 1
      = φ + 1

ψ · ψ = ((1 - √5) / 2) · ((1 - √5) / 2)
      = ((1 - √5) · (1 - √5)) / (2 · 2)
      = (1 · 1 + -√5 · -√5 + 1 · -√5 + -√5 · 1) / 4
      = (1 + 5 + -2 · √5) / 4
      = (2 + -2 · √5) / 4 + 4 / 4
      = (1 - √5) / 2 + 1
      = ψ + 1

Fib(0) = (φ0 - ψ0) / √5
       = 0

Fib(1) = (φ1 - ψ1) / √5
       = (((1 + √5) / 2) - ((1 - √5) / 2)) / √5
       = ((1 + √5) - (1 - √5)) / (2 · √5)
       = (2 · √5) / (2 · √5)
       = 1

Fib(n+2) = Fib(n) + Fib(n+1)
         = (φn - ψn) / √5 + (φn+1 - ψn+1) / √5
         = (φn - ψn + φn+1 - ψn+1) / √5
         = (φn - ψn + φn · φ - ψn · ψ) / √5
         = (φn · (φ + 1) - ψn · (ψ + 1)) / √5
         = (φn · φ · φ - ψn · ψ · ψ) / √5
         = (φn+2 - ψn+2) / √5

|Fib(n) - (φn / √5)| = |ψn / √5|

n / √5| < ½

|Fib(n) - (φn / √5)| < ½


Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List