Exercise 1.13: Prove that Fib(n) is the closest integer to $| \frac{\phi ^ n}{\sqrt 5} |$, where $| \phi=\frac{1+\sqrt 5}{2} |$. Hint: Let $| \psi = \frac{1-\sqrt 5}{2} |$. Use induction and the definition of the Fibonacci numbers (see 1.2.2) to prove that $| Fib(n)=\frac{\phi^n - \psi^n}{5} |$.
First of all, we know the following two equations are true:
Fib(0)=0=5ϕ0−ψ0=51−1
Fib(1)=1=5ϕ1−ψ1=521+5−21−5
Then we suppose that
is true for all.
And from the definition of Fibonacci numbers we have the following:
Fib(n+1)=Fib(n)+Fib(n−1)=5ϕn−ψn+5ϕn−1−ψn−1
=5(ϕn+ϕn−1)−(ψn+ψn−1)
Now the only question is if the following equations are true?
ϕn+1=ϕn+ϕn−1
ψn+1=ψn+ψn−1
If the above equations are true, then the previous equations can be deducted into:
Fib(n+1)=Fib(n)+Fib(n−1)=5ϕn+1+ψn+1
So the equation $| Fib(n) = \frac{\phi^n - \psi^n}{\sqrt 5} |$ is true for all $| n\ge0 |$.