Data Structures & AlgorithmsHardCodeforces Div2 D · Fibonacci

Problem: What does the Pisano period of m describe?

  1. A. The number of primes below m
  2. B. The period of the Fibonacci sequence modulo m
  3. C. The order of 2 modulo m
  4. D. The number of divisors of m

Correct answer: B. The period of the Fibonacci sequence modulo m

F(n) mod m is periodic, and its period is the Pisano period pi(m).

More Coding Interview Problems questions

Exams that ask this topic