The -sequence, where , is defined as
All -sequences are periodic with period denoted by .
The first few terms of the -sequence are and so .
Let . For example, and .
Define . You are given, and .
Find . Give your answer modulo .
947. 斐波那契余数
对满足 的整数 ,定义 -序列如下:
所有 -序列都是周期数列,记其周期为 。例如,-序列的前若干项是 ,于是 。
记 ,例如,、。
记 。已知 、。
求 模 的值。
点 这个链接 回到源站。
点 这个链接 回到详细版题目目录。