灯下 登录
计算机科学 / SICP / 1.2.2 Tree Recursion

Exercise 1.13 · 习题

Exercise 1.13: Prove that Fib
(
n
) is
the closest integer to φ
n

/

5, where φ
=

(
1
+

5

)

/

2.
Hint: Let ψ
=

(
1

5

)

/

2.
Use induction and the definition of the Fibonacci numbers (see 1.2.2)
to prove that Fib
(
n
)

=

(

φ
n

ψ
n

)

/

5.

练习 1.13:证明 Fib(n) 是最接近 φⁿ/√5 的整数,其中 φ = (1 + √5)/2。提示:令 ψ = (1 − √5)/2,利用数学归纳法和斐波那契数的定义(见 1.2.2 节)证明 Fib(n) = (φⁿ − ψⁿ)/√5。