Pisano Periods 2
For every positive integer the Fibonacci sequence modulo is periodic. The period depends on the value of . This period is called the Pisano period for , often shortened to .
Define as the largest integer such that , and define if there is no such .
For example, there are three values of for which equals : . Therefore .
Let the product function be:
You are given: .
Find .
皮萨诺周期(二)
对任意正整数,斐波那契数列对取余的结果都是周期数列,其周期取决于的取值。这一周期被称为的皮萨诺周期,通常记为。
定义为最大的、满足的整数。若不存在这样的,定义。
例如,有三个满足等于,分别是、和,因此。
记函数为:
已知。
求。
Gitalking ...