斐波那契数列及黄金分割比

· · 个人记录

中考题:已知斐波那契数列 f_n=f_{n-1}+f_{n-2},f_0=0,f_1=1,\frac{f_{n-1}}{f_n} 会趋近于一个定值 q,求 q。

解:定义符号 \sum_{i=l}^{r}f(x) 表示 f(l)+f(l+1)+f(l+2)+...+f(r),\infty 表示无穷。

设函数 F(x)=\sum_{i=0}^{\infty }f_nx^n

则

F(x)=\sum_{i=0}^{\infty }f_nx^n =f_0+f_1x+\sum_{i=2}^{\infty }f_nx^n =f_0+f_1x+\sum_{i=2}^{\infty }(f_{n-1}+f_{n-2})x^n =f_0+f_1x+\sum_{i=2}^{\infty }f_{n-1}x^n+\sum_{i=2}^{\infty }f_{n-2}x^n =f_0+f_1x+x\sum_{i=2}^{\infty }f_{n-1}x^{n-1}+x^2\sum_{i=2}^{\infty }f_{n-2}x^{n-2} =f_0+f_1x+x\sum_{i=1}^{\infty }f_{n}x^{n}+x^2\sum_{i=0}^{\infty }f_{n-2}x^{n-2} =f_0+f_1x+x(\sum_{i=0}^{\infty }f_{n}x^{n}-f_0)+x^2\sum_{i=0}^{\infty }f_{n-2}x^{n-2} =f_0+f_1x+x(F(x)-f_0)+x^2F(x) =f_0+f_1x+xF(x)-f_0x+x^2F(x) =f_0+f_1x-f_0x+xF(x)+x^2F(x) \therefore F(x)-xF(x)-x^2F(x)=f_0+f_1x-f_0x \therefore (1-x-x^2)F(x)=f_0+f_1x-f_0x \therefore F(x)=\frac{f_0+f_1x-f_0x}{1-x-x^2} \because f_0=0,f_1=1 \therefore F(x)=\frac{x}{1-x-x^2} =\frac{-x}{x^2+x-1} =\frac{-x}{(x-\frac{-1+\sqrt 5}{2})(x-\frac{-1-\sqrt 5}{2})} =\frac{-x}{(\frac{-1+\sqrt 5}{2}-x)(\frac{-1-\sqrt 5}{2}-x)} =(\frac{-1+\sqrt 5}{2})(\frac{-1-\sqrt 5}{2})\frac{-x}{(1-\frac{x}{(\frac{-1+\sqrt 5}{2})}(1-\frac{x}{(\frac{-1-\sqrt 5}{2})})} =(\frac{-1+\sqrt 5}{2})(\frac{-1-\sqrt 5}{2})\frac{-x}{(1-\frac{1+\sqrt 5}{2}x)(1-\frac{1-\sqrt 5}{2}x)} =(-1)\times \frac{-x}{(1-\frac{1+\sqrt 5}{2}x)(1-\frac{1-\sqrt 5}{2}x)} =\frac{x}{(1-\frac{1+\sqrt 5}{2}x)(1-\frac{1-\sqrt 5}{2}x)}

设其等于 A\frac{1}{(1-\frac{1+\sqrt 5}{2}x)}+B\frac{1}{(1-\frac{1-\sqrt 5}{2}x)}

则

A\frac{1}{(1-\frac{1+\sqrt 5}{2}x)}+B\frac{1}{(1-\frac{1-\sqrt 5}{2}x)} =\frac{A(1-\frac{1-\sqrt 5}{2}x)+B(1-\frac{1+\sqrt 5}{2}x)}{(1-\frac{1+\sqrt 5}{2}x)(1-\frac{1-\sqrt 5}{2}x)} =\frac{A+B-\frac{1-\sqrt 5}{2}Ax-\frac{1+\sqrt 5}{2}Bx}{(1-\frac{1+\sqrt 5}{2}x)(1-\frac{1-\sqrt 5}{2}x)} =\frac{(A+B)-(\frac{1-\sqrt 5}{2}A+\frac{1+\sqrt 5}{2}B)x}{(1-\frac{1+\sqrt 5}{2}x)(1-\frac{1-\sqrt 5}{2}x)} \because \frac{(A+B)-(\frac{1-\sqrt 5}{2}A+\frac{1+\sqrt 5}{2}B)x}{(1-\frac{1+\sqrt 5}{2}x)(1-\frac{1-\sqrt 5}{2}x)}=\frac{x}{(1-\frac{1+\sqrt 5}{2}x)(1-\frac{1-\sqrt 5}{2}x)} \therefore (A+B)-(\frac{1-\sqrt 5}{2}A+\frac{1+\sqrt 5}{2}B)x=x \begin{cases} & \text{ } A+B=0 \\ & \text{ } -(\frac{1-\sqrt 5}{2}A+\frac{1+\sqrt 5}{2}B)=1 \end{cases}

解得:

\begin{cases} & \text{ } A=\frac{\sqrt 5}{5}\\ & \text{ } B=-\frac{\sqrt 5}{5} \end{cases}

诸如 \frac{1}{1-px} 这样的式子

\because (1-px)(1+px+p^2x^2+...)=1 \therefore \frac{1}{1-px}=1+px+p^2x^2+... \therefore F(x)=A\frac{1}{(1-\frac{1+\sqrt 5}{2}x)}+B\frac{1}{(1-\frac{1-\sqrt 5}{2}x)}=A[1+\frac{1+\sqrt 5}{2}x+(\frac{1+\sqrt 5}{2})^2x^2+...]+B[1+\frac{1-\sqrt 5}{2}+(\frac{1-\sqrt 5}{2})^2x^2+...] F(x)$ 中 $x^n$ 的系数 $f_n=A(\frac{1+\sqrt 5}{2})^n+B(\frac{1-\sqrt 5}{2})^n=\frac{\sqrt 5}{5}(\frac{1+\sqrt 5}{2})^n+(-\frac{\sqrt 5}{5})(\frac{1-\sqrt 5}{2})^n=\frac{\sqrt 5}{5}((\frac{1+\sqrt 5}{2})^n-(\frac{1-\sqrt 5}{2})^n)

然后 q=\frac{f_{n-1}}{f_n}=\frac{\frac{\sqrt 5}{5}[(\frac{1+\sqrt 5}{2})^{n-1}-(\frac{1-\sqrt 5}{2})^{n-1}]}{\frac{\sqrt 5}{5}[(\frac{1+\sqrt 5}{2})^n-(\frac{1-\sqrt 5}{2})^n]}=\frac{[(\frac{1+\sqrt 5}{2})^{n-1}-(\frac{1-\sqrt 5}{2})^{n-1}]}{[(\frac{1+\sqrt 5}{2})^{n}-(\frac{1-\sqrt 5}{2})^n]}

因为 -1<\frac{1-\sqrt 5}{2}<0,所以当 n 趋近于 \infty 时,(\frac{1-\sqrt 5}{2})^n 无限接近于 0。

\therefore q=\frac{[(\frac{1+\sqrt 5}{2})^{n-1}-(\frac{1-\sqrt 5}{2})^{n-1}]}{[(\frac{1+\sqrt 5}{2})^{n}-(\frac{1-\sqrt 5}{2})^n]}=\frac{(\frac{1+\sqrt 5}{2})^{n-1}}{(\frac{1+\sqrt 5}{2})^{n}}=\frac{1}{(\frac{1+\sqrt 5}{2})}=\frac{\sqrt 5-1}{2}

这个 q 就是黄金分割比。