I found a question in my assessment book:
What is the remainder when the 1995th number of the
fibonacci sequence is divided by 8?
How to solve?
I found a question in my assessment book:
What is the remainder when the 1995th number of the
fibonacci sequence is divided by 8?
How to solve?
You can prove by induction that $a_{i} \equiv a_{i-12} \bmod 8$, hence $a_{i} \equiv a_{i \bmod 12} \bmod 8$
Therefore $a_{1995} \equiv a_{3} \bmod 8 \equiv 2 \bmod 8$
So the remainder of the $1995th$ ($0$-based count) Fibonacci number divided by $8$ is $2$.