853. Pisano Periods 1

For every positive integer n the Fibonacci sequence modulo n is periodic. The period depends on the value of n. This period is called the Pisano period for n, often shortened to π(n).

There are three values of n for which π(n) equals 18: 19, 38 and 76. The sum of those smaller than 50 is 57.

Find the sum of the values of n smaller than 1000000000 for which π(n) equals 120.

853. 皮萨诺周期 1

对诸正整数 n,斐波那契数列每项模 n 产生的新数列必是周期数列。这个周期与 n 有关,我们称其为 n皮萨诺周期,常简记为 π(n)

满足 π(n)=18n3 个,分别是 19,38,76。这三个数中,50 的数的和是 57

求所有满足 π(n)=120n1000000000n 的和。


这个链接 回到源站。

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