So, here is the problem. Given that . We want to find
By Binet’s formula (click here for explanation), we have
Hence, the 2022nd Fibonacci number would be
Expand it using Binomial Theorem and take mod 125, we get
Since 2 and 5 are relatively prime, we apply the Euler’s theorem to reduce .
Calculate the rest of the terms on the right,
Hence,
So, there exists an integer k such that
Then take mod 3 to find k,
So,
Next, we have to find
So, the period is 12 and hence
For some integers a and b we have
Therefore,
So the last three digits of the 2022nd Fibonacci number is 336.