Pell数列$a_1,a_2,a_3, ...$的定义是这样的,$a_1 = 1, a_2 = 2, ... , a_n = 2 a_{n−1} + a_{n-2}(n>2)$。 给出一个正整数k,要求Pell数列的第k项模上32767是多少。

提交代码 C++
🔒
请先登录
登录后即可提交代码