Consider the following recurrence relation:
Note that is the golden ratio.
can always be written in the form , where and are positive integers.
Let . So, .
The Fibonacci sequence is defined as: , , for .
Define .
Find . Submit your answer modulo .
921. 黄金分割递推
考虑如下递推:
可以注意到 就是著名的 黄金分割比。
可以发现, 总是可以写成 的形式,其中 、 都是正整数。我们记 ,于是可得 。
本题中定义 斐波那契数列 满足如下条件:、,且对诸 都有 。
再记 。
求 模 的值。
点 这个链接 回到源站。
点 这个链接 回到详细版题目目录。