GATE Computer ScienceHardGATE CS

Let F(0) = 0, F(1) = 1, F(n) = F(n − 1) + F(n − 2). What are the last two decimal digits of F(2024)?

  1. A. 03
  2. B. 43
  3. C. 13
  4. D. 93

Correct answer: D. 93

The Fibonacci sequence modulo 100 has period 300 (the Pisano period), so F(2024) ≡ F(2024 mod 300) = F(224) (mod 100), which is 93. Direct computation of F(2024) confirms the last two digits are 93.

More Discrete Mathematics questions

Exams that ask this topic