Pisano period: Difference between revisions

m
no edit summary
(Pisano period)
 
mNo edit summary
Line 4:
For any integer n, the Fibonacci sequence taken modulo n is periodic and the period is called the [[wp:Pisano_period|Pisano period]].
 
Let call Pisanopisano, the Pisano period (Pisanopisano(2) = 3). If m and n are coprime, Pisanopisano(m*n) = lcm(Pisanopisano(m),Pisanopisano(n)).
 
Therefore calculate the Pisano period of an integer m is accomplished by calculating the Pisano periods of the prime powers in the prime decomposition of m.
678

edits