921. Golden Recurrence

Consider the following recurrence relation:

a0=5+12an+1=an(an4+10an2+5)5an4+10an2+1

Note that a0 is the golden ratio.

an can always be written in the form pn5+1qn, where pn and qn are positive integers.

Let s(n)=pn5+qn5. So, s(0)=15+25=33.

The Fibonacci sequence is defined as: F1=1, F2=1, Fn=Fn1+Fn2 for n>2.

Define S(m)=i=2ms(Fi).

Find S(1618034). Submit your answer modulo 398874989.

921. 黄金分割递推

考虑如下递推:

a0=5+12an+1=an(an4+10an2+5)5an4+10an2+1

可以注意到 a0 就是著名的 黄金分割比

可以发现,an 总是可以写成 pn5+1qn 的形式,其中 pnqn 都是正整数。我们记 s(n)=pn5+qn5,于是可得 s(0)=15+25=33

本题中定义 斐波那契数列 满足如下条件:F1=1F2=1,且对诸 n>2 都有 Fn=Fn1+Fn2

再记 S(m)=i=2ms(Fi)

S(1618034)398874989 的值。


这个链接 回到源站。

这个链接 回到详细版题目目录。